cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to process EDI Input Message with NewLine Characters

Former Member
0 Kudos

Hi All,

I am using the Seeburger adapter and modules to process the Input EDI message. The input message comes with a new line character after every 80 characters. Hence the Seeburger modules throw an error while reading the file. I tried using the /Seeburger/ReplaceString module. In module config, it has 2 parameters - searchString and replaceString. It works for any special characters like "#" or '!' , but does not replace the NewLine character. I used '\n' , '\r' , '0x0A' , '0x0D', '0D0A' and none of them worked. Can anyone please suggest what character needs to be used in the Module Config?

Thanks,

Geetha

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Used the Seeburger Config and removed characters equal to '\n\r'.

Former Member
0 Kudos

I have done it in other way by relacing "~" with new line within UDF. We can try to replace the corresponding values 13 and 10.

Basically, the code to add next line characters is:

inputString.append( ( char ) 13 );

inputString.append( ( char ) 10 );

Former Member
0 Kudos

My message errors out in the Sender Adapter. It does not get till Message mapping step.

Thanks,

Geetha

Former Member
0 Kudos

Yes I have even tried that.

Thanks,

Geetha

Former Member
0 Kudos

Hi,

Did you tried 'nl' for new line?

Regards,

Prakasu.M