Thursday, May 22, 2014

SAP-Adapter Error "The segment or group definition E2IDKU5 was not found in the IDoc metadata."

During runtime, we received the following error from the WCF SAP adapter:

Microsoft.ServiceModel.Channels.Common.XmlReaderGenerationException ist aufgetreten.
  HResult=-2146233087
  Message=The segment or group definition E2IDKU5 was not found in the IDoc metadata. The UniqueId of the IDoc type is: IDOCTYP/3/PEXR2002//701. For Receive operations, the SAP adapter does not support unreleased segments.
  Source=Microsoft.Adapters.SAP
  StackTrace:
       bei Microsoft.Adapters.SAP.TypedIdocBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer)

The reason was that the IDoc contained the element name E2IDKU5 although its segment definition was E2IDKU5001.

So, whenever you run into a similar message, it's worth to check the SAP transaction WE60 to check the segment definition of the element.
 

8 comments:

Jordan said...

What did you do to resolve this issue? If the segment does not exist? If the segment does exist?

Jordan said...
This comment has been removed by a blog administrator.
Christoph said...

Hi Jordan,

you either have to adapt the IDoc or the BizTalk schema that you had retrieved. What did change in your case?

Christoph

Jordan said...

I have been working looking online trying to find the solution to this issue. I would like to see an example of how someone resolved it. There are other ways of getting the IDOC into BizTalk but it comes in as a flatfile and I am unsure if spending time to create the flatfile it worth it.

Christoph said...

Yes, we have solved it and use IDoc XML. I do not remember but I think in our case we could see that the SAP administrators had made a fault. They had not released the segment E2IDKU5.

What exactly says the Eventlog when you get the error?

bnbcv said...

Hi Christoph,

We are also getting the same error. Finally how does the error got resolved. Did the SAP administration released that segment later?.We have raised an issue to SAP, yet to get the response. Please let me know what the change happened to resolve the issue.

SPV

bnbcv said...

How did you resolve the issue, even we are getting the same issue "The segment or group definition E2IDKU3 was not found in the IDoc metadata. "

Christoph said...

Hi SPV, I think that the SAP admin released the segment but I am actually not 100% sure anymore. Good luck!