cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical mapping: Error while converting date format

former_member601407
Participant
0 Kudos

Hi,

File to IDOC scenario.

Date has to be converted from YYYY-MM-DD to YYYYMMDD. Error is coming as Unparseable date.

Conversion is happening, but when empty tag is sent, the mapping fails with unparseable date ""

If measurement date exists, then transform it to above said condition, if not exists then assign empty string(Empty tag).

Accepted Solutions (1)

Accepted Solutions (1)

r_herrmann
Active Contributor
0 Kudos

Hi Subin,

the problem in your solution lies in the "exists" block. The block gives only a false, if the Measure...-tag doesn't exist at all. If it is just empty, it still exists and thus the exists block returns true. Better try to compare if the the string inside the Measure-tag is empty. In addition add a mapwithDefault, so that your mapping doesn't break if the element doesn't exist at all.

Answers (0)