Wrong conversion of edi message

We are using webMethods to extract the data from the EDI files. For one of the EDI files after extraction, the data appears with ~ sign. This symbol is basically used for marking the end of a segment. The webmethod code is supposed to show only the data without ~ sign.
For example data should appear as 435F but comes as 435F~. How to solve this problem any idea ?

Give more details. It depends on the code what you have written.

Thanks,

Overlook your EDI implementation and if you are sure that is correct as per the SAG docs, you can contact SAG global support for further consultation.

However its a good practice to have the latest fix levels to be installed on your EDI module.

1 Like

Hi, Abhinav, it appears that ‘~’ is not being recognized as a delimiter when your wM service parses the EDI document. Are you using the wm.b2b.edi:convertToValues or pub.flatFile:convertToValues service? If so, how are you determining the delimiters? If you are hard coding them, please confirm that what you are coding agrees with those in the data. You can invoke wm.b2b.edi:envelopeProcess to get the delimiters and map those to convertToValues to avoid hard coding.
Hope this helps.
-Mary

1 Like

Yes, I echo with Mary above and that is the better way of handling or introspecting the Inbound delimiters and use it in the b2b.edi:convertToValues and so the parsing can work correctly with no issues.

HTH,
RMG

Thanks Mahesh and Mary. Actually, the syntax of the EDI file was not correct. I compared it with the specifications and corrected it in the EDI file. Thereafter, using wm.b2b.edi:convertToValues is giving correct information. Thanks again.

Very glad to hear issue is resolved :slight_smile: as you have taken the right correction path now!

HTH,
RMG