When I'm trying to post batches using
Microsoft.Dexterity.Applications.
Dynamics.Forms.SopBatchEntry.Procedures.PostBatch.Invoke(false, 2, _arrBatchList[i].ToString(), "Sales Entry", DestinationID);
some times it post normally and another times it gave me the follwing error
"SQL Error: 2601 cannot insert duplicate key row in object 'dbo.AAG20000' with unique index 'AK2AAG20000' "
Please Help???