cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Beat
Level 8

HELP - Attachments are not (always) saved to SharePoint List

One of the users of my app ran into a problem saving a .pdf file of 5.6 MB in size as attachment to a SharePoint list item. I was able to reproduce the issue, but it's inconsistent. It works sometimes, but most of the time the attachment is actually not there after saving the record, and there is no error.

 

I tried with other files, and was able to upload files of 3 - 5 MB in size, but when it is over 5 MB, it sometimes happens that the attachment is not saved to the item.

 

The attachment control in the app is set to max 15 attachments and max 10 MB size (which is the imposed limit anyway). Is there some time-out threshold that prevents larger files from being saved if the network is slow?

 

Please help, this is a true show stopper. Thank you!

Edit: After some more testing I strongly suspect some time-out. Using a better Network connection I can upload larger files. Although on one occasion, a 7.8 MB file timed out after 2 minutes. I switched back to the "poor" network connection and both, the 5.6 MB original file and the larger 7.8 MB file time out after 2 minutes. How can I catch this time-out or whatever error it is and convey to the user?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: HELP - Attachments are not (always) saved to SharePoint List

Hi @Beat ,

Based on the needs that you mentioned (e.g. "pop up a message like "Your attachment could not be saved due to network performance issues. Please try again or try to reduce the file size."), I afraid that there is no way to achieve your needs in PowerApps currently.

Currently, there is no way to capture the Time-Out error within a PowerApps app.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Fourm:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Beat
Level 8

Re: HELP - Attachments are not (always) saved to SharePoint List

4 REPLIES 4
Community Support Team
Community Support Team

Re: HELP - Attachments are not (always) saved to SharePoint List

HI @Beat ,

Could you please share a bit more about your issue?

Do you mean that the Attachments control within your Edit form could not upload a PDF file whose file size is more than 5 MB?

 

I have made a test on my side, and don't have the issue that you mentioned. Currently, within PowerApps, the maximum allowed file size in MB of each new attachment is 10 MB. Please check the following article for more details:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-attachments#limitation...

 

When you upload large files within your Attachments control, please make sure that your Network is in a good condition. Otherwise, you may face Request Time Out issue within your app.

If you want to capture the Request Time Out error within your app, I think the Developer tools of your browser could achieve your needs (on my side, I use Chrome):3.JPG

 

In addition, I also think the Fiddler trace tool could capture the Request Time Out error within your app. Please check the following article for more details:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gateway-reference#fiddler-trace

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Beat
Level 8

Re: HELP - Attachments are not (always) saved to SharePoint List

Thanks, "When you upload large files within your Attachments control, please make sure that your Network is in a good condition. Otherwise, you may face Request Time Out issue within your app." answers my question, but browser developer tools or Fiddler are not a solution (they just confirm the poor network condition, and may indicate where the bottleneck is).

How can I catch this error and pop up a message like "Your attachment could not be saved due to network performance issues. Please try again or try to reduce the file size." ?
The problem is that the OnSuccess event of the form fires even if the attachment upload timed out. There is no indication that it has failed, the attachment is just not there after the Edit Form closes.

Community Support Team
Community Support Team

Re: HELP - Attachments are not (always) saved to SharePoint List

Hi @Beat ,

Based on the needs that you mentioned (e.g. "pop up a message like "Your attachment could not be saved due to network performance issues. Please try again or try to reduce the file size."), I afraid that there is no way to achieve your needs in PowerApps currently.

Currently, there is no way to capture the Time-Out error within a PowerApps app.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Fourm:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Beat
Level 8

Re: HELP - Attachments are not (always) saved to SharePoint List

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 74 members 3,959 guests
Please welcome our newest community members: