BTS.InterchangeID & BTS.MessageID
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > BTS.InterchangeID & BTS.MessageID




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    BTS.InterchangeID & BTS.MessageID  
NickH2472


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-04 10:50 PM

We are attempting to obtain a unique reference for a flat-file output and ar
e
considering the use of InterchangeID or MessageID. They both *appear* to be
unique Hex values, but we cannot find any information relating to how they
are generated. Can anyone explain how they are generated and whether they ar
e
unqiue?

Cheers, Nick





[ Post a follow-up to this message ]



    RE: BTS.InterchangeID & BTS.MessageID  
Gilles [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-04 10:50 PM

Hello,

>We are attempting to obtain a unique reference for a flat-file output and a
re
>considering the use of InterchangeID or MessageID. They both *appear* to be
>unique Hex values, but we cannot find any information relating to how they
>are generated. Can anyone explain how they are generated and whether they a
re
>unqiue?

The MessageID (http://msdn.microsoft.com/library/e....asp?frame=true)
is a unique identifier for the message. It is a Guid. the previous page show
s the COM documentation but the .NET property behaves the same.

Thanks,
-Gilles.






[ Post a follow-up to this message ]



    RE: BTS.InterchangeID & BTS.MessageID  
NickH2472


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-23-04 10:50 PM

Thanks Gilles,
I understand that the MessageID is unique per message within an
orchestration for example (am I correct here?), but where does the
InterchangeID come into play?

My experience with Interchange information relates to EDI messages, however
as far as I'm aware Biztalk treats each message separately within its
internal mechanism. So, what does the InterchangeID provide over and above
the MessageID? Can I use the InterchangeID to track an instance of an
orchestration for example?

Cheers, Nick

"Gilles [MSFT]" wrote:

> Hello,
> 
>
> The MessageID (http://msdn.microsoft.com/library/e....asp?frame=true)
> is a unique identifier for the message. It is a Guid. the previous page sh
ows the COM documentation but the .NET property behaves the same.
>
> Thanks,
> -Gilles.
>
>





[ Post a follow-up to this message ]



    Re: BTS.InterchangeID & BTS.MessageID  
Sam Vanhoutte


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-24-04 01:13 PM

I was told it like this:

The interchange is the batch of messages that is sent to Biztalk.
The message is a part of the interchange.

If you have a flat file that is split up in two different messages on the
msgbox, they will have the same interchangeid, but a different messageid.

best regards
Sam Vanhoutte

"NickH2472" <NickH2472@discussions.microsoft.com> wrote in message
news:A2EDFEB7-7292-4F13-9543-605B6E32BA25@microsoft.com...
> Thanks Gilles,
> I understand that the MessageID is unique per message within an
> orchestration for example (am I correct here?), but where does the
> InterchangeID come into play?
>
> My experience with Interchange information relates to EDI messages,
however[vbcol=seagreen]
> as far as I'm aware Biztalk treats each message separately within its
> internal mechanism. So, what does the InterchangeID provide over and above
> the MessageID? Can I use the InterchangeID to track an instance of an
> orchestration for example?
>
> Cheers, Nick
>
> "Gilles [MSFT]" wrote:
> 
and are[vbcol=seagreen] 
to be[vbcol=seagreen] 
they[vbcol=seagreen] 
they are[vbcol=seagreen] 
(http://msdn.microsoft.com/library/e...ssageclassmessa
geidtopic.asp?frame=true)[vbcol=seagreen] 
shows the COM documentation but the .NET property behaves the same.[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Re: BTS.InterchangeID & BTS.MessageID  
Gilles [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-24-04 11:59 PM

Hello,

[...]

>The interchange is the batch of messages that is sent to Biztalk.
>The message is a part of the interchange.
>
>If you have a flat file that is split up in two different messages on the
>msgbox, they will have the same interchangeid, but a different messageid.

Yes, this is correct. The message ID is unique per message.






[ Post a follow-up to this message ]



    Re: BTS.InterchangeID & BTS.MessageID  
Martijn Hoogendoorn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 09:19 AM

On Mon, 23 Aug 2004 16:33:25 GMT, Gilles [MSFT] wrote:

> Hello,
> 
>
> The MessageID (http://msdn.microsoft.com/library/e....asp?frame=true)
> is a unique identifier for the message. It is a Guid. the previous page sh
ows the COM documentation but the .NET property behaves the same.
>
> Thanks,
> -Gilles.

Hi Nick, Gilles,

I'm assuming you need this value for some kind of logging purpose...

I've had a conversation with Hans Peter Mayr a while ago, and he told me
the following things about those Guids:

"I recommend that you avoid using MessageID to try and link BAM to HAT.
The problem is that msgID is only created for messages at the point that
they are enqueued into the message box. So for messages that are created in
an orchestration, for example, they actually don't have a msgID unless and
untill they are persisted to the message box."

"Also, be aware that the interchangeID is associated with the raw message
that arrives to the pipeline. If this raw interchange actually contains
multiple individual messages, they will all get the same InterchangeID,
each message would get it's own MessageID"

"In fact, there may be many messages, each with it's own ID, in the inbound
and outbound pipelines.  For example, if the message arrives encrypted, it
will have one msgID for the raw message and another for the decrypted
message.  Remember that all messages are immutable, so every time the
message is changed at all, you get a new msgID"

Simply put, you cannot simply assume any of these IDs will stay the same
until you know the entire system they go through and even then it's
relatively dangerous to assume they stay the same.

What I would recommend is using a pipeline component in the receive
pipeline before or after the ffdisassembler component and promote a
property, inserting your own GUID. This way, that value is 100% guaranteed
to be unique throughout the entire process, no matter that kind of
permutations you apply to the message itself, as long as you don't remove
that field or change it's value ofcourse.

feel free to e-mail me if you need more information!

HTH,

Martijn Hoogendoorn





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:33 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register