Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Error Access denied when trying to download a file from a Dataverse table

(0) ShareShare
ReportReport
Posted on by 2,278

Hello,

 

I'm trying to download a file from a Dataverse table with the expression:

Download("https://orgxxx.crm4.dynamics.com/api/data/v9.2/cr43d_tablexxxes(50e81adc-4e38-ee11-bdf4-000d3aaa0ef9)/nn_anexos/$value")

Which is returning the error:

Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. This may have been caused by an incorrect user name and/or password.

Error message 401.1: Logon credentials were not recognized. Make sure you are providing the correct user name and password. Otherwise, contact the Web server's administrator for help.

 

My user roles in this environment:

 

Approvals user

System administrator

Basic user

 

The table configs:

WebPortal_0-1691926491893.png

 

 

 

 

 

Categories:
  • WebPortal Profile Picture
    2,278 on at
    Re: Error Access denied when trying to download a file from a Dataverse table

    Does anyone know what the permissions are for allowing a user to preview or download a file from Dataverse?

     

    Still, haven't found a solution.

  • WebPortal Profile Picture
    2,278 on at
    Re: Error Access denied when trying to download a file from a Dataverse table

    @AhmedSalih 

     

    I keep getting the same error, I did a lot of trial and error, but can't figure out what kind of permissions I must grant to the security role to allow users to open a tab and view the attachments.

     

    Can you help?

     

    Thanks in advance!

  • AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on at
    Re: Error Access denied when trying to download a file from a Dataverse table

    @WebPortal, whoever running that expression against the dataverse, needs access to the data. You need security roles assigned to the user/serviceaccount/flow owner that is accessing the dataverse tables.

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

  • WebPortal Profile Picture
    2,278 on at
    Re: Error Access denied when trying to download a file from a Dataverse table

    @AhmedSalih 

    What do you mean, the role assignment?

  • AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on at
    Re: Error Access denied when trying to download a file from a Dataverse table

    Hello, @WebPortal, are you including the authentication from where you are using that expression? 

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics