|
Home > Archive > BizTalk Server Orchestration > November 2005 > Error 0xc0c01b28 receiving message
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Error 0xc0c01b28 receiving message
|
|
|
| We have an orchestration that should start when a message is received on a
FILE transport.
The type of the message is a class from a referenced C# assembly.
When we generate an instance of the class and serialize it to the FILE
location the message is picked up and suspended directly, with this error
description:
Error in accessing the part data or one of its fragments. The part or
fragment may not exist in the database.
For testing we have removed all attributes from the c# class (XmlElement
etc.), but the error remains.
What are we doing wrong?
Peter
| |
| Jeff Lynch 2005-11-10, 5:59 pm |
| Try serializing to a different directory and then copying the file to the
receive location manually. If BizTalk processes the "file" without error
when copied manually then it may be that the FILE receive adapter is
attempting to pick up the file before your C# class has finished writing it.
If this is the case, look at submitting your "message" directly from your C#
application. A good example exists in the BTS2004 SDK under "SubmitDirect".
--
Jeff Lynch
"Ramblings From A Connected Universe"
http://codebetter.com/blogs/jeff.lynch
"PjV" <newsuser@vervoorn.com> wrote in message
news:4373112d$0$11075$e4fe514c@news.xs4all.nl...
> We have an orchestration that should start when a message is received on a
> FILE transport.
> The type of the message is a class from a referenced C# assembly.
>
> When we generate an instance of the class and serialize it to the FILE
> location the message is picked up and suspended directly, with this error
> description:
> Error in accessing the part data or one of its fragments. The part or
> fragment may not exist in the database.
>
> For testing we have removed all attributes from the c# class (XmlElement
> etc.), but the error remains.
>
> What are we doing wrong?
>
>
> Peter
>
| |
|
| Hi Jeff,
We have tried this and it didn't solve the problem.
The class has been marked with an attribute:
[XmlRoot(Namespace="http://acme.com/schemas", ElementName="MyRootElement")]
public class SomeClass
{//etc...
Shouldn't biztalk recognize the following Xml as a message of above type?
<?xml version="1.0"?>
<MyRootElement xsd:xmlns="..." xsi:xmlns="..."
xmlns="http://acme.com/schemas">
<etc...
The Xml file is created by serializing an object of type SomeClass.
Thanks,
Peter
"Jeff Lynch" <jeff.lynch@newsgroup.nospam> wrote in message
news:%23Q0se1g5FHA.4076@tk2msftngp13.phx.gbl...
> Try serializing to a different directory and then copying the file to the
> receive location manually. If BizTalk processes the "file" without error
> when copied manually then it may be that the FILE receive adapter is
> attempting to pick up the file before your C# class has finished writing
> it. If this is the case, look at submitting your "message" directly from
> your C# application. A good example exists in the BTS2004 SDK under
> "SubmitDirect".
>
> --
> Jeff Lynch
> "Ramblings From A Connected Universe"
> http://codebetter.com/blogs/jeff.lynch
| |
| Jeff Lynch 2005-11-10, 5:59 pm |
| I should have started with the most obvious questions. What version of
BizTalk Server are you using? If BTS2004 (I hope) what type of receive
pipeline are you using? If you're using the PassThru pipeline you don't need
an inbound schema. If not, you should create a BizTalk schema which parses
your inbound xml instance.
--
Jeff Lynch
"Ramblings From A Connected Universe"
http://codebetter.com/blogs/jeff.lynch
"PjV" <newsuser@vervoorn.com> wrote in message
news:43739948$0$11073$e4fe514c@news.xs4all.nl...
> Hi Jeff,
>
> We have tried this and it didn't solve the problem.
>
> The class has been marked with an attribute:
> [XmlRoot(Namespace="http://acme.com/schemas",
> ElementName="MyRootElement")]
> public class SomeClass
> {//etc...
>
> Shouldn't biztalk recognize the following Xml as a message of above type?
> <?xml version="1.0"?>
> <MyRootElement xsd:xmlns="..." xsi:xmlns="..."
> xmlns="http://acme.com/schemas">
> <etc...
>
> The Xml file is created by serializing an object of type SomeClass.
>
>
> Thanks,
>
> Peter
>
> "Jeff Lynch" <jeff.lynch@newsgroup.nospam> wrote in message
> news:%23Q0se1g5FHA.4076@tk2msftngp13.phx.gbl...
>
>
| |
|
| Hi Jeff,
It is bts 2004.
I think we use a Xml receive pipeline, but I'm not sure and also not at the
office now.
When I return (monday) I will verify this.
Regards,
Peter
"Jeff Lynch" <jeff.lynch@newsgroup.nospam> wrote in message
news:eEhGOij5FHA.3876@TK2MSFTNGP09.phx.gbl...
>I should have started with the most obvious questions. What version of
>BizTalk Server are you using? If BTS2004 (I hope) what type of receive
>pipeline are you using? If you're using the PassThru pipeline you don't
>need an inbound schema. If not, you should create a BizTalk schema which
>parses your inbound xml instance.
>
> --
> Jeff Lynch
> "Ramblings From A Connected Universe"
> http://codebetter.com/blogs/jeff.lynch
| |
| Lakshmi Murthy 2005-11-11, 2:52 am |
| From your question i understand that your message may not be XML file.
Incase, it is a non-xml file, you will need to use XML Passthru pipeline.
Passthru pipeline does not require inbound schema as mentioned by Jeff
Lynch. But you will need to code to read the data inside the orchestration.
Passthru pipeline is generally used to pass non-xml data between applications
thru biztalk.
Hope this helps
Lakshmi
"PjV" wrote:
> We have an orchestration that should start when a message is received on a
> FILE transport.
> The type of the message is a class from a referenced C# assembly.
>
> When we generate an instance of the class and serialize it to the FILE
> location the message is picked up and suspended directly, with this error
> description:
> Error in accessing the part data or one of its fragments. The part or
> fragment may not exist in the database.
>
> For testing we have removed all attributes from the c# class (XmlElement
> etc.), but the error remains.
>
> What are we doing wrong?
>
>
> Peter
>
>
>
| |
|
| It is version 2004, and we are using the Xml Receive pipeline.
We have created a simple test orchestration where the activation message is
also defined as a c# class from a referenced assembly and that one works
without flaws.
Now we just have to find out what is different from our original code.
Peter
"Jeff Lynch" <jeff.lynch@newsgroup.nospam> wrote in message
news:eEhGOij5FHA.3876@TK2MSFTNGP09.phx.gbl...
>I should have started with the most obvious questions. What version of
>BizTalk Server are you using? If BTS2004 (I hope) what type of receive
>pipeline are you using? If you're using the PassThru pipeline you don't
>need an inbound schema. If not, you should create a BizTalk schema which
>parses your inbound xml instance.
>
> --
> Jeff Lynch
> "Ramblings From A Connected Universe"
> http://codebetter.com/blogs/jeff.lynch
|
|
|
|
|