EDI Sample Problem

Hi,

I am most interested in the EDI improvements in R2. So far they look great.

I followed the documentation on the EDI sample. I am having problems with the SamplePO.txt file. I drop it into the fromThem folder and the receive location picks it up. The message is then suspended and this is event is in the error log

Event Type: Error
Event Source: BizTalk Server 2006 EDI
Event Category: None
Event ID: 4100
Date: 4/3/2007
Time: 4:43:42 PM
User: N/A
Computer: KOERNEM
Description:
The interchange with id '000000025', with sender id 'THEM ', receiver id 'US ' had structural error. Last structurally valid functional group ID was '1'

For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.

Is this a problem with the delimiters in the SamplePO.txt file?

Thanks,

Mike

[1015 byte] By [MikeKoerner] at [2008-2-12]
# 1

Hi,

I figured out it was the format of the EDI message. I removed the cr/lf and replaced them with segment terminators of ~. The transaction looks like one big line now.

I also had problems of the send port subscribing to the message but I made sure that the send port filter was correct.

Thanks,

Mike

MikeKoerner at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 2
Greetings,

Got to the same point as you did with the sample.

However, instead of changing the message to work, the question is, why did the sample not work with the configuration specified?

Was the sample file included wrong (should it have had ~ in place of [CR][LF]s)?
Was there a problem with the instructions when setting up and deploying the sample?
Is there a problem with BizTalk's EDI parser?

I am also trying (none to successfully) to validate within VS.Net the SamplePO.txt file against the X12_00401_850.xsd and that is failing for more than one reason as well. I have been tinkering with the settings/file with no luck. Will the file even validate via VS.Net?

I am using BTS 2006 R2 which was just posted this week.

Thoughts, comments anyone?

Thanks in advance.

Craig B.

CraigBeuker at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 3
After further digging/experimenting/documentation reading, I found the details about the Segment Terminator/Suffix in the help.

If you follow the instructions to the letter and use the original sample file, you need to put a ~ at the end of each line in the file. This will then disassemble properly. Alternatively, you can do as previously mentioned and put everything on one line (removing the CRLFs and replacing them with ~s)

cmb..

CraigBeuker at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 4

Hello - This is a known regression in Beta2. It will be fixed for RC.

-Samit

SamitJhaveri–MSFT at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 5
I've got the same error.
I wander if the "description" would be so """descriptive""" in the final release?
LeonidGaneline at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 6
I've tried defferent combinations (like 0D hex [CR] + LF(radiobutton)) without luck.
It is pitty because I start the application which will be deployed in production. And this is the "must be" feature. We have diferent partners: with '~' and CR+LF... line terminations....
oho-ho Let's doing this "preprocessor' stuff.
LeonidGaneline at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 7
Leonid Ganeline wrote:
I've got the same error.
I wander if the "description" would be so """descriptive""" in the final release?
BTW On this error I've got 4 (!!!) error events. (None of them give me a clue wht's going on, but it's beta.)
It is a standard way to BizTalk creating a chain of the events on ONE error.
ok We kinda submit this approuch.
But this is NOT right.
It is not good to get 4 error events for an error, it is NOT good to get 2 events.
Please, MSFT, think about it!
LeonidGaneline at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 8
My trading partners also use tilde '~' and CR+LF and I'm getting the same errors in the event log. I found that by replacing ~ with* and adding ~ to the end of every line that I was able to process the EDI files without error.

I also found that my unedited EDI files with ~ and CR+LF, even though errors are created in the event viewer, are correctly processed by the EDI engine. So I don't think that you'll need to do any preprocessing, just ignore this specific error in the logs.

-Kyle

Kyle at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 9
Any estimate on when the RC will be out?
StevenG. at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 10

I am going through the tutorial and ran into this problem. I have tried adding ~s to the end of each segment creating a single continus line as well as having a ~ followed by a CRLF at the end of each segment and get this error:

Event Type: Error
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5753
Date: 9/25/2007
Time: 3:29:37 PM
User: N/A
Computer: MyComputer
Description:
A message received by adapter "FILE" on receive location "fromTHEM_4010_850" with URI "C:\Program Files\Microsoft BizTalk Server 2006\SDK\EDI Interface Developer Tutorial\ProcessEDI_TestLocations\Scenario A\fromTHEM\*.txt" is suspended.
Error details: The Messaging Engine encountered an error during the processing of one or more inbound messages.
MessageId: {D896FF6D-7EF4-46FE-B337-338692E21A0C}
InstanceID: {0B97E4BD-000C-46D2-9647-A8B8C3649F8D}

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

DanielRivera at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 11
Is it possible for someone who got the edi file to work through the tutorial to post the contents of the file here? I would like to use it to see if it will process through the tutorial on my machine.
DanielRivera at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...
# 12
I worked around by creating a pipeline component working as a symbol preprocessor http://www.codeplex.com/BizTalkSymbolReplace Sad
LeonidGaneline at 2007-10-11 > top of Msdn Tech,BizTalk Server,BizTalk EDI and AS2...