[ACC] - mcSynch_mcExec workflow failing due to ‘[@registrationToken] unknown’

Learn how to fix the issue where the mcSynch workflow stops because of an error in evaluating script ‘eventSynch/soapImport’. Request support to reinstall the Mobile App Channel package to ensure the RegistrationToken is available in the RT schema.

Description description

Environment

Adobe Campaign Classic v7

Issue/Symptoms

You may encounter mcSynch workflow going into a 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 has 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

You need to raise a support ticket, share the error, and request the support team to install the package and resume the workflow, as you won’t have UI access to the message center 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 the Mobile App Channel package. It is therefore queried in the step soapImportBatchEvent of the mcSynch, which causes this error if the package is not installed on RT side, as the attribute does not exists on the RT schema.

Note:  Installing any package through UI is not recommended. It should always be requested through a support ticket.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f