Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a WP object fails on initial sync to SF, it's impossible to update the WP object to fix the issue #365

Open
OfficeBureau opened this issue Aug 18, 2020 · 2 comments
Labels
bug Something isn't working partially done This issue is partially solved but still needs work

Comments

@OfficeBureau
Copy link

Is your feature request related to a problem? Please describe.
If an object fails to sync for any number of mapping-related reasons (field too long, field exception, etc), it's not possible to update the WP object to fix the issue. Doing so will just trigger an attempt to push an 'update' to an object in SF that doesn't exist, triggering a 400 error.

Describe the solution you'd like
If a WP object fails an initial sync to SF, subsequent 'update' events in WP should trigger a creation event until the object is successfully created in SF.

@jonathanstegall jonathanstegall added bug Something isn't working needs to be replicated We need to see this issue again to know how it's happening labels Aug 18, 2020
@pattyok
Copy link

pattyok commented Jun 18, 2021

I think I might have encountered a similar problem. I had an error in one of my hooks that triggered a mapping error. When I try to remap the SF object to the WP Object under the Mapping Errors tab, I get an error:

[18-Jun-2021 17:04:00 UTC] WordPress database error Unknown column 'action' in 'field list' for query UPDATE wp_kisycj1w0s_object_sync_sf_object_map SET action = 'post_object_map', id = '357', wordpress_id = '598715', salesforce_id = 'a0I1H00000PGj0GUAT', object_updated = '2021-06-18 10:04:00' WHERE id = '357' made by do_action('admin_post_post_object_map'), WP_Hook->do_action, WP_Hook->apply_filters, Object_Sync_Sf_Admin->prepare_object_map_data, Object_Sync_Sf_Mapping->update_object_map

@jonathanstegall
Copy link
Member

In #471, I've added some work that I hope will begin to make this possible to fix. It may not address all the cases where this is a problem, but I'm hoping it's a good start. It will come out in version 2.2.0, which I'm hoping to release shortly.

@jonathanstegall jonathanstegall added partially done This issue is partially solved but still needs work and removed needs to be replicated We need to see this issue again to know how it's happening labels May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working partially done This issue is partially solved but still needs work
Projects
None yet
Development

No branches or pull requests

3 participants