cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulD1
Super User
Super User

Error handling: Azure Blob Storage authentication error

I have an app which is saving images to Azure Blob Storage, setting a SharedLink and then recording the info (into CDS).

The App is used on mobile devices on WiFi or cell data.

Occasionally the users are getting the following error:

 

image.png

 

Check the Blob Storage metrics in Azure Portal I see the following:

image.png

I suspect the errors in the App occur due to network issues (there is no pattern of the failures appearing for specific users / devices /actions).

How can I trap these authentication errors so I can replace with a more 'friendly' message (e.g. I want to ask the user to check their network connection and try again)?

1 REPLY 1
Rahber
Solution Sage
Solution Sage

Since because AzureBlobStorage.CreateFile returns a record you can try saving it in a variable, then you can check if the variable contains a record this means that the action run properly if there is no record inside your variable you can through a custom error message.

 

Since because i was not able to reproduce your problem but i have tried this successfully if the blob name was wrong.

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,

Rahber

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,182)