Compile error table 112 - When the function is called, the min number of parameters should be used..

stefanb
Member Posts: 15
We are upgrading from nav2015 to nav2016. After importing the application objects file into our existing organization database we get an error while compiling all objects.
Table 112 Sales Invoice Header
When the function is called, the minimum number of parameters should be used. For example:
MyFunc( .. , .. , .. )
ROUND(MyVar)
ROUND(MyVar,0.05)
Anyone know a solution?
Thanks!
Table 112 Sales Invoice Header
When the function is called, the minimum number of parameters should be used. For example:
MyFunc( .. , .. , .. )
ROUND(MyVar)
ROUND(MyVar,0.05)
Anyone know a solution?
Thanks!
0
Answers
-
You need to have .txt export files of the Sales Invoice Header object from both 2016 & 2017. Compare them in a merge tool, so you can see what functions have changed. Or you could just open the object designer, and try to Compile the object. It will show you where the incorrect parameters are being passed.0
-
Hi,
Is it a dotnet variable which is showing this error?
Then you have to first manually select the dotnet variable subtype from the list as it may be referring to old version of NAV, not the upgraded one. Then you can compile the object and check if the error still persists.0 -
Hi Robbo,
When I compile the object in object designer the code editor will open and jump to the following line of code. (there is a small red line under the semicolon at the end)
Line 510;
DocumentMailing.EmailFileFromSalesInvoiceHeader(SalesInvoiceHeader,ServerAttachmentFilePath);
The codeblock is:
Line 506 - 510;
LOCAL SendReport(ReportId : Integer;VAR SalesInvoiceHeader : Record "Sales Invoice Header")
ServerAttachmentFilePath := COPYSTR(FileManagement.ServerTempFileName('pdf'),1,250);
REPORT.SAVEASPDF(ReportId,ServerAttachmentFilePath,SalesInvoiceHeader);
COMMIT;
DocumentMailing.EmailFileFromSalesInvoiceHeader(SalesInvoiceHeader,ServerAttachmentFilePath);
I checked the code for this object in NAV2015 but I can't find no changes. See code below for NAV2015.
LOCAL SendReport(ReportId : Integer;VAR SalesInvoiceHeader : Record "Sales Invoice Header")
ServerAttachmentFilePath := COPYSTR(FileManagement.ServerTempFileName('pdf'),1,250);
REPORT.SAVEASPDF(ReportId,ServerAttachmentFilePath,SalesInvoiceHeader);
COMMIT;
DocumentMailing.EmailFileFromSalesInvoiceHeader(SalesInvoiceHeader,ServerAttachmentFilePath);
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