cancel
Showing results for 
Search instead for 
Did you mean: 

CSV to XML Conversion in SAP CPI

0 Kudos

Dear Experts,

We are trying to convert a CSV file (from a SFTP location) to XML format using CSV to XML Convertor in CPI.

But facing errors while conversion, as the headers of CSV file is empty for some columns in between. (Duplicate Headers / No. of Elements mismatch).

Any suggestions on how to avoid/eliminate the errors?

Accepted Solutions (0)

Answers (1)

Answers (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Sarangarajan,

First part is you need to align with your sender system to make sure column data appears ( blank some thing like 1,2,,4,5, ) otherwise you need to know definite set of confirmation from sender side what might come blank & in which position data should be there ( very similar to field fixed length ).

Without knowing which column comes blank or which field does not value and also no placeholder its not possible to come to conclusion on technical solution side ( whether to use Standard Converter or Groovy script ).

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Hi Sriprasad,

Here's my model input as a sample (Highlighted are headers);

CSV files will be coming as;

#|EmployeeID||||Persontype|EmployeeName||Place... ( | as separator)

File may contain 1 lakh records of 100+ fields among which 50 columns will have empty headers. Note: Fields values will be in a random manner not in sequential.

Could you suggest me further.