@OmarAlmonte
I’m noticing an unexpected “Contact not found” exception after successfully creating and manipulating contacts via the Legacy API. Here is the first log extract. Notice that contact creation, email optin, filebox upload all occur as expected. Then Achieve API goal fails. Notice the timestamps.
2026-08-01 14:00:10.987957 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::optin(): test@systasis.co flagged marketable.
2026-08-01 14:00:12.219744 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::upload_attachments(): File "ngc-3461.png" has been uploaded to contact #50846.
2026-08-01 14:00:13.015150 - ERROR --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::achieve_goal(): Could not achieve goal "REGRESSION"
DatabaseObjectNotFoundException: Couldn't find the record with primary key 50846 in Contact
2026-08-01 14:00:13.636074 - ERROR --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::achieve_goal(): Could not achieve goal "REGRESSION"
DatabaseObjectNotFoundException: Couldn't find the record with primary key 50846 in Contact
2026-08-01 14:00:13.642193 - DEBUG --> GFFeedAddOn::fulfill_entry(): Entry #75 marked as fulfilled.
Here is the second test a minute later. Notice the timestamps. Notice processing occurs as expected
2026-08-01 14:01:22.619453 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::optin(): test67@systasis.co flagged marketable.
2026-08-01 14:01:23.598274 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::upload_attachments(): File "Coversheet.jpeg" has been uploaded to contact #50848.
2026-08-01 14:01:24.314903 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::achieve_goal(): API Goal REGRESSION set for contact id:50848
2026-08-01 14:01:24.713387 - DEBUG --> systasisgfifscrm\GravityFormsInfusionsoftIntegrator::achieve_goal(): API Goal REGRESSION set for contact id:50848
2026-08-01 14:01:24.714694 - DEBUG --> GFFeedAddOn::fulfill_entry(): Entry #76 marked as fulfilled.
This sequence of calls seems to fail more often than it succeeds. I’m not sure of the ratio of success to failure. It’s pretty clear that contacts are dropped after creation. Looking at the app, a sandbox, sd108, there is a gap in the assigned contact ID, and there is a missing contact at the logged ID.