Microsoft KB Archive/886148

= You receive a &quot;WBEM_E_FAILED&quot; error message when you try to run a query with a subselect query in the SMS Administrator console in SMS 2003 =

Article ID: 886148

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2003

-





SYMPTOMS
When you try to run a query with a subselect query in the SMS Administrator console, you may receive an error message that is similar to the following:

The following error was reported: WBEM_E_FAILED Running the query: select * from SMS_R_System inner join SMS_G_System_PROCESSOR as ProcessorName on ProcessorName.ResourceID = SMS_R_System.ResourceId where ProcessorName.Name in (select SMS_R_System.Name, SMS_R_System.SMSAssignedSites, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.NetbiosName, ProcessorName on ProcessorName on ProcessorName.ResourceID = SMS_R_System.ResourceId)



CAUSE
The problem occurs when the subselect query returns more than one column. The subselect query should return only one column. The data in this column should have the same data type as the field before the IN clause of the subselect query.



WORKAROUND
To work around this problem, modify the subselect query to return only one column. To do this, follow these steps.

Note The following steps are example steps. Modify your subselect query to fit your situation.  Open the SMS Administrator console. Double-click Site Database ( - ). Click Queries, right-click All Systems, click All Tasks, and then click Properties. Click Edit Query Statement. On the General tab, click the button that has star icon to add a new property. Click Select.</li> In the Attribute class list, click Processor.</li> In the Alias as box, type ProcessorName .</li> In the Attribute list, click Name, and then click OK.</li> In the Sort list, click <Unsorted>, and then click OK three times.</li> Right-click Queries, click New, and then click Query.</li> In the Name box, type My Query .</li> Click Edit Query Statement, and then click the Criteria tab.</li> On the Criteria bar, click the button that has a star icon to create a new criterion.</li> In the Criterion type list, click Subselected values.</li> Click Select.</li> In the Attribute class list, click Processor.</li> In the Alias as box, type ProcessorName .</li> In the Attribute list, click Name, and then click OK.</li> In the Operator list, click is in.</li> Click Browse.</li> Click All Systems, and then remove all the columns until only the ProcessorName.Name column remains in the Subselect box.

For example, the modified subselect query may look similar to the following query:

select ProcessorName.Name from SMS_R_System inner join SMS_G_System_PROCESSOR as ProcessorName on ProcessorName.ResourceID = SMS_R_System. ResourceID

</li> <li>Click OK three times.</li> <li>Right-click My Query, and then click Run Query.</li></ol>

The result window displays a result that includes the ProcessorName column.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
To reproduce this problem, follow steps 1 through 20 in the &quot;Workaround&quot; section. However, do not modify the subselect query as instructed in step 21. Instead, click OK four times, and go directly to step 23. When you complete step 23, you receive an error message that is similar to the message that is mentioned in the &quot;Symptoms&quot; section.

Keywords: kbtshoot kbsms2003spfix kbsms2003bug kbprb KB886148

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.