Skip to Content
author's profile photo Former Member
Former Member

Goods Receipt and Serial Numbers

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2006 at 01:11 AM

    Hi Jason,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 07:43 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.