A customer is experiencing an issue in ITMS 8.6 RU3. When checking the "Prompt" option on an attribute within a dataclass that has a "-" in the name, the creation or edit of a Custom Editable dataclass in Asset Management, which has the dataclass attached, will fail. The error you get in the NS logs is:
HTTP Request failed:
/Altiris/AssetContractCommon/Manager/EditCreateResource.aspx?ResourceTypeGuid=857b18cd-2603-4ac5-b8cc-b116bae5bbbe&defaultsItem=8a163ec6-5c54-42f8-93b6-40a5a638c9ed
This has been verified on several installations, including 8.6 RU2.
ISSUE REPRODUCTION
ITMS 8.6 RU2, RU3
Known Issue. After digging in to the Profile trace captured while trying to reproduce the issue, a faulty query was found:
"SELECT DISTINCT TOP 1000 [Strukturtyp] FROM Inv_<dataclass that has a "-" in the name> WHERE [Strukturtyp] LIKE N'%' ORDER BY [Strukturtyp]".
This will fail because the table name is not included in [].
A fix has been already added to ITMS 8.7.
8.6 RU3: A point fix for ITMS 8.6 RU3 is currently available. See KB 249427 "CUMULATIVE POST ITMS 8.6 RU3 POINT FIXES"
The issue was fixed in:
Altiris.Resource.DataClassColumnPresentation.getPromptListItems(....)
SQL that used here have table name that not enclosed in square brackets:
"SELECT DISTINCT TOP 1000 [\{0}] FROM {1} WHERE [\{0}] LIKE @value ORDER BY [\{0}]",