I am currently encountering an issue with a canvas app that uses Dataverse as a backend. We've built an inspections app, and recently a user submitted a form with more than 30 photos/images attached. While the form data was successfully submitted and saved, the associated images did not get uploaded to the Notes/Attachments section as expected.
I tried to recreate the issue and submitted 38 images via my phone, and it worked fine.
1. How would you troubleshoot this issue so it doesn't happen again?
2. What are some reasons that it might have failed to send through?
Hey LA0 thanks for the great reply,
Thanks I'll see if I can bump that default higher.
As for file extensions, user's are forced to submit .jpg files, which is not on the blocked list I believe.
On Add Picture control:
Collect(_colPhotoAttatchments,{DisplayName:"Location_"&Package_1.Value& "_Incident_"& Incident_Type_2.Value & "_" & Location_Incident.Value & "_" &Text(Now(), "[$-en-US]dd.mm.yyyy.hh.mm.ss") & "_Incident_"& _varCounter &".jpg", Id: GUID() & ".jpg", Value: _varPhoto });
UpdateContext({_varCounter: _varCounter + 1});
Then on success of the form, I patch the photo collection to the rows attachments.
On Form Success:
Patch(Location_Definitions_IncidentInspections, LookUp(Location_Definitions_IncidentInspections, Location_Incident_ID = _varIncidentID And Name = Name), {Attachments: _colPhotoAttatchments});
Which normally goes to notes. But checked Notes, and nothing came through from the user from this specific incident. Just sucks because the form submission was successful but it didn't patch all the photos in.
Also the user used this app on their phone, so 'Optimize image for upload' was on so a photo submission which almost always comes through a bit below 300kb an image.
The default is 5Mb, so quite easy to exceed the default. Also, double check what the file extension would have been and that it is not on the blocked list in dataverse. Also check for Notes that may have been created at the time that have no regarding field set (i.e. it may have uploaded into a Note, but the Note is not linked to any other records, so doesn't show on a timeline etc)
Hi @Jeggy
Did you get any issues?
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Follow me on Twitter : @rampprakashd
Blog : https://microsoftcrmtechie.blogspot.com
I don't have permissions to see what the max is in our environment..
But on the mobile app that was used, the option to "Optimize images for upload" was on. So the file size shouldn't be too big.
the size of the files are greater than the max allowed in the environment?
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1