Developer forum

Forum » Integration » Exporting finished orders with Order Provider

Exporting finished orders with Order Provider

Espen Strømsnes
Reply

I'm using the Order provider to export orders to XML files which are processed by an external program.

The source settings for the Order Provider is:

Export not yet exported orders --> true

Only export orders without externalid --> true

Do not export carts --> true

Order state after export --> Leave unchanged

 

The issue I'm facing is that an order was exported with OrderComplete = False, but when I check the database the field OrderComplete = True. Exported orders wth OrderComplete = False are ignored by the external program.

By looking at the log of the order I see what happened. The order log starts at 16:27. Various steps are logged with the message "Order is not complete". What happened next is that an external process triggered the DW export job at 16:30. The order was then exported to an XML file with OrderComplete = False. Since OrderComplete = False the order is ignored by the external program.

By looking at the log I can see that the order was passed to the Dibs checkout handler at 16:28 and the customer was redirected back to DW at 16:31 when the order is set as complete.

I thought the Order Provider only exported orders that were finished (either with OrderComplete = True or False). As we see in this case the Order Provider exported an order that was still in the purchase process.

How can I export orders that I'm sure will not be modified after export?

Regards,

Espen


Replies

 
Dmitriy Benyuk
Reply

Hi Espen,
you can set the condition to export orders which have OrderComplete set to true, see attached image.
Regards, Dmitrij

Untitled.jpg
 
Espen Strømsnes
Reply

Thanks a lot Dmitriy!

 

You must be logged in to post in the forum