[ACC] - mcSynch_mcExec workflow failing due to ‘[@registrationToken] unknow’
Description description
You may encounter mcSynch workflow going into paused state because of the following error:
Error message
soapImport PostgreSQL error: ERROR: COPY from stdin failed: Unable to complete operation in current status. CONTEXT: COPY wkf3886_56147, line 1
soapImport JavaScript: error while evaluating script ‘eventSynch/soapImport’.
soapImport Attribute ‘registrationToken’ unknown (see definition of schema ‘Real time events (nms:rtEvent)’). Unable to parse expression '[
@registrationToken]
'.
Note: some version of the software will have a different like the one shown below message:
soapImport Attribute ‘registrationToken’ unknown (see definition of schema ‘Real time events (nms:batchEvent)’). Unable to parse expression '[
@registrationToken]
'.
Resolution resolution
Fix
Customers do not have UI access to the message center workflow; therefore anyone facing this error is encouraged to please raise a support ticket, share the error, and request the support team to install the package and resume the workflow.
Cause
This is due to the Mobile App Channel package installed on Production but not on RT instance.
RegistrationToken is an added attribute of nms:rtEvent/nms:batchEvent after importing Mobile App Channel package. It will therefore be queried in the step soapImportBatchEvent of the mcSynch, which will cause this error if the package is not installed on RT side, as the attribute will not exists on the RT schema.
Note - We do not recommend installing any package through UI, it should always be requested through a support ticket.