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 / Automatically create a...
Power Apps
Unanswered

Automatically create a Power App from a REST API throwing errors

(0) ShareShare
ReportReport
Posted on by 107

Hi all

Today I found this article Automatically create a Power App from a REST API | Microsoft Power Apps explaining new pac create feature. As mentioned in the article above we should give feedback here. So here it is.

Trying that new feature with a custom connector we use already in apps and flows throws the following errors (For data protection reasons, I have anonymized the paths and operations):

 

Warning AG2004: Warning encountered when generating controls for /<stripped>/{id}/<stripped>/callback/ path and AnalyzeInputsCallback operation. Details: Generating control(s) for Body parameter inputs of type array of object is not supported
Warning AG2004: Warning encountered when generating controls for /<stripped>/{id}/<stripped>/callback/ path and AnalyzeInputsCallback operation. Details: No valid value was generated for Body parameter inputs of type array
Warning AG2004: Warning encountered when generating controls for /<stripped>/{id}/<stripped>/callback/ path and AnalyzeInputsCallback operation. Details: Body parameter inputs of type array is an invalid operation call parameter since its value is either invalid or empty
Warning AG2004: Warning encountered when generating controls for /<stripped>/{id}/<stripped>/callback/ path and AnalyzeInputsCallback operation. Details: Formula to call or execute the operation is empty
Warning AG2004: Warning encountered when generating controls for /<stripped>/{id}/<stripped>/callback/ path and AnalyzeInputs operation. Details: Generating control(s) for Body parameter inputs of type array of object is not supported

Warning AG2004: Warning encountered when generating controls for /<stripped> path and <AOperationName> operation. Details: Generating control(s) for Body parameter metadata.agps[*] of type array of object is not supported
Warning AG2004: Warning encountered when generating controls for /<stripped> path and <AOperationName> operation. Details: No valid value was generated for Body parameter metadata.agps[*] of type array
Warning AG2004: Warning encountered when generating controls for /<stripped> path and <AOperationName> operation. Details: No valid value was generated for Body parameter metadata of type object
Warning AG2004: Warning encountered when generating controls for /<APath> path and <AOperationName> operation. Details: Body parameter metadata of type object is an invalid operation call parameter since its value is either invalid or empty
Microsoft PowerPlatform CLI
Version: 1.17.5+gcbb58e8

 

I think the new command is not fully developed yet, isn't it?

I have the same question (0)
  • Verified answer
    ChrisBal-MSFT Profile Picture
    Microsoft Employee on at

    Hello, thanks for writing in about this.  There are certain cases where the command will generate warnings such as the ones you've seen here.  There are all warnings, and not errors - so I would expect that it would still generate a .msapp file.

     

    There are certain types of connector inputs and outputs that the 'canvas create' command doesn't currently support either because there is no suitable equivalent control in canvas apps, or because it's ambiguous or complex to render.  These warnings indicate that one of these types is defined in the connector, and was skipped while generating the app.  

     

    More information about some of these limitations is here: https://docs.microsoft.com/en-us/power-platform/developer/cli/reference/canvas#remarks

     

    This is something we hope to improve as we evolve the feature - your thoughts on what is critical to support and how important you feel it is will help us prioritize, so please send along feedback.

  • Aedu Profile Picture
    107 on at

    Hi 

    Thank you for answering.

    No, it didn't generate anything.

  • ChrisBal-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Aedu - it's not expected that you wouldn't get an .msapp generated if there are no errors and only warnings.  We'd like to investigate further.  Could you please send me a private message with the following info?:

     

    1. A screenshot of the command you ran and the full console output
    2. If able, the .swagger.json definition of the custom connector.  You can redact/anonymize anything you need to from there but we'd like to see the types/definitions of the actions to make sure we're doing the right thing.  You can get this by browsing to the custom connector in the Dataverse tab and clicking the Download button as shown here:

    ChrisBalMSFT_0-1661355247948.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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard