Excessive duplication of Drupal content if Mapped Object creation fails

Created on 2 January 2020, almost 5 years ago
Updated 31 January 2024, 11 months ago

Scenario:
- Have a pull mapping
- Map some records
- Copy database between 2 diff systems
- Pull the records

Expected:
- Content created
- Mapped Objects created

Observed:
- Content created
- Mapped Objects fail to create
- Content created again, ad infinitum, because mapped object failed to be created

I've mostly observed Mapped Objects fail to be created because of a trigger failure on salesforce_mapped_objects table: The user specified as a definer ('foo@bar') does not exist

Proposed solutions:
- Stop using Dynamic Entity References, so we can get away from triggers
- Open a bug report with DER
- Wrap the whole procedure in a transaction and roll back on failure

πŸ› Bug report
Status

Closed: outdated

Version

4.0

Component

salesforce_pull.module

Created by

πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

    I'm doing some cleanup on unsupported branches.
    Please re-open this issue and update the version to 5.0.x-dev if this issue is still applicable to the latest release.

Production build 0.71.5 2024