Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Run Failed - The method 'run' has an invalid value for parameter 'GetItem_id'

Hello all,


I have a strange problem.


My customised form and flow were working fine yesterday but for some reason it's not today.

I'm getting:


       <myflow>.Run Failed: The method 'run' has an invalid value for parameter 'GetItem_id'


I don't know what's happened, nor how to fix it 😞


I've refreshed my data source plus removed and added back in the flow into the customised form but still no joy.

I've also added the GetItem action back into the flow but that didn't work too.

I've even restored the customised form to a previous version and that didn't help either.


Does anyone know how to fix this?








Community Support
Community Support

Hi @ateale ,

I've searched some similar issues, here are some tips that may help you:


1)Could you show me your formula of running flow?

The order of arguments of your 'FLOW'.Run() function is based on the order of parameters that you specified within your flow. Please check if you have provided proper value for corresponding arguments of your 'FLOW'.Run() function.

2)When the SubmitForm formula executed successfully, the Form control (Edit form) would be reset. Then the Form1.LastSubmit.ID formula would return blank, so your MyFlow.Run() formula would fail.

You could try to use in OnSuccess property.

set the submit button's OnSelect:


set the form's OnSuccess:





Best regards,


Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

Hi @ateale how are you progressing with this? Was the above reply helpful? 



Frequent Visitor

I don't know whether it helped @ateale' .. but you just saved my bacon 3 years on!  

I just couldn't understand why I was getting an error with my code on my Save Button!

If(NewForm_1.Valid,SubmitForm(NewForm_1);ResetForm(NewForm_1);Reset(EmployeeLeaveGallery);Set(varShowNewForm,false),Notify("* Mandatory Fields Need Completing",Warning,2000));LeaveStartApprovals.Run(NewForm_1.LastSubmit.ID)


THEN IT CLICKED!  I had put the Run Workflow command 'after' I had told it to reset the form.


Now working like a dream: If(NewForm_1.Valid,SubmitForm(NewForm_1);LeaveStartApprovals.Run(NewForm_1.LastSubmit.ID);ResetForm(NewForm_1);Reset(EmployeeLeaveGallery);Set(varShowNewForm,false),Notify("* Mandatory Fields Need Completing",Warning,2000))

Thank You 🙂

Thank you, this worked.

How did you get it to work? 

using this formula on OnSuccess 


Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,511)