Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everybody,
I have a problem when I add a new excel file in metaData talend.
I can finish the step 1 and 2, but when I arrive in step 3, in output, I Have this error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at LocalProject.shadowfileinputtodelimitedoutput_0_1.ShadowFileInputToDelimitedOutput.main(ShadowFileInputToDelimitedOutput.java:2916)
Erreur de prévisualisation. Des paramètres doivent être modifiés`
Note : Les erreurs de prévisualisation sont généralement liées à un mauvais paramétrage de l'encodage.
org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(ShadowFilePreview.java:90)
org.talend.metadata.managment.ui.utils.ShadowProcessHelper.getCsvArray(ShadowProcessHelper.java:383)
org.talend.repository.ui.wizards.metadata.connection.files.excel.ExcelFileStep2Form$PreviewProcessor.nonUIProcessInThread(ExcelFileStep2Form.java:1042)
org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(SWTUIThreadProcessor.java:74)
I tried to unistall and install Java (I used jdk 1.8.0_172 and same 1.7 and 10.0.1)
I tried to add environment variables for JAVA_HOME, add -vm, change parameters for Installed JREs, delete and unzip my folder TOS DI (I tried with 6.5.1 and 7.0.1), change workspace emplacement, create a new workspace.
I tried to use many excel file obviously.
Somebody have an idea for resolved this problem ?
Thanks so mush,
BR Maxime
I FIND THE SOLUTION, Oh my god, it's so stupid.
It's in my routines, I created an enumeration:
enum TypeDataSet {
File,
Database,
}
and in this configuration, when I wanted to create a metadata, I had the error but if I just add a "public" before my enumeration, it works correctly !!!
I do not know why my routines without the "public" keyword before my enumeration make a mistake when I wanted to create a metadata. If anyone has an idea, please tell me Smiley Wink
So, I found a solution for my problem, maybe create a ticket to talend on this error because it is not normal that talend has this reaction and displays this error which has nothing to do with the problem. ...
Thank you all for your help.
Maxime
@MaximeData, can you try to check Read excel2007 file format(xlsx) option in step 2 and if you still have issue let me know?
@Dijke Hi, I think the error don't come of the file because I tried with another file (empty) and I have the same error.
@manodwhbIn step 2, I checked "Read excel2007", I can have a preview of the file, but when I go in step 3, I have the error.
@MaximeData,you can preview the file.if you still see that error means might be file has corrupted.
@MaximeData,can you check that required jars has installed to create metadata for excel?
Hello,
What's OS version are you using? Is your java environment set correctly on your VM?
Talend is only supported on Java CPS Versions, not Java PSU. Have you tried to use jdk 1.8.0_171 to see if it works?
http://www.oracle.com/technetwork/java/javase/cpu-psu-explained-2331472.html
Best regards
Sabrina