Developer forum

Forum » Integration » Order Integration runs twice

Order Integration runs twice

Casper Andersen
Reply

Hi DynamicWeb

 

I have created my own Order Source Provide where i create an order with an orderline. The data is always one order with one orderline. Everything seems to be in order, but when the integration is finished, it tries to run again, i am thinking this is because i have mapped the tables EcomOrders and EcomOrderLines

any ide what i have done wrong?

And is there a place where i can download the code examples? Nicolai once gave me the files, but i cant seem to find them


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Casper,
you can find the the links for Visual Studio templates where you can find the general sample codes for Data integration providers in the "Visual Studio templates" section
on this page: http://doc.dynamicweb.com/releases-and-downloads/downloads
I've attached the order source reader class code which is used for reading orders from Dynamicweb.
The problem that it runs twice maybe because you are not handling mapping correctly, so if you have several tables in the mappings you need to check
what table is now used for the export:
by checking the property:
mapping.SourceTable.Name
Try to debug your code and check the values.
Regards, Dmitrij

 

 

You must be logged in to post in the forum