cancel
Showing results for 
Search instead for 
Did you mean: 

Goods Receipt and Serial Numbers

Former Member
0 Kudos

I'm getting the following error "[IGN1.WhsCode][line: 1] , 'This entry already exists in the following tables (ODBC -2035)'" when trying to add a goods receipt document containing a single item that is serial number managed via the DI API. We are running against Business One version 2005A SP01 PL9. The Goods Receipt PO transaction is reporting the same error. The Goods Issue and Delivery transaction appeared to work correctly. The Goods Receipt transaction posted correctly when created in the B1 Client (GUI) application. So it is an issue with the DI API. We are using the SBODemo_US company database but we added a new item and configured it for serial number management. This same code works with B1 2004A. Our application is suppose to work with both versions of B1, so our application is built with version 2004A DI API. Should this work, or do I need to use the 2005A version of the DI API when communicating with a 2005A system? Would this version of the DI API work correctly with a 2004A system?

Thanks,

Jason Eiler

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jason,

I think you need to recompile your application and change the reference of the DI API version. Hope this helps...

Former Member
0 Kudos

Gilbert,

Thanks for the response. It did not however, solve my problem.

Answers (1)

Answers (1)

Former Member
0 Kudos

I remembered encountering the same problem working with B1 2004A. For the Goods Receipt and Goods Receipt PO documents, when receiving items that are serial managed I would fill in the InternalSerialNumber data member of the Document Lines Serial Numbers object. The fix was I also had to provide some value for the SystemSerialNumber field. I just always set it to a value of 1. In B1 2005A, this issue must have been resolved, because when I commented out this line of code, the document was added successfully. I don't have to provide a SystemSerialNumber, the system must generate one, as I would expect.