Skip to Content

Service Layer Error Code -10: Enter a valid value in \"Whse\" field [0-0] .

I am creating an Inventory Transfer document based on an Inventory Transfer Request, by code, and the service layer is giving me the following error: Error Code -10: Enter a valid value in \ "Whse \" field [0-0 الرسالة].

If I remove the code from the section that tells you to copy the Inventory Transfer Request, It create the Inventory Transfer correctly, but do not relate the documents.

The variables WarehouseCode and FromWarehouseCode have the correct Warehouse data.

which could be this error and how we can solve it?

objInvTransItem.BaseType = "1250000001" ;

objInvTransItem.BaseEntry = Convert.ToInt32 (ITRDocEntry);

objInvTransItem.BaseLine = Convert.ToInt16 (ITRBaseLine);

Any ideas,I appreciate your comments.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 30 at 08:24 AM

    I have the same problem. Have you found any solutions to add this document, without using the DI API? thank you

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25 at 09:08 AM

    I'm facing the same issue, did you guys solve it?

    in my case i have added the document as a draft, the only odd thing that is the BaseLine value of the line 0 is null instead of 0.

    i'm sure i'm sending a zero and not null.

    this error is happening in both ServiceLayer and DIAPI

    Maria Trinidad MARTINEZ GEA Stephan Best

    any ideas?

    Add comment
    10|10000 characters needed characters exceeded