cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Keeping empty field

0 Kudos

Hi,

I have a SOAP To SFTP Scenario,

Everything works perfectly, buat when there is one of the columns empty, the xml also exclude that empty column.

So If I'm expecting 5 columns in the SFTP file, the XML now became only 4 columns because the 4th column is empty.

The value from the 5th column now is moving to the 4th column and leaving the 5th column empty.

So how do I keep the XML tag payload eventhough it's an empty cell?

Accepted Solutions (0)

Answers (1)

Answers (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Samuel,

Although field value is empty, target end expects a blank context. Please use mapwithdefault function in mapping to map all columns. Even if any particular source field is absent, target field will definitely form. This will help prevent the error. Sample shown below.

regards

Anupam

Attachments