paint-brush
Troubleshooting Power Virtual Agents Extensions for Dynamics 365 Installationby@thecognitiveservicesninja
137 reads

Troubleshooting Power Virtual Agents Extensions for Dynamics 365 Installation

by Holger ImberyApril 19th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

You 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.

People Mentioned

Mention Thumbnail
featured image - Troubleshooting Power Virtual Agents Extensions for Dynamics 365 Installation
Holger Imbery HackerNoon profile picture


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.


Figure 1: Message to documentation for installing the extensions



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.


Error Message



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"


error 400 while installing



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



Body of "POST" Request


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


countyCode



  • 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.


Successful installing the extensions.


installed variables




 Installed actions.



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.