Unable to retrieve feature layers when setting up ArcGIS Connector in Microsoft Power Automate

4603
16
08-06-2022 10:25 AM
KevinMantels
Occasional Contributor

I am trying to create a new automated cloud flow in Microsoft Power Automate using the ArcGIS for Power Automate connector and its available triggers.  Regardless of which trigger I use, when I attempt to select the feature layer to be tracked I receive the following error message: "Could not retrieve values.  The dynamic invocation request failed with error: Unexpected error occurred when calling the APIHubsRuntime API: ...".  A screenshot of the error message is below.

I have confirmed that the ArcGIS for Power Automate connector has the correct credentials for my ArcGIS Online account and is connected.  I have a premium Power Automate account, so even though ArcGIS is a premium connector I do not believe that would be the issue.  I am using Power Automate in a government environment, and I have noticed that the connectors that are available in my government account are limited compared to those available in commercial accounts, but I am uncertain if that could be causing these issues.  Lastly, for what it's worth, I am able to create flows with the Survey123 connector without any issue.  I realize they are two completely different connectors, but I am still mentioning in case it is relevant.

I am not sure if I am missing some steps or settings.  The Survey123 connector worked out of the box, so I had assumed the ArcGIS connector would as well.  Bottom line is I am out of troubleshooting ideas at this point.  Any assistance would be greatly appreciated.

KevinMantels_0-1659805702267.png

0 Kudos
16 Replies
AnthonyLatini
Esri Contributor

Thank you for the link @DominicRobergeIADOT . My colleague @ArcGISforPowerAutomate  and I are looking into that thread as well as a few others that are experiencing this issue. 

0 Kudos
AnthonyLatini
Esri Contributor

@DominicRobergeIADOT @KevinMantels @JessMiller1 @Esteban_Leguizamo - Good afternoon, all. My colleague @ArcGISforPowerAutomate and I have pushed out an update that should resolve this issue. 

Please test your flows and let me know if you are still experiencing this issue. As a note, the errors that are shown in this thread are slightly different than the error that was being displayed in this thread: Solved: Re: issue retrieving feature layer using Template - Esri Community

0 Kudos
JessMiller1
Emerging Contributor

Thank you for checking out this issue! Unfortunately, it still won't populate anything for me. It takes a long time to load the value, then nothing. Here's my error still...

JessMiller1_0-1700571697511.png

 

 

Could not retrieve values. The dynamic invocation request failed with error: Unexpected error occurred when calling the ApiHubsRuntime API: 'System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<>c__DisplayClass47_3`2.<<CallService>b__2>d.MoveNext() in C:\__w\1\s\src\processsimple\Roles\ProcessSimple.Data.Shared\DataProviders\Services\HttpClientDataProvider.cs:line 580
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.ResourceStack.Common.EventSources.IHttpEventSourceExtensions.<TraceHttpOutgoingRequest>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<>c__DisplayClass47_1`2.<<CallService>b__0>d.MoveNext() in C:\__w\1\s\src\processsimple\Roles\ProcessSimple.Data.Shared\DataProviders\Services\HttpClientDataProvider.cs:line 566
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.WindowsAzure.ResourceStack.Common.Algorithms.AsyncRetry.<Retry>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.Azure.ProcessSimple.Data.DataProviders.HttpClientDataProvider.<CallService>d__47`2.MoveNext() in C:\__w\1\s\src\processsimple\Roles\ProcessSimple.Data.Shared\DataProviders\Services\HttpClientDataProvider.cs:line 493'.

0 Kudos
AnthonyLatini
Esri Contributor

Thank you for the update @JessMiller1 . This error is slightly different than the one that was resolved. We are still looking into this error as well. 

Two quick questions on this:

1. Does this error still occur in an incognito/private window? 

2. Does this happen in your account or multiple ArcGIS accounts in your organization?

0 Kudos
Krocha
by
Frequent Contributor

Hello @AnthonyLatini, I am still experiencing the same issue. It does not let me copy the error message only screenshot it. I also tried it through a private browser but same error issue. I have created a previous flow using ArcGIS connector and it works fine but for some reason i cannot create a new one using ArcGIS connector since the layers wont load.

Screenshot_5-12-2024_133453_make.powerautomate.com.jpeg

0 Kudos
JessMiller1
Emerging Contributor

I just want to update that this never worked for me, no matter how many different things I tried. So I just moved on and stopped trying, sadly. I went another direction that was more complex. Would've loved if this worked!

0 Kudos
AkshayHarshe
Esri Contributor

@JessMiller1 it is probably late to respond on this thread, regardless, were you ever able to get this to work? We have fixed several issues since then and couple others are in the pipeline if you are using a Feature layer with data referenced from enterprise cloud database. Apologies for any inconvenience. If you still see the error, please reach out and we would love to discuss further on the issue. 

Please remember Power Automate needs access to the resources to create workflows and firewalls can also block them. Secondly, make sure to use `Fetch Change, updates...` right after the trigger to retrieve the change from the trigger/webhook. 

Thanks,
Akshay Harshe
0 Kudos