Error when posting Sales Order

Scott_Meja
Member Posts: 30
When posting the sales Order, i am getting the following error:
You must specify Gen.Prod.Posting Group in Sales Line Document of Type='Order' and Document No.='xxxx',Line No.='20000'.
As there is nothing to post in Line No. 20000.
When i used the debugger to find out where the error is coming from then in Codeunit 80 Sales-Post\OnRun(),SalesLine.TESTFIELD
("Gen. Prod. Posting Group");
Please advice the Solution. where do i need to modify the code.
You must specify Gen.Prod.Posting Group in Sales Line Document of Type='Order' and Document No.='xxxx',Line No.='20000'.
As there is nothing to post in Line No. 20000.
When i used the debugger to find out where the error is coming from then in Codeunit 80 Sales-Post\OnRun(),SalesLine.TESTFIELD
("Gen. Prod. Posting Group");
Please advice the Solution. where do i need to modify the code.
0
Comments
-
What are the contents of line 20000?0
-
No contents (or no record) in Line No. 20000.0
-
Which Vesrion u r using?
can u show the image of error and sales order?
so dat we can help :-k0 -
-
See that no.of posting lines is showing 2..
thats why u r getting that error,
open the sales line table and check how many lines are there for the presend sales header0 -
Have you applied a filter on the subform?0
-
I checked in sales line table the no. of posting lines is only one and no filter has been applied on subform.0
-
What is the line number of the line you are trying to post (CTRL+F8)?
Do you have any modifications to add freight etc to a posted order automatically? In fact any modifications here at all, because there could be a setup here not configured correctly.The art of teaching is clarity and the art of learning is to listen0 -
I've encountered same problem right now... did you solve this.. what was the reason..0
-
Rounding line maybe?0
-
First of all I suggest you to check "Calc. Inv. Discount" field value on the "Sales & Receivables Setup" form. If the check box is checked and "your" customer has Service Chagre specified on the "Cust. Invoice Discounts" form, the program will create addidtional sales line (with Type G/L Account) during the posting prosess.
If this is true, you should check posting groups of a "Service Charge Acc." which is used for creation of this additional line. To do this you should open Customer Card (Invoicing Tab), click Lookup button on the Customer Posting Group text box. There you can find "Service Charge Acc." collumn.
Good luck.0 -
I had a similar problem, trying to post a sales order for which I had previously posted a prepayment invoice. The problem was solved by assigning a Gen. Prod. Posting Group code to the G/L Account that I was using for Sales Prepayment, as defined in General Posting Setup. The posting codeunit had created a new line for the prepayment and was looking to that G/L account for the Gen. Prod. Posting Group code.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K 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
- 320 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