@vinod chinthakindi,
I cant help you with the data gateway integration as I have no hands-on experience with it. I can give you some troubleshooting tips from the perspective of having the Blue Prism runtime resource deployed on an Azure VM. Not sure that will be much help, but it might give you something to look at.
As I was setting this up in Azure I ran into a similar issue as you in that I was receiving a 401 unauthorized error when I tried to test any of the 3 actions exposed by the connector (i.e. StartProcess, GetProcessList, or GetProcessSchema). Here's what I did, with the help of Chris, to troubleshoot.
- First thing I did was verify I could reach my Blue Prism instance on Azure by bringing up the list of published SOAP services in the browser. So I used Chrome to navigate to my system (ex. http://XXXXXXXXXXX.cloudapp.azure.com:8181/ws/). If you get the list of public web services you're good there. If not, you may have a network/firewall issue.
- After that, I used SoapUI to verify that I could reach my actual Blue Prism process. This entailed importing the WSDL from the remote system (ex. http://XXXXXXXXXXX.cloudapp.azure.com:8181/ws/AddTwoNumbers?wsdl) and then performing a test execution. If this works, you should be good with public access to your SOAP web service. If not, you may have an authentication issue or possibly an HTTP vs HTTPS issue.
- From there, I went back and verified the complete definition of my Custom Connector definition in Power Automate. That's where I realized my hostname, on the General Information page, was missing a few characters. So I went back to the Azure Function definition and copied the hostname again and pasted it in the Power Automate definition. At this point, I was able to successfully complete the Test option within Power Automate.
- There could be other areas that are getting in the way of your testing though, so you should also verify:
- Each of the 3 Action definitions in Power Automate have the correct value within the code parameter. These should be set to your default API key from your Azure Function definition.
- Make sure the URL that's shown for the Actions is correct. For you it will probably be something like https://powerplatformconnector20210427122451.azurewebsites.net/api/BluePrismRestInterface.
- Make sure your value for the resourceName parameter is correct. This is the hostname and port of the machie where you're running the Blue Prism process. This has to be a hostname that Azure can access hence the reason it should be an Azure VM, an on-premise data gateway, or simply a public hostname on the internet. In my case, I'm using an Azure VM so my hostname is something like XXXXXXX.southcentralus.cloudapp.azure.com:8182
- FInally, you need to create a Connection on the Test page in Power Automate. The Connection is where you specify the HTTP Basic Auth credentials that are required by Blue Prism to run the process that you pass in to the StartProcess call.
Hope this helps.
Cheers,
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------