There are a pair of upsert operations that need try/catch handling.

Patch to follow.

Comments

dpearcefl’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB
dpearcefl’s picture

StatusFileSize
new1.49 KB

DOH! Better patch attached.

kostajh’s picture

Status: Needs review » Needs work

Thanks for submitting this. This looks fine but the same would be needed for sf_user too. Also, I think it would be better if this issue #1058920: Create generic upsert function (for use in all cases of Drupal->SF entity export, etc.) gets addressed first.

dpearcefl’s picture

I completely agree but that issue has sat undisturbed for almost three months. Unless someone agrees to take it on now, perhaps this issue (that has a patch) should proceed.

kostajh’s picture

Ok, fair enough. Do you have time to write the corresponding code for sf_user?

dpearcefl’s picture

Sure. It will be a day or two.

dpearcefl’s picture

Title: Exception catches needed in sf_node » Exception catches needed in sf_node and sf_user
Status: Needs work » Needs review
StatusFileSize
new2.92 KB

Patched attached to address similar issues in sf_user and sf_node.

dpearcefl’s picture

StatusFileSize
new3.08 KB

Better patch. I included a dump of $e in the watchdog entry when a failure occurs. Lots of good info in there for debugging.

kostajh’s picture

Would you mind rebasing this against 6.x-2.x-dev? I'll make sure it gets in soon after.

dpearcefl’s picture

StatusFileSize
new3.14 KB

Patch attached.

kostajh’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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