Select to view content in your preferred language

How to set to true?: 'This application requires a layer that supports attachments and has 'supportsQueryAttachments' set to true'

399
4
05-09-2024 09:08 AM
Amarz
by
Occasional Contributor II

Hello,

I am receiving this error when attempting to use the Attachment Viewer Instant App but can't find resources on how to set to true 'supportsQueryAttachments'.

This application requires a layer that supports attachments and has 'supportsQueryAttachments' set to true.

Enterprise 11.2 with ArcPro 3.2.

Data is inside an Enterprise GDB and published as a feature service to Portal.

0 Kudos
4 Replies
VHolubec
Esri Regular Contributor

Hello @Amarz

when you check your Feature Service, has this service Attachment enabled, and please check the QueryAttachment is present in the REST page of the layer in the Feature Service:

VHolubec_0-1715271725536.png

 

Vladimir
0 Kudos
Amarz
by
Occasional Contributor II

I do see that as an option, and when I query an attachment, I get the following:

Amarz_0-1715273510008.png

 

0 Kudos
VHolubec
Esri Regular Contributor

It should work then - could you share the URL of the Serivce @Amarz?

Vladimir
0 Kudos
DakotaLott-Werkheiser
New Contributor II

Hey Amarz,

I'm still on 11.1 but I'm having the same issue. I've found that if you have published a dataset where only some of the feature layers have attachments that it will throw this error. If you create a new map with only the layers with attachments you should be able to get it to work.

0 Kudos