Unable to post a Purch. Inv. w/ Job&Task when Bin Code Mand.
aj_ansari
Member Posts: 5
Good afternoon,
When trying to post a Purchase Invoice (or Purchase Order for that matter), we get the following error:
You must specify Bin Code in Job Journal Line Journal Template Name='',Journal Batch Name='',Line No.='0'. It cannot be zero or empty.
On the Purchase Line, the Job No. and Job Task No. have been selected. The receiving location for the Item has Bin Mandatory.
When I debug, I see that CU 1011 errors out at
As expected from the error message above, if I try to receive the Item in a location that does not have Bin Mandatory, I am able to post without any errors.
NAV Version: 2009 R2 (issue not related specifically to Classic or RoleTailored Client), Build 6.00.32012
This issue is occurring on a customer's production environment, but we are able to replicate it in a clean NAV 2009 R2 database as well.
I've attached a screenshot of the Purchase Inv. created in the clean NAV database.
Any suggestions would be appreciated!
-AJ
When trying to post a Purchase Invoice (or Purchase Order for that matter), we get the following error:
You must specify Bin Code in Job Journal Line Journal Template Name='',Journal Batch Name='',Line No.='0'. It cannot be zero or empty.
On the Purchase Line, the Job No. and Job Task No. have been selected. The receiving location for the Item has Bin Mandatory.
When I debug, I see that CU 1011 errors out at
IF Location."Bin Mandatory" THEN
TESTFIELD("Bin Code");
As expected from the error message above, if I try to receive the Item in a location that does not have Bin Mandatory, I am able to post without any errors.
NAV Version: 2009 R2 (issue not related specifically to Classic or RoleTailored Client), Build 6.00.32012
This issue is occurring on a customer's production environment, but we are able to replicate it in a clean NAV 2009 R2 database as well.
I've attached a screenshot of the Purchase Inv. created in the clean NAV database.
Any suggestions would be appreciated!
-AJ
-AJ
0
Comments
-
It looks like a bug
If you add below code in FromPurchaseLineToJnlLine function of Codeunit 1004 then it should work..JobJnlLine."Location Code" := "Location Code"; JobJnlLine."Bin Code" := "Bin Code"; // New Code
0 -
=D>mohana_cse06 wrote:It looks like a bug
If you add below code in FromPurchaseLineToJnlLine function of Codeunit 1004 then it should work..JobJnlLine."Location Code" := "Location Code"; JobJnlLine."Bin Code" := "Bin Code"; // New Code
--
Regards,
Raveendran.BS0 -
A big thank you again to Mohana! =D>-AJ0
-
Welcomeaj_ansari wrote:A big thank you again to Mohana! =D>
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 324 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
