I just ran into this issue: a record has been imported and one of the mapped fields is a SF read-only field. When I update the node in drupal and push the ne info to SF this comes up:

Error message: "Unable to create/update fields: Parent_Menu_Link_id__c. Please check the security settings of this field and verify that it is read/write for your profile or permission set.". The Salesforce link has been removed.

Isn't there a way to warn without removing the link? In the previous version you could update read-only fields as much as you wished with not such a strong consequence.

PS: I'm using a SF profile with all permissions.

Comments

nicodv’s picture

Priority: Normal » Major
nicodv’s picture

Priority: Major » Normal
cellar door’s picture

I agree that this is counterproductive to remove the link in the event of an error. In the event of an error report it to the log and abort the sync but de-linking the two entities causes a cascade of issues when they go to sync again.

kostajh’s picture

Version: 7.x-3.0-alpha2 » 7.x-3.x-dev
bleedev’s picture

Issue summary: View changes

Please test against the latest code. If an entity has a valid ID, mapping failures should no longer remove the mapping.

tauno’s picture

Status: Active » Fixed

Marking as fixed based on the latest code. Re-open if something is still broken.

noise98’s picture

Is that fix in the latest dev release ?

Is it for the salesforce_push module ? Still seeing this line in the source code, when there's an error updating the salesforce object.

$mapped_objects->delete();

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.