"The Bin does not exist" error when posting

gadzilla1gadzilla1 Member Posts: 316
When posting to the Consumption Journal we encounter the following error for one particular raw material:

The Bin does not exist.

Identification fields and values:

Location Code='SWPI', Code=''



Any ideas? We've tried everything and nothing seems out of place. Thanks, Chris

Answers

  • matttraxmatttrax Member Posts: 2,309
    Try stepping through the debugger. See where the blank bin code is coming from.
  • gadzilla1gadzilla1 Member Posts: 316
    Thanks, I did just that. It breaks on error on the following bold line in the BinGet function of Codeunit 7301:

    IF (Bin."Location Code" <> LocationCode) OR
    (Bin.Code <> BinCode)
    THEN
    Bin.GET(LocationCode,BinCode);

    But...everything looks good. We've never seen this before. Must be an obvious one, any ideas out there?
  • canadian_baconcanadian_bacon Member Posts: 91
    Kind of an obvious question, do you have a value in the bin code field in the consumption journal?
  • gadzilla1gadzilla1 Member Posts: 316
    Thank you for all the replies.

    For this particular issue, the raw material we were trying to consume had an additional trace amount (.0001 or something like that)...when we tried to consume, the 'Bin' error was thrown, but each record had a bin code (to answer the latest question).

    So this was an anomaly, a rounding issue that seemed to throw an unrelated error. If anyone else has input on similar errors, please share. Otherwise I'll close the issue.

    Have a great day. Chris
Sign In or Register to comment.