Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Cognitive Services (Text Analytics) in Canvas App - Connection Error

(0) ShareShare
ReportReport
Posted on by 4

Hi there,

i am trying to build a demo Power App using Cognitive Services as described here.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/cognitive-services-api

 

I setup a TextAnalytics Ressource in Azure. Used Postman to test. When I am trying to connect this in Power Apps I get the following message:
Error Power Apps.png

 

 

 

*No wadlUrl is specified for this Api. This usually indicates there was an error when converting the Swagger associated with this api to a WADL file.
apiId: /providers/microsoft.powerapps/apis/shared_cognitiveservicestextanalytics*

 

Used the information from Azure Portal, using copy & paste.

Key.png

 

 

 

 

 

 

 

 

 

 

 

Also i created the ressource in different regions, but that did not help.

 

Did some searching, but know luck 😞

I really would appriciate some help!
Thanks! Fabian

 

  • Fabian79 Profile Picture
    Fabian79 4 on at
    Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hi @Durga27 ,

    never got it to work 😞

     

  • Durga27 Profile Picture
    Durga27 2 on at
    Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hello @Fabian79 .

    I'm facing the exact same issue. I have been trying to find the solution since 2 days but haven't found any solution.

    Could you help me if you resolved the error.

    Thank you.

  • Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hi @Fabian79 

     

    As I mentioned, the API key is not working with PowerApps but works with PostMan or console.

     

    For Proof of concept, you don't need to enter an API key to test this. I recommend creating an MS ticket to find the root cause.


    Thanks,
    Stalin - Learn To Illuminate

  • Fabian79 Profile Picture
    Fabian79 4 on at
    Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hi There, i still get the same error.

    In the tutorial that I linked above it asks for the URL to the Textanalysis and not a patricular Cognitive Service. It is necssary to provide an api key, as it is an mandatory field.

     

    I think the idea of the tutorial is, that you click on the interface to choose the corresponding Service.

     

    ClearCollect( languageInfo, { id: "E393CEB2-56A8-4668-A5EB-A1254E9758F0", countryHint: "US", text: tiTextToAnalyze.Text } );
    TextAnalytics.LanguagesV3(languageInfo);
    If( chkLanguage.Value=true,
     ClearCollect( languageCollect,
     TextAnalytics.LanguagesV3(languageInfo).documents.detectedLanguage
     )
    );
    ClearCollect( phrasesInfo, { id: "E393CEB2-56A8-4668-A5EB-A1254E9758F0", language: "en", text: tiTextToAnalyze.Text } );
    If( chkPhrases.Value = true,
     ClearCollect( phrasesCollect,
     TextAnalytics.KeyPhraseV3(phrasesInfo).documents.keyPhrases
     )
    )

    I can access particular Cognitive Services via Postman, that works.

    @Micha1, did you get it to work ?

     

    Thanks,

    Fabian

  • Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hi @Micha1@Fabian79 


    Please let us know if anything needs on your post. We can help with this.

    Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

    Thanks,
    Stalin - Learn To Illuminate

  • Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    Hi @Micha1 

     

    I tested the translator service yesterday. As you said It works well with a console application/Postman using the subscription key.

     

    StalinPonnusamy_3-1634302248059.png

     

    Looks like the Issue with regions and PowerApps. Find the Article for the Regions Availability

     

    For Proof of concept, don't need to enter the subscription key

     

    StalinPonnusamy_0-1634302146217.png

     

     

    It works fine

    StalinPonnusamy_1-1634302146211.png

     

     

    If no subscription key is provided, the shared API key will be used, which comes with built-in throttling limits based on the number of characters that are being translated, specifically 55,000 characters per day and 100 requests per minute.

     

    But for the production release, I suggest creating a Microsoft ticket to get the updates whether expected or bug.

     

    StalinPonnusamy_2-1634302146128.png

     

     

  • Micha1 Profile Picture
    Micha1 7 on at
    Re: Cognitive Services (Text Analytics) in Canvas App - Connection Error

    I have the same problem. have you been able to solve it?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard