When performing a database migration to UTF-8 using the Automic Migration Action Pack, the process fails during the SQL script execution. The following errors appear in the logs:
PLS-00049: Invalid bind variable 'NEW.'or PLS-00049: bad bind variable 'NEW.'
ORA-04098: trigger 'TR_AH_TIMESTAMP2_4' is invalid and failed re-validation
U00003592 UCUDB - Status: ''NativeError: '4098'
The Automation Engine (AE) fails to start following the migration attempt.
This issue occurs when residual metadata or invalid triggers remain in the destination database from a previous or canceled migration attempt. The migration scripts attempt to validate triggers like TR_AH_TIMESTAMP2_4 or TR_EH_STATUS_BLOCKED, but they fail due to invalid bind variables or mismatched table structures in the destination schema.
To resolve this issue, perform a clean reset of the destination environment: