cancel
Showing results for 
Search instead for 
Did you mean: 

Inventory Transfer

Former Member
0 Kudos

Hi experts, having problem in my SDK when I'm posting to Inventory transfer. I've use to copy from in my add-on from Inventory transfer request. By when I'm posting to Inventory transfer, I'm having this error "Invalid item code '1250000001' in Enum 'InvBaseDocTypeEnum'. The valid codes are '0'-'-1', '1'-'0', '2'-'20', '3'-'59', '4'-'67', '5'-'1250000001'"

Here's my Code in that particular line error.

oLines.BaseType = 1250000001

Hope someone will help me.

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi,

Try :

oLines.BaseType = 5     'Incase you are using VB.NET

oLines.BaseType = InvBaseDocTypeEnum.WarehouseTransfers;      //Incase you C#.NET

Regards

Edy

Former Member
0 Kudos

Hi Edy, Thus the oLines.BaseType = 5 is the Inventory Transfer Request?

edy_simon
Active Contributor
0 Kudos

Hi,

The oLines in Warehousetransfer is accepting an enum.

The Enum for 5 is the ObjectType  = '1250000001' (I believe this what you are looking for).

Thus the oLines.BaseType = 5 should be correct.

Or you can also write  oLines.BaseType = InvBaseDocTypeEnum.WarehouseTransfers

Regards

Edy


Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gimo,

     Edy was correct. It should be BaseType = 5. You can check this in SDK Help file by searching InvBaseDocTypeEnum.

Regards,