Hello,
I am experiencing an issue with the ArcGIS connector in Power Automate that appears to have started recently.
I have a flow that has been working successfully for several months. The flow retrieves records from a hosted feature layer and then uses the Get Attachment action to download the associated photo attachment. The downloaded image is subsequently processed by the EXIF action to extract GPS metadata.
Current configuration of the Get Attachment action:
This configuration worked previously without any issues.
Recently, the flow started failing. The Get Attachment action returns the following response:
{
"error": {
"code": 404,
"message": "Unable to complete operation.",
"details": [
"None. This feature has no associated attachments."
]
}
}
The subsequent EXIF action then fails with:
DataView: Passed buffer type is unsupported.
However, I have confirmed that:
I am wondering whether there has been a recent change in the ArcGIS Power Automate connector regarding the Get Attachment action.
Specifically:
Any guidance would be greatly appreciated.
Thank you.
-Jepp Vandal
@Jean-PhilippeLabrecque Get attachment action has not changed in a while, and always needed an attachmentID which is different than the objectID.
Is it possible that you luckily had the same attachment id as the object id? Maybe new attachment was added to the feature and the old attachment was deleted instead of being replaced causing the failure.
If you want to dynamically get the attachment ID using the attachment name, I recommend you to use Query attachment action and then use get attachment or get attachment from URL using the attachment ID/url returned from it. If your feature has multiple attachment then you may need to filter them out using Filter array then dynamically get the attachment using get attachment action.
*Note that I removed the get attachment out of the For Each loop and added a formula to get the 1st item's 'id' in the filter array
@Jean-PhilippeLabrecque Circling back, if this was resolved?