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