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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to use google clou...
Power Automate
Unanswered

how to use google cloud NLP in power automate desktop

(0) ShareShare
ReportReport
Posted on by 8

你好,

        我尝试在 Power 自动化桌面中使用 NLP 来分析英文文本,并且奏效了。但是当我尝试在 PAD 中使用 NLP 分析俄语和中文时,即使我将“语言”参数设置为“ru”或“zh”或只是空白,它也会弹出错误。任何人都可以帮助我吗?先感谢您。

NLP_EN1.pngNLP_EN2.pngNLP_EN3.pngNLP_RU1.pngNLP_RU2.pngNLP_RU3.png

 

Robin.Core.ActionException: Failed to invoke cognitive action: The request was aborted: The request was canceled.. ---> System.Net.WebException: The request was aborted: The request was canceled. ---> System.IO.IOException: Cannot close stream until all bytes are written.
at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
at System.Net.ConnectStream.System.Net.ICloseEx.CloseEx(CloseExState closeState)
at System.Net.ConnectStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.StreamWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Dispose()
在 Robin.Modules.Cognitive.Actions.GoogleCognitiveActions.InvokeCloudNaturalLanguageApi(Variant apiKey, Variant filePath, Variant gcsUrl, Variant language, Variant timeout, Variant& responseObject, Variant& statusCode, Int32 provideFile, Int32 的 StringType 的 Endapi
异常),堆栈跟踪 ---
在 Robin.Modules.Cognitive.Actions.AnalyzeEntitiesGoogle.Execute(ActionContext context)
在 Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement 语句)

I have the same question (0)
  • sunilb Profile Picture
    Microsoft Employee on at

    Hi,  Kindly use Analyze Sentiment action instead of Analyze entities and also please make sure that your API key is valid and it is working.

     

    Thanks

  • tanzic Profile Picture
    8 on at

    Thank you for your answer. As you suggest I tried Analyze Sentiment and Analyze syntax. In the same situation, it can work successfully if the text is English but the same error if the text is not English.

     Analyze Sent1.pngAnalyze Sent2.pngAnalyze syn1.pngAnalyze syn2.pngAnalyze syn ru1.pngAnalyze syn ru2.png

  • tanzic Profile Picture
    8 on at

    I found another situation. If I choose English text and set Language as "ru" then I got an error from google cloud.

    2021090701.png2021090702.png

    But if choose Russian text or Chinese text then I got a PAD error.

    2021090703.png2021090704.png

    So does the PAD has a file format requirement? Currently, I use UTF-8 no matter English or Chinese or Russian text.

    2021090705.png

    google NPL language.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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard