cancel
Showing results for 
Search instead for 
Did you mean: 

GoodsReceipt

Former Member
0 Kudos

Hi Im creating a GoodsReceipt through SDK based on Purchase Order. I am getting the following error when the .add event is invoked , all data prior to this click looks like it is retrieved. If anyone has any idea i would appreciate it.

'Supplier record not found '

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi M Connoll,

Are you telling the goods receipt which business partner to look at?

oReceipt.CardCode = ???

You need to do this even if you base it on another document. If you look at Business One you also have to do this when posting a document based on another one.

Hope it helps,

Adele

Former Member
0 Kudos

Thanks for the replies

Yes im seeting the business partner and all looks fine as i step through the code.

oGoodsRec.CardCode = oPO.CardCode

Former Member
0 Kudos

Maybe the easiest would be if you can post a code snippet here.

Former Member
0 Kudos

Thanks for replies. I have just found my error in code.

Former Member
0 Kudos

Make sure you have put the correct value into CardCode on the GoodsReceipt header.

This needs to match the cardcode for the Purchase Order record you are referencing on the goods receipt lines.

John.