PRB: BizTalk Configuration Object Model Returns BTS_E_NOOBJECT Error (281163)



The information in this article applies to:

  • Microsoft BizTalk Server 2000

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: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: 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 "TESTPORT":
on error resume next

dim oBTConfig
dim oPort

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

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

'To test for failure reverse the comment on the two lines below
'oPort.LoadByName("testport")
oPort.LoadByName("TESTPORT")
If Err.Number <> 0 Then
	Wscript.Echo "Error calling .LoadByName"
	Wscript.Echo "Error number: " & Hex(Err.Number)
	Wscript.Quit
Else
	Wscript.Echo "Port Name: " & 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.

REFERENCES

For more information on the BizTalk Configuration Object Model, refer to the online documentation that is included with BizTalk Server 2000.

Modification Type:MajorLast Reviewed:6/23/2005
Keywords:kbprb KB281163 kbAudDeveloper