I migrated to QBD many years ago and recall that IIF files are powerful but dangerous exactly for this reason: you can't prevent duplicate transactions.https://...
I was going to write this software myself and did some search and found this was already done.Also, great that he wrote in Python.Regarding your question, this ...