Select to view content in your preferred language

issue retrieving feature layer using Template

886
5
Jump to solution
10-31-2023 06:57 AM
DominicRoberge2
Occasional Contributor III

Hello,

I had a few Power Automate flows setup six months ago and since September they stopped working. I've try to re created from scratch using a template (Track when a record is created in a feature layer in ArcGIS Online) and I keep getting this error message:

My Connection to AGOL is valid

what am I doing wrong????

Thanks!

 

Could not retrieve values. The dynamic invocation request failed with error: {
"error": {
"code": 400,
"source": "unitedstates-002.azure-apim.net",
"clientRequestId": "39bcdc27-e61b-40d6-a295-1302a78c2c3b",
"message": "The response is not in a JSON format.",
"innerError": "Cannot read properties of undefined (reading 'forEach')"
}
}.

 

DominicRoberge2_0-1698760432177.png

 

0 Kudos
1 Solution

Accepted Solutions
DominicRoberge2
Occasional Contributor III

This issue has been fixed by ESRI (I received an email from ESRI tech support). Everything is working fine for me once again.

View solution in original post

5 Replies
PavelJ
by Esri Contributor
Esri Contributor

Hello,
Thank you for your question.
We are working on identifying and fixing this issue. The drop-down should be populated with layers owned by the user.
To help us identify the issue, could you please:
Confirm if the same issue happens in the dropdown in Fetch updates, changes, or deletions from feature layer.
Confirm if you face the same issue with the dropdown when using Get data from feature layer action:

PavelJilinski_0-1699548819765.png

As a workaround, could you confirm if you can do the following:

  1. On ArcGIS online, please refer to the feature service you want to create a webhook for.
  2. Go to the URL:PavelJilinski_1-1699548983344.png
  3. Copy the ServiceItemId:PavelJilinski_2-1699549030720.png
  4. On the same page, note the Layer ID: PavelJilinski_3-1699549147178.png

     

  5. In Power Automate, please select Enter custom value (under the error message).
  6. Enter the Item Id followed by "layerId" and the layer ID noted above, as {ItemId}layerId{Layer ID}: It should read like this example: qwertyuiopasdfghjlayerId0. Where ItemID: qwertyuiopasdfghj and LayerID: 0.PavelJilinski_4-1699549448560.png
  7. Save flow and check if the webhook was saved successfully.

Please let us know if the workaround works while we try to address the underlying issue.

 

0 Kudos
DominicRoberge2
Occasional Contributor III

@PavelJ , thanks for getting back to me.

1) issue is the same for When a Record is Created and when a record is updated an in Fetch updates, changes, or deletions from feature layer.

DominicRoberge2_1-1699550720773.png

 

2) drop down works for Get Data from Feature layer

DominicRoberge2_0-1699550648288.png

3) following your workaround, the webhook was created on the HFL and the flow ran success.

DominicRoberge2
Occasional Contributor III

@PavelJ ,The webhook got created, but I still can get any data coming in

DominicRoberge2_0-1699567581506.png

DominicRoberge2_1-1699567599072.png

 

DominicRoberge2_2-1699567620677.png

 

0 Kudos
DominicRoberge2
Occasional Contributor III

This issue has been fixed by ESRI (I received an email from ESRI tech support). Everything is working fine for me once again.

AnthonyLatini
Esri Contributor

@DominicRoberge2 - Thank you for confirming that this has been resolved. Please let me or @PavelJ know if you have any other issues. 

0 Kudos