I have a scenario which reads xml order files from external order system into Sales Orders in SAP Business One when xml file exists.
Mostly it works perfect, but some time i fails (Result message: B1out or BOM/BO or BS segment missing in receiver payload (handover to B1 not
possible)), and most content in the messagelog is unreadable. I suppose the problem can be caused by reading the xml file before writing has finished, as reading and removing process acts very fast when an xml file is written to in folder.
Any proposal for possible delay of the read and remove process to eliminate that reason for failure?