Troubleshooting Power Virtual Agents Extensions for Dynamics 365 Installation

Written by thecognitiveservicesninja | Published 2023/04/19
Tech Story Tags: dynamics-365 | voice-assistant | customer-experience | microsoft-dynamics | customer-service | business-strategy | user-experience | technology-trends | web-monetization

TLDRYou want to use Power Virtual Agent with Dynamics 365 Customer Service. You get an error message saying the solution is not compatible with your environment. This article is to overcome the situation for those running into the error. It is a "works-on-my-machine" solution and should help those who can fix it.via the TL;DR App

Situation Report - A “Strange Behavior” and a “Fix”

You want to use Power Virtual Agent with Dynamics 365 Customer Service, and you are trying to install the extensions to activate variables and actions.

You are following precisely the path described in the documentation, but you get an error message saying the solution is not compatible with your environment. In my case, all language settings are on en-US, but my tenant has a location in Germany.

If you're facing an error and need help resolving it, you've come to the right place. While the solution presented here may be specific to my machine, it should help you pinpoint the root cause of the issue and find a fix that works for you. Let's get started!

Workaround

Here comes a dirty workaround to get it done in between.

Open the developer tools in your browser (Edge: CTRL+SHIFT+I) and open the Network Tab. While clicking on "install", you will see an error "400"

  • right-click on the line with the error and
  • select "Edit and Resend"
  • Search for the Body of the "POST" Request.

  • copy the body to an editor and
  • find the "countryCode"; mine was set to DE,

  • exchange the countryCode to "US"

    "countryCode" : "US"

  • copy it back to developer tools and

  • Click on the send button.

You will then recognize a result code "200" in the status line.

If you close the installation popup and go straight to the environment you want to install the extensions to, you will see that this "fix" was successful.

Conclusion

Do not give up when something unexpected happens. Find the root cause with the tools you have and give a first thought a try.


Also published here.


Written by thecognitiveservicesninja | Code Fanatic | Low Code Hacker | Bot Keeper | Power Platform & Azure Architect | Developers Advocate
Published by HackerNoon on 2023/04/19