on 07-28-2020 3:52 PM
Hello experts,
I have configured the CSV to XML converter as per the attached screenshot. I am getting below error while CSV to XML conversion.Also attaching sceenshot of the payload coming before CSV to XML converter step.Below is the xsd for CSV to XML converter.Request your help to resolve the issue.
Error :java.lang.IllegalStateException: Element name [] not found in provided XML schema file
XSD:
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://SFTP_Resignation_RR" xmlns="http://SFTP_Resignation_RR" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="MT_Resignation" type="DT_Resignation"/> <xsd:complexType name="DT_Resignation"> <xsd:sequence> <xsd:element name="Employee_info"> <xsd:complexType> <xsd:sequence> <xsd:element name="Emplid" type="xsd:string" minOccurs="0"/> <xsd:element name="Resignation_Status" type="xsd:string" minOccurs="0"/> <xsd:element name="Resignation_Date" type="xsd:string" minOccurs="0"/> <xsd:element name="Resignation_Type" type="xsd:string" minOccurs="0"/> <xsd:element name="Last_Working_Date" type="xsd:string" minOccurs="0"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema>
Hi shrutib,
Seems you are using wrong Xpath.
It shouldn't start with "/", It should be like rootNode/record.
"MT_Resignation/Employee_info"
Hope this helps !
thanks and regards,
Praveen T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Praveen it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.