Microsoft KB Archive/899763

= The MapReference property is not saved when you call the Channel.Save method, and the Reference property is not saved when you call the Document.Save method in BizTalk Server =

Article ID: 899763

Article Last Modified on 3/15/2007

-

APPLIES TO


 * Microsoft BizTalk Server 2002 Standard Edition
 * Microsoft BizTalk Server 2002 Service Pack 1
 * Microsoft BizTalk Server 2002 Enterprise Edition
 * Microsoft BizTalk Server 2000 Service Pack 2
 * Microsoft BizTalk Server 2000 Service Pack 1a
 * Microsoft BizTalk Server 2000 Service Pack 1

-





SYMPTOMS
In the versions of Microsoft BizTalk Server that are listed in the &quot;Applies to&quot; section, when you call the Channel.Save method, the MapReference property is not saved. Additionally, when you call the Document.Save method, the Reference property is not saved.



RESOLUTION
To resolve this problem, update the MapReference property before you call the Channel.Save method, or update the Reference property before you call the Document.Save method.

For example, the following code example updates the MapReference property before you call the Channel.Save method. Set BT = CreateObject(&quot;BizTalk.BizTalkConfig&quot;) Set chan = BT.createchannel Set rschan = BT.Channels

While Not rschan.EOF chan.Load (rschan(&quot;id&quot;)) 'Save a copy of the MapReference property. szMapPath = chan.MapReference chan.MapReference = szMapPath chan.Save rschan.MoveNext Wend

Set chan = Nothing Set rschan = Nothing Set BT = Nothing The following code example updates the Reference property before you call the Document.Save method. Set BT = CreateObject(&quot;BizTalk.BizTalkConfig&quot;) Set doc = bt.createdocument Set rsdocs = bt.documents

While Not rsdocs.EOF doc.Load (rsdocs(&quot;id&quot;)) 'Save a copy of the Reference property. strRef = doc.Reference doc.Reference = strRef doc.Save rsdocs.MoveNext Wend

Set doc = Nothing Set rsdocs = Nothing Set BT = Nothing



MORE INFORMATION
For more information about the Channel.Save method, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/ms957066.aspx

For more information about the Document.Save method, visit the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/ms957336.aspx

Additional query words: BTS2000 BTS2002

Keywords: kbbtsmessaging kbinfo kbtshoot kbprb KB899763

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.