none
WCF-Sap and sending IDoc RRS feed

  • Question

  • Hi

     

    I am trying to sent Idoc message to Sap and I get the following error from Sap:

    Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The length of the value for the field exceeds the allowed value. Value: 12  Field: GRKOR Allowed value: 6

    The value in the field is exactly 6. Maybe a unicode issue?

    /Torben

     

    Friday, April 1, 2011 9:37 AM

Answers

  • Hi Torben,

    I do not think it is a unicode issue. I suggest reviewing this thread on the forum discussing a similar issue. In my view I think you pass a value for field GRKOR that exceeds the allowed length.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly

     


    BizTalk
    Friday, April 1, 2011 10:26 AM
    Moderator

All replies

  • Hi Torben,

    I do not think it is a unicode issue. I suggest reviewing this thread on the forum discussing a similar issue. In my view I think you pass a value for field GRKOR that exceeds the allowed length.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly

     


    BizTalk
    Friday, April 1, 2011 10:26 AM
    Moderator
  • Hi

     

    I have checked the thread that you are referring to, but as far as I can see there doesn't seem to be a solution. You are right about that it exceeds the allowed length as I have found this description in the schema files, which states that it should have a max lenght of 3. Where it gets the value 6 and 12 seem to be a bit weird:

     

          <element minOccurs="0" maxOccurs="1" name="GRKOR" nillable="true" type="string">

            <annotation>

              <documentation>Delivery group (items delivered together)</documentation>

              <appinfo>

                <fieldInfo pad_char="0x20" pad_char_type="hex" justification="left" pos_offset="0" pos_length="3" xmlns="http://schemas.microsoft.com/BizTalk/2003">

                </fieldInfo>

              </appinfo>

            </annotation>

          </element>

    And in the Biztalk Adapter Pack Migration (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e68b8fd1-5c8a-499a-8237-4dc23a8342c5&displayLang=en) it states:

    The new adapter throws an exception for fields that have a data length larger than the max allowed length for the field.

    o The old adapter silently truncated data elements that were too long.

    o In the new adapter, you should trim data elements that are too long before they reach the adapter.

     

    The solution was to truncate the field to 3 characters, which what is allowed.

     

    /Torben

     

    Tuesday, April 5, 2011 9:45 AM