cancel
Showing results for 
Search instead for 
Did you mean: 

Error when adding a bom code to a sales quote using DI API B1 9.2

former_member221339
Participant
0 Kudos
505

Hi

I wrote some code for a previous version of B1 8.82 which adds a bom code to a sales order

The customer has now upgraded to 9.2 and is getting the following error -

Specify "items per unit" greater than 0, inv1.NumPerMsr line 2

This error thing is strange as I only work on sales quotes or orders

I have tried running the code on some 9.2 data I have and it works fine

I am wondering if it is something wrong with their data

I have enclosed the small portion of code that adds the code

I wonder if anyone has any ideas please ?

Thanks

Andy

bomerror.txt

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member221339
Participant
0 Kudos

Hi Edy

Sorry for the delay, I thought the system would email me with any answers

Yes checked that, it is set to 1

Any other ideas ?

Thanks

Andy

edy_simon
Active Contributor
0 Kudos

Have you check as per the error message :
Go to inventory master data for this item and under the Sales Tab, make sure the Item per sales Unit is not empty or 0 ?

Regards
Edy