You are not logged in.
Announcement
Unanswered posts
|
Hello
((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) contains the file path and file name, eg:
E:\t\TOS323\TOS-All-r35442-V3.2.3\workspace\in.csv
If you set the file name as:
((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))+".xml"
the result will be:
E:\t\TOS323\TOS-All-r35442-V3.2.3\workspace\in.csv.xml
I think you only want to get the file name without extention, so just set the file name as:
"D:/outputFolder/"+((String)globalMap.get("tFileList_1_CURRENT_FILE")).substring(0,((String)globalMap.get("tFileList_1_CURRENT_FILE")).indexOf("."))+".xml"
Best regards
shong
Can someone help me with this. I am kind of stuck here with the above issue.
Thanks
Chow
Hi
I want assistance in overcoming the issue i am facing while using tAdvancedFileOutputXML component.
My scenario is as below
tFileList1 ====> tFileInputPositional1 ====> tAdvancedFileOutputXML1
The issue is the file name of the tAdvancedFileOutputXML.
I am getting the StringIndexOutOfBoundsException when i use ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))+".xml"
as file name in the tAdvancedFileOutputXML component.
However if i hard code the name of the xml something like output.xml everything is working fine.
Am i missing something here. Is this same as bug 6661 whose status is fixed as per the below url
http://talendforge.org/bugs/view.php?id=6661
I am using 3.2.1.r31371
Thanks in Advance
Chow