Reduce the Expression - Error

Xavi
Member Posts: 26
we want to call a function in a dll file. we have to pass 26 parameters to the function. when we try to the call the function, the error what we get is "Reduce the Expression so it is less complex". what could be the problem? Do we have any limitation on the number of parameters we pass to a function in Navision? can it be solved?
Thanks
Xavi
Thanks
Xavi
0
Comments
-
There are a number of 'undocumented' limitations that we run into every once in a while -- the following come to mind:
- The number of parameters to a function call is about ?25? (as you have discovered)
- The number of replaceable parameters in a MESSAGE/ERROR/STRSUBSTNO format string (%1..%n) is about ?10?
- Recursive calls are limited to a depth of about ?20?...
Rule of thumb: Code with abandon until you run into a limit -- then tear your hair out figuring how to avoid it...!0 -
I was getting this same error. The function I was trying to call only had 15 parameters. I was calling the same function in other palaces in the codeunit without a problem. The code was looping though a for loop, calling the function each time. I changed the for loop to a while loop and the error went away.
Just wanted to update the post in case this helps someone else.
Note: Nav 4.0 (no service packs)0 -
does anybody know what could define a size or number of parameters in function tha can be called?
I have problem in 3.60, having 15 parameters on one function. Ofcourse, (by murphy's low) I need that 16th parameter but cannot set it cause of this "less complex" error.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