in reply to EDIFACT - edi - Validator

I have never used that module, but I strongly suspect that the parse function of that module will fail if the format is not valid.

Replies are listed 'Best First'.
Re^2: EDIFACT - edi - Validator
by tosaiju (Acolyte) on Aug 12, 2016 at 08:47 UTC
    Thanks Laurent R
    I tried with some simple edi errors and opening/parsing a file - but it didn't throw any error. Also parse is not returning anything (I believe).

      Not returning anything is a failure suggesting that the document is invalid. Unfortunately, it's not telling what or where the problem is.

      Of course, as GotToBTru pointed out, between any 2 trading partners, what is and isn't valid might not match what is agreed upon with another trading partner. (And even when the right technical people are involved in the negotiations, the Golden Rule1 applies.)

      I'd start from known valid documents to verify the EDI parser you are trying to use can actually parse them correctly. If you can't find a parser that works for the documents you need it to process, you may have to write your own.


      1 "He who has the gold makes the rules."