Resolve Flow and trigger blocking sync errors

Symptoms

You see a sync error in the sync-error-tool with the status code CANNOT_EXECUTE_FLOW_TRIGGER or CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY and a message that names the specific Flow or Process that failed. Examples include:

  • "We can't save this record because the "[Process Name]" process failed."
  • "We can't save this record because the "[Process Name]" process failed. STRING_TOO_LONG: [Field Name]: data value too large (max length=[n])."
  • "[YourApexTriggerName]: execution of AfterInsert caused by FIELD_CUSTOM_VALIDATION_EXCEPTION."
  • "We can't save this record because the "[Process Name]" process failed. DUPLICATES_DETECTED."

The error message always includes the name of the Flow, Process, or Trigger that caused the failure.

This is one of the most common sync error categories in StoreConnect because it is caused by client-configured automations that vary between Salesforce orgs.

Cause

When StoreConnect's sync engine inserts or updates a record in Salesforce (such as an Order, Account, or Contact), any Flow, Process Builder, or Apex Trigger configured on that object fires automatically. If the automation encounters an error — such as a validation failure, a data issue, or a field length problem — the entire record save is blocked and a sync error is raised.

The sync engine does not have special handling for this error type. It captures the Salesforce error message and marks the Change Event as FAILED for manual review. There is no automatic retry.

Resolution

The diagnostic process is the same for all variants of this error:

  1. Read the full error message in the sync-error-tool to identify the name of the Flow or Process that failed.
  2. Open that Flow in Salesforce Setup.
  3. Determine what condition is causing the failure.
  4. Apply the appropriate fix (see approaches below).
  5. Re-sync the affected records via the sync-error-tool.
  6. Re-enable the Flow if it was temporarily disabled.
💡 Tip

Select all records in the list when re-syncing, not just the one that failed. Related events for the same record may also need to be re-processed.

Sync User exclusion pattern (most impactful)

This is the single most impactful fix for Flow-triggered sync errors and should be applied before investigating individual Flow logic.

StoreConnect provides a dedicated storeConnect_Sync permission set in the managed package. Clients create a dedicated Sync User and assign this permission set. For setup instructions, see how-to-create-a-storeconnect-sync-user.

On any custom Flow that runs on Account, Contact, or Order objects, add an entry condition to exclude execution when the running user is the StoreConnect Sync User. This prevents sync operations from triggering client automations while keeping those automations active for all other users.

This pattern is especially important for:

  • Flows that modify records during creation (before StoreConnect has finished syncing all related records)
  • Flows that perform duplicate checks
  • Flows that send emails or create tasks
  • Flows from third-party packages that are not aware of StoreConnect's sync process

Custom validation inside a Flow

A Flow enforces a business rule that StoreConnect data does not satisfy. For example, a subscription term validation or a required field check.

Fix: Check the specific validation logic in the named Flow. Either correct the data that violates it, modify the Flow to allow the StoreConnect Sync User through, or temporarily disable the Flow and re-sync.

Flow running before required records are ready

A Flow fires on Account or Contact creation and attempts to act on related records before StoreConnect has finished creating them. For example, a Flow that tries to convert an Account to a Person Account before the related Contact exists.

Fix: Restructure the Flow so it fires from the Order object after checkout is complete, rather than directly on Account or Contact creation. Alternatively, add the Sync User exclusion entry condition described above.

Third-party package Flow interfering

Flows from installed packages fire on StoreConnect objects and fail due to their own validation logic.

Fix: Contact the package vendor or your Salesforce administrator to fix the third-party Flow's validation logic. If unblocking orders is urgent, temporarily disable the triggering automation, re-sync, then re-enable it.

Data exceeds field length (STRING_TOO_LONG)

A Flow maps a data value to a field that is too short for the content. For example, a field with a maximum character length receiving a longer value.

Fix: Update the Flow to either truncate the value before writing it, increase the target field length, or add a length check before the assignment. Re-sync after fixing.

Verification

  1. Confirm the sync error no longer appears in the sync-error-tool.
  2. Open the synced record in Salesforce and verify it was created or updated correctly.
  3. Confirm the Flow still functions correctly for non-sync operations (manual record creation, UI updates, etc.).

Prevention

  • Audit all Flows on Account, Contact, and Order objects and add Sync User exclusions where appropriate.
  • Test new Flows and third-party package installations against the sync process before go-live.
  • Monitor the Sync Error Tool after installing new packages — new Flows may interfere with sync.
  • Ensure Flows that depend on related records (e.g., Contact on an Account) use appropriate entry conditions or are triggered from the Order object after checkout is complete.