Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

Symptoms

In the versions of Microsoft BizTalk Server that are listed in the "Applies to" 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.

↑ Back to the top


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("BizTalk.BizTalkConfig")
Set chan = BT.createchannel
Set rschan = BT.Channels

While Not rschan.EOF
      chan.Load (rschan("id"))
      '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("BizTalk.BizTalkConfig")
Set doc = bt.createdocument
Set rsdocs = bt.documents

While Not rsdocs.EOF
    doc.Load (rsdocs("id"))
    '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

↑ Back to the top


More information

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

↑ Back to the top


Keywords: KB899763, kbprb, kbtshoot, kbinfo, kbbtsmessaging

↑ Back to the top

Article Info
Article ID : 899763
Revision : 3
Created on : 3/15/2007
Published on : 3/15/2007
Exists online : False
Views : 350