Skip to Content

Releasing Production Order *sometimes* gives me error -5002

I'm using 2007.

The way I'm releasing a production order is like this:

  1. Call GetByKey()
  2. Set ProductionOrderStatus = boposReleased
  3. Call Update()

This usually works, but sometimes it produces error -5002 out of the blue, no clue why/what triggers this error.

Example of the error message is: The warehouse is not defined for the item. [WOR1.wareHouse][line: 17] , 'Row no. 17'

However, after retry, this update will be successful.

Anybody know why, and how to resolve?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 17, 2015 at 07:07 AM

    Hi Tjandra,

    2007 is an outdated version. It could be an issue with that SDK, have you reviewed the notes from there on?

    An easier way (if you have a newer version around) is to test that same code with a sample database and check if the error still occurs.

    Best regards,

    Pedro Magueija

    View Pedro Magueija's profile on LinkedIn

    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.