microsoft / coe-starter-kit

Other
748 stars 221 forks source link

Pulse [Child] - Translate text (AI Builder) action not available in UK region #3138

Closed KishoreJagan83 closed 2 years ago

KishoreJagan83 commented 2 years ago

Describe the issue

We are facing Error in the below child flow. Where Text Translate Action throws error.

Expected Behavior

Pulse [Child] - post adaptive cards to maker this flow should execute successfully image

What solution are you experiencing the issue with?

Nurture

What solution version are you using?

2.12

What app or flow are you having the issue with?

Pulse [Child] - post adaptive cards

Steps To Reproduce

PFB screenshot in edit mode. image

Anything else?

No response

manuelap-msft commented 2 years ago

Hello,

interesting! I do not repo this image

Can you let me know

  1. Is your tenant in a commercial cloud or government cloud (e.g. GCC, GCC High, DoD)?
  2. What Region is your environment in (United States, Europe etc)?
  3. If you try to add an action and search for translate text, does the translate text into another language option show up? image
KishoreJagan83 commented 2 years ago

Thanks For the Quick response, PFB details.

  1. No it is not part of commercial or government cloud
  2. Region is United Kingdom image
manuelap-msft commented 2 years ago

Hello,

it looks like the feature we're using is not available in the UK region (Text translation in the last row) https://docs.microsoft.com/en-us/ai-builder/availability-region#prebuilt-models

That was an oversight on our end, apologies! We will work on removing the translate text functionality and just write the adaptive cards in English for our August release.

If you wanted to update the flow yourself in the meantime, let me know and I'll share the steps with you!

KishoreJagan83 commented 2 years ago

@manuelap-msft sure that would be good if you could share the steps for updating the flow. So we will edit the OOB flow and then will patch the same.

manuelap-msft commented 2 years ago

Hello,

yep, unfortunately there's a product limitation which means you can't take a copy (use Save As) on flows that have child flows, so you will have to edit the flow in the solution.

  1. Edit the flow

  2. Remove the Translate text into another language action and the Parse JSON action

  3. Open up the Post adaptive card to maker to ask for pulse feedback action

  4. Replace the Message text with this text - you can see I replaced the dynamic value which we got through the translate with static English text: { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "We need your feedback" }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch" } ] }, { "type": "TextBlock", "text": "As a Power Platform developer, we really value your feedback. As part of our commitment to continually improve our service, we would appreciate it if you could provide us with some feedback? What can we do better, what are we doing well and what isn't working well for you today?", "wrap": true }, { "type": "TextBlock", "text": "Describe how satisfied you are with the internal Power Platform adoption program and what works well for you today?", "wrap": true, "weight": "Bolder" }, { "type": "Input.Text", "placeholder": "", "isMultiline": true, "maxLength": 20000, "id": "myCurrentSatisfaction" }, { "type": "TextBlock", "text": "What else would you like to see as part of our Power Platform adoption program?", "wrap": true, "weight": "Bolder" }, { "type": "Input.Text", "placeholder": "", "isMultiline": true, "maxLength": 2000, "id": "myFutureIdeas" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "actions": [ { "type": "Action.Submit", "title": "Submit Feedback", "id": "btnSubmit" } ] }

  5. Open up the Check if feedback is provided IF statement

  6. Delete the Translate current satisfaction into admin language and Parse translated language actions image

Save the flow!

Let me know if that works!

KishoreJagan83 commented 2 years ago

Hi @manuelap-msft , No it doesn't work ,still it has dependency on the Translate Text action. image

manuelap-msft commented 2 years ago

Oh yes, can you get rid of the dynamic value here and select English from the drop down as a static value in this field.

CoEStarterKitBot commented 2 years ago

@KishoreJagan83 This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.