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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / run is an unknown or u...
Power Apps
Unanswered

run is an unknown or unsupported function in namesapce

(0) ShareShare
ReportReport
Posted on by 379

Greetings! I have been trying to fix this error in my application for several days and I have not been able to find the solution, maybe it is something simple, but I cannot see it, please if someone knows how to help me, I will be grateful, I include screenshots of my application and flow so you can have a better idea. This app is about a project form where you can view your PDF application, then save it directly to a document library in SharePoint called Exported PDF.

 

lcdelgado_0-1683727226430.pnglcdelgado_1-1683727261997.pnglcdelgado_2-1683727362914.png

I really appreciate any help on this matter. 🤗

Categories:
I have the same question (2)
  • mmollet Profile Picture
    3,187 on at

    Have you connected the flow to the app? If not def do that first and they try it again. If you have then try to disconnect it and then readd the connection. Sometimes this fixes the issue. You can also go into Power Automate and click My Flows then open the flow settings for the flow in question and make sure it is turned on and not off.

  • lcdelgado Profile Picture
    379 on at

    this is the code that I attach on the PDF icon

    lcdelgado_0-1683745279832.png

    and this is the code that I have on the save icon 

    lcdelgado_1-1683745452325.png

     

  • mmollet Profile Picture
    3,187 on at

    Click the button outlined in red and confirm that your flow is in that list.

    Screenshot 2023-05-10 at 2.03.12 PM.png

     

    If it is not there click add flow and then add that correct flow you wish to use. If it is there try removing it and readding it to refresh the connection. After this is done test it again.

  • lcdelgado Profile Picture
    379 on at

    Just did it! thank You, now is another error: 

    lcdelgado_0-1683745852117.png

     

  • mmollet Profile Picture
    3,187 on at

    Awesome! This new error is referring to the number of things you asked for Power Apps to give your flow for it to run. The error states that the flow is expecting 0 or 1 but you are giving it 2 data points. This means that you should only have code like this:

    FlowName.Run(Parameter1)

    instead of like this:

    FlowName.Run(Parameter1, Parameter2)

     

    I cant decide for you which one needs to be removed but one of these items that you are passing into the flow is extra and not needed. Once removed you should be golden! 🙂

  • lcdelgado Profile Picture
    379 on at

    This is my Flow: are you referring of this two?

    lcdelgado_2-1683746593166.png

     

     

  • mmollet Profile Picture
    3,187 on at

    Yeah! So the easiest way to know what the flow is expecting is to do so in Power Apps. First drop in a label and go to its OnSelect property. Start to type your flow name and then autocomplete up to the openeing '(' and it should look something like this: FlowName.Run(

     

    Power Apps should tell you up top by the formula bar what exactly it is expecting as the next parameter. In your case it will probably show PDFFileContent or something like that. Go ahead and enter that info then click , and see what pops up next. If nothing pops up such as File.Name then the flow is not expecting anything else. If you pass it something it will get confused and not run. This is what you need to check. Here is an example of a flow of mine that takes 4 parameters and at the top you can see what it is expecting and then the code shows what I passed in. 

     

    Screenshot 2023-05-10 at 2.29.27 PM.png

     

  • lcdelgado Profile Picture
    379 on at

    Like this?

    'Download_PDF'.Run(

    {
    name:"ProjectForm.pdf",
    contentBytes:'PDF Viewer Screen'}

    );

  • mmollet Profile Picture
    3,187 on at

    Can you share a screenshot of your like the one I posted above so I can see what the flow is expecting? 

  • lcdelgado Profile Picture
    379 on at

    I have this error: 

    lcdelgado_0-1683747957705.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard