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 (899763)



The information in this article applies to:

  • Microsoft BizTalk Server 2002
  • Microsoft BizTalk Server 2002 SP1
  • Microsoft BizTalk Server 2002 Enterprise Edition
  • Microsoft BizTalk Server 2000 SP2
  • Microsoft BizTalk Server 2000 SP1a
  • Microsoft BizTalk Server 2000 SP1

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.

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

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:

Modification Type:MajorLast Reviewed:7/12/2005
Keywords:kbBTSMessaging kbinfo kbtshoot kbprb KB899763 kbAudDeveloper kbAudITPRO