Microsoft Knowledge Base Email Alertz

Describes a problem that occurs when a call to the Channel.Save method or to the Document.Save method does not save the MapReference property or the Reference property. Describes a resolution to the problem.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











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

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:
http://msdn2.microsoft.com/en-us/library/ms957066.aspx (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 (http://msdn2.microsoft.com/en-us/library/ms957336.aspx)

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
Keywords: 
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