Announcements
No record found.
Hi, how to correct call a parametr function in validation on field. When i trying to compile object i got error.
To precise i named parametr function CurrFieldNo, I need to call dimension code in field validation, before function insert it to table.
The problem here is that you call a function with out sending the correct parameters according to the functions signature.
Functionname(param1,param2)
So check what parameter you function requires and make sure to pass them all and with correct data type.
I'm trying to set it, but i really struggle.
I have function, which i calling OnInsert in table, but some part of this function i need to call in "No." and "Item Category Code" in Validation part. I have parametr CurrField (Integer), but I'm not sure what i'm doing wrong.
In field validation i have Function(CurrField("No.")), same in Item Category Code, but how i should call rest of the code in OnInsert table?
Thanks for further help.
You can also start debugging the code, so that it could stop the exact position where the problem is.
Thanks.
I think it would be easier to help you if you share some of your code so we can see what you are trying to do.
Hi, as mentioned by Inge, this error is caused by incorrect parameters in the function. So you should check your function.
And is it related to Function Overloading?
https://www.softwareanswers.co.uk/function-overloading-in-microsoft-dynamics-nav/
https://www.waldo.be/2018/05/29/function-overloading-in-al/
Hope this helps as well.
ZHU
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,933 Super User 2026 Season 1
YUN ZHU 1,055 Super User 2026 Season 1
Teagen Boll 640 Super User 2026 Season 1