Error in 'Adjust Cost - Item entries' with Bin Code

insanniinsanni Member Posts: 52
hi Guys,

I ve a problem that i can't find the solution yet :
when i calculate Adjust Cost - Item Entries, there is an error 'You must specify Bin Code in Item Journal Line Journal Template Name=",Journal Batch Name=",Line No.='0'
This error appears after i change the Production Order Status, from Released to Finished
We use Bin code but we don't use Warehouse Management
Anybody can help me ?
Thanks a lot

Insanni
insanni

Comments

  • kinekine Member Posts: 12,562
    There is some entry without BIN code which you want to adjust. You need to check the system, (turn on debugger and do the process which leads to the error) - you will see where the problem is and you can look into stack from where is what called... in this way you can check from where the BIN code in the journal is filled and with which entry you are working...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ara3nara3n Member Posts: 9,257
    Hello insanni
    This is a bug in 4.0. was fixed in sp1. in the mean time, we had to change the following line CU 21. We added quantity <> 0.

    IF ("Item Charge No." = '') AND
    ("Value Entry Type" = "Value Entry Type"::"Direct Cost") AND
    (Quantity <> 0) AND // add the following line
    NOT Adjustment
    THEN BEGIN
    GetLocation("Location Code");
    IF Location."Bin Mandatory" AND
    NOT Location."Directed Put-away and Pick" AND
    NOT "Drop Shipment"
    THEN BEGIN
    IF ("Entry Type" <> "Entry Type"::Output) OR
    ItemJnlLine.LastOutputOperation(ItemJnlLine)
    THEN
    TESTFIELD("Bin Code");
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kinekine Member Posts: 12,562
    Ah, yes, I can remember now... sorry, I forget this bug... :?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • insanniinsanni Member Posts: 52
    thanks mate, it works...!

    insanni
    insanni
Sign In or Register to comment.