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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

argument to method setfieldvalue/getFieldValue out of range

(0) ShareShare
ReportReport
Posted on by 515

Hi Experts,

Greetings

I have a customized form and the form is basically a department wise usage of an item

When i enter the from date and to date the values get generated

However,when i try to run the form it gives me the above error as  "Argument to setfieldvalue out of range . I compiled it and then i gives argumrnt to getFiedlvalue ou of rnge

tablevariable. setFieldValue(_unit, tablevariable.getFieldValue(_unit) + _qty);--->unit & qty are passed as parameters in the function

Can someone tell me what this method does and what is the error say.

There are no array functions defined (* as per syntax on google)

I didnt get any soutions. Why to use the setfieldvalue instead of just assigning the values to table (* code was developed before me coning in project)

I have the same question (0)
  • Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at

    We can't evaluate your code without know the values you're using. What do you have in _unit and _qty variables when it fails? The error is saying that the value of one of the parameters is invalid.

    This method is useful if you don't know the field name at design time, therefore you can't simply specify it in code.

    I can't comment on why your colleagues wrote it this way, especially not without the context where this method is used.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans