I have set of photos from a sidewalk survey (about 300 points) and around 1,000 photos spread across those points (1-10+ photos per point) that are "Attached" to the feature class at the SDE level. The photos are large, about 10MB each and the entire store of photos is about 11GB total. When trying to deploy the Attachment Viewer configurable app in our Enterprise Portal (10.8.1) I get the "No Attachments Found" message similar to what others have posted.
- The layer added to the map IS an attachments-enabled Feature layer (no warnings popup to say otherwise in the Attachment Viewer config)
- Through some digging I noted that Server was logging a ton of SEVERE timeout warnings.
- I set max use time to >10 minutes and it still doesn't work.
- But in particular, I noted that the Attachment Viewer widget executes a "queryAttachments" command on the entire attachments table associated with the Feature Class. "...FeatureServer/0/queryAttachments?f=json&returnMetadata=true&definitionExpression=1=1" and which eventually throws an "ATTACHMENT QUERY ERROR" "Timeout Exceeded" to the browser console. But this error is thrown much sooner than any timeout error configured in Server.
- Subsequent "queryAttachments" calls on individual features are successful, even if they take a while (e.g,. 20 seconds) but something must be goofy in the app state and no pictures are loaded.
I wonder if this is related to this bug: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNzI4MQ==
Or maybe I just have too many / too large of attachments?