Environment
NetIQ AppManager 6.x
NetIQ AppManager 7.0.x
NetIQ AppManager 7.0.x
Microsoft SQL Server 2000 - 8.00.2039
Situation
When upgrading the AppManager repository from AppManager 6.0.2 to AppManager 7.0, upgrade may abort with a return code of 1073741819
AppManager upgrade of the repository or QDB fails with error 'return code=-1073741819 reference qdbupgrade.log'
QDBupgrade.log ends at executing ksdiff.exe
DSDiffTrace.log has the following entry... 'QDBError: SQLSTATE=37000, native error=536, message=[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid length parameter passed to the substring function.'
AppManager upgrade of the repository or QDB fails with error 'return code=-1073741819 reference qdbupgrade.log'
QDBupgrade.log ends at executing ksdiff.exe
DSDiffTrace.log has the following entry... 'QDBError: SQLSTATE=37000, native error=536, message=[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid length parameter passed to the substring function.'
Resolution
Locate the Knowledge Scripts in question:
- Launch a SQL Query to locate the orphaned Knowledge Scripts. For Example: SELECT Name from dbo.KS WHERE Name NOT LIKE '%/_%' ESCAPE '/';
To Delete the Knowledge Scripts:
- Launch a SQL Query to delete these Knowledge Scripts. For Example: DELETE FROM dbo.KS WHERE Name NOT LIKE '%/_%' ESCAPE '/';
To Rename the Knowledge Scripts:
- Check out the Knowledge Scripts
- Launch a SQL Query to rename these Knowledge Scripts so that they get assigned to a different category. For Example: UPDATE dbo.KS SET Name = 'CategoryName_' & Name WHERE Name NOT LIKE '%/_%' ESCAPE '/';
- Check in the Knowledge Scripts
Cause
There are Knowledge Scripts checked into the Management Server that do not contain an '_' (underscore) character in their name. This underscore character in the KS name is used to define the KS group. As a result, the KSDiff process will not check-in these Knowledge Scripts correctly.
Additional Information
Formerly known as NETIQKB70189
The General_KSName Knowledge Script can also be used to locate these Knowledge Scripts. Please review the help information for this KS to perform this operation.