Accpac session

SUGGESTED

I have app in vb.net that open session on accpac for take data from sql database then create an  order in accpac

the problem is :

ex: for 100 data record the app creates 99 orders

if I rerun app the missing order creates