Duplicate Protection¶
A request can reach Intacct and post the record, and the answer can still go missing on the way back, such as when the connection drops. IMan cannot tell that case from a request that never arrived. Sending it again blind would post the record twice.
The Intacct writer guards against that. You do not need to set anything up.
How It Works¶
IMan gives every record it writes an ID of its own, Intacct's control ID, and asks Intacct to run each control ID once only. Reads carry no such ID.
When an answer goes missing, or Intacct says it is still working on a record, IMan sends the same request again, with the same control IDs, every 5 seconds for up to 30 seconds:
- Intacct had not run the record. It runs it now, and the record posts as normal.
- Intacct had already run the record. It does not run it again. IMan treats the record as posted and logs a warning against it: "Intacct already had this record from an earlier attempt whose answer was lost, so it wasn't posted again. Intacct returns no key in that case, so the record wasn't rewritten or written back." The record's writeback fields stay empty.
-
No answer after 30 seconds. IMan fails the record with one of two messages:
- "Intacct didn't answer after 30 seconds of resending, so the record may have posted. Check Intacct before sending it again."
- "Intacct was still processing this record from an earlier attempt after 30 seconds of resending, so it may yet post. Check Intacct before sending it again."
Look the record up in Intacct before you run it again.
The same applies to every record in a bulk request. Each record carries its own control ID, and Intacct answers for each one.
What It Does Not Cover¶
The control IDs belong to one run. IMan makes new ones every time the integration runs. Run the integration again over the same data, and Intacct sees new records and posts them again.
Duplicate protection makes one run safe against a lost answer. It does not make the integration safe to run twice. For that, have the integration check Intacct before it writes:
- use Insert/Update on an import that offers it, with the record's key mapped. A second run then updates what the first one created. See Update Operation.
- for a transaction, filter out the records Intacct already holds. Look each one up with IntacctLookup by a reference you write onto it, such as the web order number, and drop the ones it finds. Preventing Duplicate Transactions builds that pattern step by step.