Audit on TSV fields would hardcode schema names which fails Time Slicing job, throws errors on updating Resources on admin side and may fail other actions after database refreshes to different schema names
STEPS TO REPRODUCE:
Connect to Clarity 16.2.2
Go to Team and Assignment and enable all TSV attributes for auditing on each item for I, U, D (or you can enable all attributes altogether)
Save
Now stop the services and take a database backup
Restore the same backup with a different schema name
Point the application to this new schema name
Run Time Slicing job
Expected Results: The Time Slicing job to complete successfully
Actual Results: The Time Slicing job fails with error on Audit triggers:
Caused by: java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'NEW_SCHEMA.T_ASSIGNMENT_PPRASSIGNMENT' is invalid and failed re-validation
ORA-06512: at "NEW_SCHEMA.PRJ_BLB_SLICE_RESET_ALL_SP", line 11
ORA-06512: at line 1
Caused by: java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'NEW_SCHEMA.T_TEAM_PPRTEAM' is invalid and failed re-validation
ORA-06512: at "NEW_SCHEMA.PRJ_BLB_SLICE_RESET_ALL_SP", line 11
ORA-06512: at line 1
Upon checking we can see the two triggers fail the validation on the database due to the fact the old schema is hardcoded: