Troubleshooting
Problem
Integrity Checker may report the following errors: BMXAA0443E - ERROR -- BMXAA0497E - The following columns are defined to be 'same-as', but have different definitions: PLUSTVR.GLACCOUNT GL(23) same as WORKORDER.GLACCOUNT GL(8) BMXAA0443E - ERROR -- BMXAA0497E - The following columns are defined to be 'same-as', but have different definitions: PLUSTVS.GLACCOUNT GL(23) same as WORKORDER.GLACCOUNT GL(8)
Symptom
In the Maximo tables, PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT are defined to the 'same as' WORKORDER.GLACCOUNT, but they are not defined the same. 'Same-as' means that the data type and length of PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT should be the same as WORKORDER.GLACCOUNT, but they are not.
Cause
Length of PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT is 23. Length of WORKORDER.GLACCOUNT is 8. The lengths are supposed to be the same values.
Environment
Windows. All database platforms.
Diagnosing The Problem
The results of this query "should" be the same for all columns, but are not:
Select objectname, attributename, maxtype, length From maxattribute Where (objectname='WORKORDER' And attributename='GLACCOUNT') Or (sameasobject='WORKORDER' And sameasattribute='GLACCOUNT')
Resolving The Problem
The lengths of PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT (23) are not the same as WORKORDER.GLACCOUNT (8). The solution is to alter the lengths of PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT to be the same (8). Since PLUSTVR.GLACCOUNT and PLUSTVS.GLACCOUNT are views of columns, and not actual columns, only their Maximo definitions need to be corrected. Execute the following 2 SQL statement, be sure to commit the database changes, and again run Integrity Checker in report mode in order to verify that the errors are no longer reported:
Update maxattribute Set length=8 Where objectname In ('PLUSTVR', 'PLUSTVS') And attributename='GLACCOUNT' ;
Update maxattributecfg Set length=8 Where objectname In ('PLUSTVR', 'PLUSTVS') And attributename='GLACCOUNT' ;
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21676684