Search code examples
xmlbiztalkbiztalk-2010edi

Message Type COPRAR_ITG12 is not allowed as part of the Agreement.


I have an integration that sends EDI file to destination but in Agreement i get such an error:

There was a failure executing the send pipeline: "EdiLogPipeline.SendEdiLogPipeline, EdiLogPipeline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b443f8c1ff13f7f0" Source: "LogAssemblerComponent" Send Port: "XXX_SendPort" URI: "Destination" Reason: Message Type COPRAR_ITG12 is not allowed as part of the Agreement.

I tried too many things but nothing works.

In my map file My source file is custom XML file and destination file EFACT_D95B_COPRAR_ITG12. When I defined parties UNH2.5 segment is set to ITG12. Although i defined all of the other rules correctly, it still did not work.

When I searched default EDI schemas in Biztalk path, EFACT_D95B_COPRAR_ITG12 is not one of the default schemas. So Biztalk does not accept this schema. Is there any solution for this problem?

Any help please.


Solution

  • "Message Type COPRAR_ITG12 is not allowed as part of the Agreement" this message give us a useful information which is message type is not allowed. My source file's root name was "EFACT_D95B_COPRAR_ITG12"but Biztalk does not allow this naming for EDI files. We have to use Microsoft's default files' names and root names. I changed my source file name and root name to "EFACT_D95B_COPRAR". And this solution works for my problem.