web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to correct call a function in field validation.

(0) ShareShare
ReportReport
Posted on by 25

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.  

pastedimage1659683292809v1.png

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    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.

  • Mai lah Profile Picture
    25 on at

    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.

  • Suggested answer
    Nitin Verma Profile Picture
    21,794 Moderator on at

    You can also start debugging the code, so that it could stop the exact position where the problem is.

    Thanks.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    99,544 Super User 2026 Season 1 on at

    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.

    Thanks.

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,933 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,055 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 640 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans