Microsoft Developer Network > Forums Home > BizTalk Server Forums > BizTalk Server EDI and AS2 > X12 00401 867 Receiving EDI Document fails with Invalid character in data element
Ask a questionAsk a question
 

AnswerX12 00401 867 Receiving EDI Document fails with Invalid character in data element

  • Tuesday, June 03, 2008 7:58 PMToby Worth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

     

    I am use X12 4010 867 (BizTalk Server 2006 R2) to send a report. 

     

    I have the All Parties to “Allow Leading and Trailing Zeroes and Spaces”.

     

    I customized the X12_00401_867  ITA07 field to be X12_R (SimpleType).

     

    When generating the XML of the 867 the ITA07 is a ####0.00 string value. 

     

    The message is sent thru the Send Port successfully, but I then read back in the EDI file ( for batching ) and it fails with below.

     

    Event Type: Error

    Event Source:     BizTalk Server 2006 EDI

    Event Category:   None

    Event ID:   8116

    Date:       6/3/2008

    Time:       3:30:32 PM

    User:       N/A

    Description:

    The batch element is being suspended as it failed validation. The error is : Stopping after the first error !!

    Error: 1 (Field level error)

          SegmentID: ITA

          Position in TS: 16

          Data Element ID: ITA07

          Position in Segment: 7

          Data Value: 0.40

          6: Invalid character in data element

     

    If I remove the trailing zero in this field it successfully reads the EDI file.

     

    This there any way to change this behavior?

     

     

    Thank,

    Toby

Answers

  • Thursday, June 05, 2008 10:45 AMBhola Meena[MSFT] Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    EDI Pipeline is able to receive it successfully after setting "allow Leading and trailing zeros and spaces..". The error is coming while validating the document during batching. I will find out if there is any way to turnoff batch validation for it.

  • Thursday, June 05, 2008 1:55 PMKoushik Das Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Currently in batching there is no way to enable 'allow leading and trailing zeros and spaces'.

     

    Thanks,

    Koushik

     

All Replies

  • Wednesday, June 04, 2008 5:57 PMJimDawson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Your party properties for EDI contains a checkbox under sender properties that you can check to allow leading and trailing zeros and spaces.  Under Validation and ACK Generation.  Checking that box will allow the trailing space.

     

  • Wednesday, June 04, 2008 6:25 PMToby Worth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

     

    Yes, I have the All Parties to “Allow Leading and Trailing Zeroes and Spaces” on both Sending and Receiving Validation and ACK Generation Sections.

     

    -Toby

  • Thursday, June 05, 2008 10:45 AMBhola Meena[MSFT] Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    EDI Pipeline is able to receive it successfully after setting "allow Leading and trailing zeros and spaces..". The error is coming while validating the document during batching. I will find out if there is any way to turnoff batch validation for it.

  • Thursday, June 05, 2008 1:55 PMKoushik Das Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Currently in batching there is no way to enable 'allow leading and trailing zeros and spaces'.

     

    Thanks,

    Koushik

     

  • Thursday, March 19, 2009 4:40 AMtechnoamit Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    what the best way to handle these un-predictable spaces?

    amit kumar
  • Tuesday, November 03, 2009 9:23 PMParahT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Has anyone found a workaround for this?  I have an 810 that will not batch because the EDI batching orchestrations do not like the decimals and/or leading and trialing zero's in my EDI document.