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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Error for Patch function in powerFX "Invalid number of arguments: received 1, expected 2 or more"

(0) ShareShare
ReportReport
Posted on by 45
Hello I tried to execute this Patch powerfx formula but it didnt work : 
Patch( Parcours, Defaults(Parcours),{Nom: "Copy of " & Self.Selected.Item.Nom} );
Notify("A copy of the selected asset, " & Self.Selected.Item.Nom & ", has been created. Please open the record and update the necessary fields.")
I get 3 errors : 
- Invalid number of arguments: received 1, expected 2 or more.
- Unexpected characters. The formula contains 'ParenClose' where 'Error' is expected.
- Unexpected characters. Characters are used in the formula in an unexpected way.
What am I doing wrong please : this is an image for the error
7041.Sans-titre.png
I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Error for Patch function in powerFX "Invalid number of arguments: received 1, expected 2 or more"

    Hi,

    Have you tried publishing the changes with error by clicking on Save and Publish button on ribbon?

    Also. try reloading your page once you have published your changes.

    If it does not help then I would recommend you to submit your issue on below forum -

    powerusers.microsoft.com/.../CDS_Apps

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Omar Bouattour Profile Picture
    45 on at
    RE: Error for Patch function in powerFX "Invalid number of arguments: received 1, expected 2 or more"

    I dont think this is the case, even if I try : Patch( Parcours, Defaults(Parcours),{'zs_Nom': "Copy"} )

    I get the same error

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Error for Patch function in powerFX "Invalid number of arguments: received 1, expected 2 or more"

    Hi,

    I have tried in my instance and it works as expected. Please see below my Formula -

    Patch(Employees, Defaults(Employees),{'msft_employeenumber':"Copy of " & Self.Selected.Item.'Employee Number'});

    Notify("A copy of the selected asset, " & Self.Selected.Item.'Employee Number' & ", has been created. Please open the record and update the necessary fields.");

    The only diference I found is the field schema name in Patch function. Can you please specify Name field schema name in single quote to see if it works.

    CR82.PNG

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 178

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans