I would like to know if it is possible to force the foreach construct sequential processing rather than parallel. Or other possible solutions you can take to process invoices in the same order in which they are stored in the file xml input.
The need is to create B1 purchase invoices with the data in an xml file.
The xml file contains several invoices precise order of issue, be loaded on B1 with the same order as in the file xm. If the insertion of an invoice fails, the subsequent should not be imported.