Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 899763 - Last Review: March 15, 2007 - Revision: 1.4
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
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.
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 = NothingThe 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 = NothingFor 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:
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
| kbbtsmessaging kbinfo kbtshoot kbprb KB899763 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate