cancel
Showing results for 
Search instead for 
Did you mean: 

Releasing Production Order *sometimes* gives me error -5002

tjandra_afandi2
Participant
0 Kudos

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?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

pedro_magueija
Active Contributor
0 Kudos

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

tjandra_afandi2
Participant
0 Kudos

We only have 2007 And I can't find any notes about this issue..

Thanks.