You receive a "WBEM_E_FAILED" error message when you try to run a query with a subselect query in the SMS Administrator console in SMS 2003 (886148)
The information in this article applies to:
- Microsoft Systems Management Server 2003
SYMPTOMSWhen 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) CAUSEThe 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.WORKAROUNDTo 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
(Site_code-Site_name).
- 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.
- In the Attribute class list, click
Processor.
- In the
Alias as box, type
ProcessorName.
- In the
Attribute list, click Name, and
then click OK.
- In
the Sort list,
click <Unsorted>, and then click
OK three times.
- Right-click Queries, click
New, and then click Query.
- In the Name box, type My Query.
- Click Edit Query Statement, and then click
the Criteria tab.
- On the Criteria bar, click the button that has a star icon to create a new criterion.
- In
the Criterion
type list, click Subselected
values.
- Click Select.
- In the Attribute
class list, click
Processor.
- In the
Alias as box, type
ProcessorName.
- In the
Attribute list, click Name, and
then click OK.
- In the Operator list, click is
in.
- Click Browse.
- 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 - Click OK three times.
- Right-click My Query, and then click
Run Query.
The result window displays a result that includes the
ProcessorName column. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.MORE INFORMATIONTo reproduce this problem, follow steps 1 through 20 in the
"Workaround" 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 "Symptoms"
section.
Modification Type: | Minor | Last Reviewed: | 6/14/2005 |
---|
Keywords: | kbtshoot kbSMS2003spfix kbSMS2003bug kbprb KB886148 kbAudITPRO |
---|
|