Microsoft KB Archive/281163

= PRB: BizTalk Configuration Object Model Returns BTS_E_NOOBJECT Error =

Article ID: 281163

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition

-



This article was previously published under Q281163



SYMPTOMS
When you use the BizTalk Configuration Object Model to retrieve an instance of a BizTalk.BizTalkConfig Management object, you may receive the following error code:

BTS_E_NOOBJECT 0x1202 The object was not found.

This error can occur even if you are using the name of an object that exists in the management database.



CAUSE
This problem can occur if your Microsoft SQL Server computer has been configured with a binary sort order and you query for an object using the correct name, but you do not use the proper case.



RESOLUTION
If your SQL Server computer is configured with a binary sort order, you must query the BizTalk Management Objects by using the exact case.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

The following is a sample snippet of Microsoft Visual Basic Script code to use the LoadByName method from the IBizTalkPort interface. This sample assumes that you have SQL Server configured to use a binary sort order and that you have a messaging port with the name &quot;TESTPORT&quot;: on error resume next

dim oBTConfig dim oPort

Set oBTConfig = CreateObject(&quot;BizTalk.BizTalkConfig&quot;) If Err.Number <> 0 Then Wscript.Echo &quot;Error creating BizTalkConfig object&quot; Wscript.Echo &quot;Error number: &quot; & Hex(Err.Number) Wscript.Quit End If

Set oPort = oBTConfig.CreatePort If Err.Number <> 0 Then Wscript.Echo &quot;Error calling .CreatePort&quot; Wscript.Echo &quot;Error number: &quot; & Hex(Err.Number) Wscript.Quit End If

'To test for failure reverse the comment on the two lines below 'oPort.LoadByName(&quot;testport&quot;) oPort.LoadByName(&quot;TESTPORT&quot;) If Err.Number <> 0 Then Wscript.Echo &quot;Error calling .LoadByName&quot; Wscript.Echo &quot;Error number: &quot; & Hex(Err.Number) Wscript.Quit Else Wscript.Echo &quot;Port Name: &quot; & oPort.Name End If

Set oPort = Nothing Set oBTConfig = Nothing NOTE: SQL Server sort order is determined when you install SQL Server. If you need to change sort orders after you install SQL Server, you must rebuild your databases, and then reload your data.

