Translate Documents via Power Automate and Azure Cognitive Services

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 43

  • @BriJ19
    @BriJ19 Год назад +1

    Great demo. So easy to follow, and showed me the tiny steps I was missing in getting mine to work!

  • @filipposasso9956
    @filipposasso9956 3 месяца назад

    Hi! Great explanation, I'm doing the same project for my company, however I'm facing a problem, my translator service runs normally but it seems that it doesn't put the converted file in the blob container, next, the http request keeps giving me statusCode as 200, but in the body i can see that the status is failed , with invalidDocument as code and the message: "Document failed during checking validity. This may be caused by corruption or unsupported type/extension. New offset cannot be less than 0. Value was -14 (Parameter 'offset')". Finally the flow blocks itself at the "Get BLOB content using path" since it cant find the document in the container.
    What do you think I should do to solve this? Thank you so much for your availability

  • @Elpatronazo98
    @Elpatronazo98 Месяц назад +1

    Hi, thanks for this video, I have a question, It's possible do this tutorial without blops ?

    • @DamoBird365
      @DamoBird365  Месяц назад +1

      I believe the translate service needs blob. But it translates the full document and keeps the layout. You could translate text.

    • @Elpatronazo98
      @Elpatronazo98 Месяц назад +1

      @@DamoBird365 Perfect DamoBird, thanks for your help

  • @JonDoesFlow
    @JonDoesFlow Год назад +1

    Great video Damien as always, I love them because they are just at the right pace for me. Got an interesting one on this though, I want to solutionise this, and I have tried to create an Environment Variable called LanguageToTranslate to - that is set to French, for this example. When I pass the EV in, to the "Start Document translation" step in the Target language the action fails. It says target language is not recognized. Ultimately, this could be in a canvas app, where the doc is uploaded, and the user sets the Language, but I'm wondering if the Target language field on the Start document translation action can take dynamic values?

    • @DamoBird365
      @DamoBird365  Год назад +1

      Hi Jon, glad you enjoy the video 👍 check out the language support learn.microsoft.com/en-us/azure/cognitive-services/Translator/language-support and use the language codes - e.g. en -> fr 😉

  • @ashokjingar1802
    @ashokjingar1802 Год назад +1

    A very nice and succinct video with all the steps - worked a treat! I had to trigger a trial 'Premium' licence to get it working in the right places (when creating the Blobs). Is there a way to avoid that?

    • @DamoBird365
      @DamoBird365  Год назад +1

      That’s awesome 😎 glad it worked out for you. I believe blob is a requirement for the service. But you can clear it out once the file has been converted.

    • @ashokjingar1802
      @ashokjingar1802 Год назад

      Thanks​@@DamoBird365. What if we wanted to create additional translations for each file uploaded? So for one English file uploaded into SharePoint, what if we wanted to then convert that to French and German? What is the best approach to this? Do you edit the flow and have some parallel actions? Or create a separate flow for each language, and it will do both?Thank you in advance. Ash

  • @LOF1401
    @LOF1401 3 месяца назад

    Hi, thanks a lot for this vidéo! Really helpfull! In my companie we avoid blob storage due to data security, do you have any alternative to it?

  • @shaheenasayyad3549
    @shaheenasayyad3549 8 месяцев назад +1

    In this flow can we add conditions as while translating the document some of the text lines should remain in the original language and other condition as some of the text lines should appear in both original and translated languages?

    • @DamoBird365
      @DamoBird365  8 месяцев назад +1

      It looks like you can pass a glossary of values not to translate learn.microsoft.com/en-us/azure/ai-services/translator/document-translation/how-to-guides/create-use-glossaries

  • @sheldonlyttle1249
    @sheldonlyttle1249 11 месяцев назад

    Fantastic demo Damien! I tried it out and worked like a charm ..... the only trouble is that I now want to try and adapt it to work with a storage account that is in a vnet. This has proven surprisingly difficult without adding a lot of infrastructure, or creating a security hole. Would you have any suggestions? I am currently exploring the vnet gateway that is in preview as one possibility, but it doesn't seem like it is really designed for power automate.

    • @prashanthpachhi321
      @prashanthpachhi321 7 месяцев назад

      Unfortunately it didnt work for me. The flow is not running after i click on test. Could you please help me

  • @abiramiselvaraj298
    @abiramiselvaraj298 3 месяца назад

    Is there any request limit for translator service for one hour or 2 hours

  • @pasfins
    @pasfins 3 месяца назад +1

    Followed the steps. Worked for about 10 documents and now all the documents are corrupted. Any ideas ? Thanks a lot!

    • @DamoBird365
      @DamoBird365  3 месяца назад

      Sounds like an issue with the service, do let me know if you find the problem to help others but I don't know the reason why.

    • @pasfins
      @pasfins 3 месяца назад

      @@DamoBird365 I recreated the Translator instance and it seems to be working now. Could it be related to the credits in the PowerAutomate Admin center? Thanks

    • @DamoBird365
      @DamoBird365  3 месяца назад

      @pasfins no - as this service runs in Azure. Your requirements for Power Platform are premium licensing to run the http action or a custom connector. Glad you’ve got it working now though 👍

  • @alrightmeow6916
    @alrightmeow6916 5 месяцев назад +1

    Super solid instructional video. Subbed.

  • @prashanthpachhi321
    @prashanthpachhi321 7 месяцев назад +1

    i am having a flow and its failing could you please help me troubleshoot it, I am beginner in power automate

    • @DamoBird365
      @DamoBird365  7 месяцев назад

      Best place to start would be the forums powerusers.microsoft.com/

  • @Trueinfo-d7q
    @Trueinfo-d7q 8 месяцев назад

    First of all, thank you for the good video.
    I tried the same thing, but in the "HTTP" action,
    "error": {
    "code": "InvalidRequest,"
    "message": "Cannot access source document location with the current permissions.",
    "target": "Operation",
    "innerError": {
    "code": "InvalidDocumentAccessLevel",
    "message": "Cannot access source document location with the current permissions."
    }
    What should I do when I get this error?

    • @DamoBird365
      @DamoBird365  8 месяцев назад

      I can only guess that your storage account isn’t setup correctly.

  • @obu1985
    @obu1985 Год назад +1

    Hi! this is a great video! Does that flow work to translate Word documents?

    • @DamoBird365
      @DamoBird365  Год назад

      It does indeed! Check out the following link learn.microsoft.com/en-us/azure/ai-services/translator/document-translation/overview#supported-document-formats

    • @obu1985
      @obu1985 Год назад +1

      @@DamoBird365 this is awesome! Thank you!

    • @obu1985
      @obu1985 Год назад

      Hi! I was testing the flow and I'm getting this error in the "Start document translation" action:
      {
      "statusCode": 500,
      "message": "Internal server error",
      "activityId": "9a85db67-a55d-417a-a14f-bc4ba9c79d18"
      }
      It loads the file in the "incoming" container and then it retries the operation one time before failing. I'm using S1 and I think all the permissions are correct.
      Did you face this issue?
      Thanks in advance!

    • @DamoBird365
      @DamoBird365  Год назад

      @@obu1985 I can’t recall now. I do think it’s possible to check error logs from the azure service or maybe it was from the rest api. Are both the service and blob in same region?

    • @obu1985
      @obu1985 Год назад +1

      Hi again @@DamoBird365! The fix in my case was to recreate the Azure resources in the West US 2 region. I was using East US 2 initially.

  • @prashanthpachhi321
    @prashanthpachhi321 7 месяцев назад +1

    where can i get this flow?

    • @DamoBird365
      @DamoBird365  7 месяцев назад

      It’s one you would need to build yourself 👍

  • @lxz86
    @lxz86 Год назад +1

    the video is very useful, but i only have a E3 user right , so i can not create the server on the azure to try it. thanks all the same.

    • @DamoBird365
      @DamoBird365  Год назад

      Cheers 👍 hopefully if you ever have a requirement to work with Azure, you’ll know where to look 😉 Please let me know if there is anything you would like to see as a video meanwhile 👍

    • @geralddahl9159
      @geralddahl9159 Год назад

      I educate adult learners (some from different countries) so this could be useful. Could you possibly estimate ‘pay as you go’ cost for translating the file chosen for this demo? (Just curious, I won’t ‘hold anyone to account’ for this free-advice request.) Also, I noticed you set a variable without initializing it first? If this observation is correct, would you care to comment on the purpose of ‘initialize a variable’? Thank you.

    • @DamoBird365
      @DamoBird365  Год назад

      @@geralddahl9159 the S1 Payg service is £12 per million chars, and the api returns the number of chars, in this case 32,000. So it’s about 30-40p a conversion. azure.microsoft.com/en-gb/pricing/details/cognitive-services/translator/

  • @Flarehub4u-qc7pr
    @Flarehub4u-qc7pr Год назад

    Actually I tried the same but it is stuck on the loop for more than 15 minutes and fails

    • @DamoBird365
      @DamoBird365  Год назад +1

      So there are a few must haves, having gone through this. Two things to check, you must have S1, free tier doesn’t do document translation. You must also create a managed identity and enable access to the storage.

    • @prashanthpachhi321
      @prashanthpachhi321 7 месяцев назад

      Same issue with me as well