Skip to Content
author's profile photo Former Member
Former Member

EDIFACT EDI Separator - strange error when more than one message type

Hi folks,

I'm currently implementing quite a few EDI interfaces and I've discovered a strange case. By the way, I am using SAP PO (PI with Java stack only) version 7.4 with the B2B adapter. I'm using the EDI separator also described here:

B2B- EDI Inbound -Step by Step Configuration

to split a file into multiple EDI message types. It works when I have multiple messages of the same type (for example, multiple ORDERS messages), but it doesn't work when I have two different types of messages (irrespective of the type - ORDERS and ORDRSP, ORDRSP and OSTRPT, ORDERS and INVOIC...), giving me a strange error at the second one saying:

Adapter-Framework: com.sap.aii.adapter.ediseparator.ra.integration.DispatchException: Message cannot be dispatched: Message cannot be dispatched: Error in conversion of INVOIC/98B-Edifact-Document at character 91 to XML: java.lang.UnsupportedOperationException: Cannot find next state and action for current state "B2B,UNH" and segment "UNZ"

This is given always for the second message type found in the file, no matter its message type.

I checked this error message, it is briefly described here: Troubleshooting Information for EDI-XML Converters - Technology Troubleshooting Guide - SCN Wiki

Unfortunately it does not apply to my situation as in my case it is ALWAYS working if the message reportedly having an error is processed separately in one file or the input file only has messages of one type (irrespective of the type).

Attached you will also find the configuration for one integrated configuration and one comm channel. As said, I followed that Inbound step by Step config without significant deviations.

Please let me know if you have any ideas on how to fix this.

Best regards,

George

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 05, 2015 at 10:57 AM

    Hi George,

    As far as I know, you can only have the same type of EDI messages within 1 EDI interchange.

    You can just try to put a * in your sender EDIseparator adapter, for the message type part. But I guess that will fail too.

    Kind regards,

    Dimitri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 10, 2015 at 11:26 AM

    Hi Experts,

    I got the same error also if there is only one EDIFACT Type included in the file but several messages in one file. I checked it with one message and it worked. But when I add a second one (tried it also with 2 times the same message) it failes with this error Message.

    Any Idea? For me it sounds like a bug.

    Kind Regards and thanks,

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi All,

      I have EDI Inbound Order interface and I am facing same error. When I try to process single file with EDIFACT Data, it works. IDOC/Order is posted in ECC system.

      But when multiple partner Order data is clubbed together into single file below error is observed.

      "Cannot find next state and action for current state "B2B,UNH" and segment "UNZ"

      Any one received any solution to this problem?

      Thanks in advance,

      Vinit.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.