Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We work with Talend Open Studio for Data Integration 7.3.1.
One of our job uses the standard component tFileOutputMSXML.
When defining a loop element, the job doesn't compile and there is the following error :
The method add(int, Element) in the type List<Element> is not applicable for the arguments (int, Branch)
The code is :
((org.dom4j.Element) (nameToElement_tFileOutputMSXML_1.get("subTreeRootParent")))
.elements()
.add(order_tFileOutputMSXML_1, nameToElement_tFileOutputMSXML_1.get("loop"));
Is this component work in 7.3.1 with a loop element ?
How can i fix this issue without changing the talend open studio version (the 7.4.1 and the 8.0.1 are not released) ?
Hello,
How did you define a loop element in tfileoutputMSXML?
We will appreciate it a lot if you could post your tfileoutputMSXML component setting screenshots on community.
Best regards
Sabrina
Hi,
Here is the screenshots.
The component
Inside it
Hi,
Nobody uses this component in 7.3.1 ?
Hello,
There can be only one loop element in xml component. But you can set group element.
I guess you didn't set the component correctly as we cannot repro this issue on V 7.3.1. Is there any detailed steps to reproduce your issue? If so, we will appreciate it if you could post here.
Best regards
Sabrina
You can modify the file C:\TALEND\TOS_DI-Win32-20200219_1130-V7.3.1\plugins\org.talend.designer.components.localprovider_7.3.1.20200213_1003\components\tFileOutputMSXML\tFileOutputMSXML_begin.inc.javajet to fix this bug.
Line 412 :
<%touchXMLNode.getXMLElement(parentName);%>.elements().add(order_<%=cid%>,<%touchXMLNode.getXMLNode(currEleName);%>);
=>
<%touchXMLNode.getXMLElement(parentName);%>.elements().add(order_<%=cid%>,(org.dom4j.Element)<%touchXMLNode.getXMLNode(currEleName);%>);
Close and reopen TOS 7.3 (or ctrl+shift+F3)