ZZain Abbas·3d agoDocNum is what users see. It is not a stable key for a SAP Business One integrationStore DocEntry, and still look up the shop or portal id before every retry.2 min read·kodenova.hashnode.dev
ZZain Abbas·3d agoA Service Layer batch is not one document. Check each source id before you retry the setIf one sales order in a $batch fails, the others may already exist. A full retry will duplicate the ones that succeeded.2 min read·kodenova.hashnode.dev
ZZain Abbas·3d agoA customer portal should never INSERT a sales order into ORDRCreate the document through the Service Layer or the DI API so SAP Business One validations, tax and permissions still run.1 min read·kodenova.hashnode.dev
ZZain Abbas·3d agoService Layer error -5002 is a session problem, not a reason to post the sales order againLog in once, reuse the cookie, and search for the source id before you retry.2 min read·kodenova.hashnode.dev