web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / File wasn't available ...
Power Apps
Answered

File wasn't available on site Power Apps

(2) ShareShare
ReportReport
Posted on by 75

I have an attachments control that has set in its item property a collection which is a Lookup to my Sharepoint site of a certain item and gets its attachments.
The problem is that i have the same method implanted in another attachments control but this is set inside a gallery that  holds list items and i have a button that makes a lookup to that list and gets its items.
Until this part the functionality works, but when i click on one of the items, instead of downloading the item the next message is shown:

RampalsT_1-1715258742322.png

RampalsT_2-1715259182128.png

 

I checked all the information(the collection gets the items and stores: Value,Name,AbsoluteUri and id for each item) and it is stored properly in it.

This is an app image:

RampalsT_0-1715258723648.png
The Lookup works every time that i click on the attachments icon and displays its according files.
In the app the functionality to show each files for each item, as well as save and delete them ,works fine.

PD: If i create a submit form in another page and i display the information of the item, the attachemnts card that is created works and allows me to download the item.

Any help will be appreciated.
Thanks

Categories:
I have the same question (0)
  • Verified answer
    RampalsT Profile Picture
    75 on at

    I find the solution, simply go to your attachments control and change the value property ,that was set to ID, to  Value, and the function works.

    RampalsT_0-1716374469074.png

     

  • nunuNMS Profile Picture
    88 on at

    why dont i have this option, if you could help me here: 

    nunuNMS_0-1720075196633.png

     

  • Crawq Profile Picture
    6 on at

    @nunuNMS 
    same for me did you find a way to fix it?

  • nunuNMS Profile Picture
    88 on at

    not yet, but pls if you find a solution let me know

  • Crawq Profile Picture
    6 on at

    i used a separate gallery showing the attachments instead of the forms as a workaround

     

  • nunuNMS Profile Picture
    88 on at

    if possible i would really appreciate it if you could show me how you did it in that way, I have been struggling with this for the past couple of days and you will help me alot, thanks again

  • Verified answer
    nvrhughes Profile Picture
    129 on at
    @nunuNMS You need to turn on the legacy formula bar.

    Settings - Updates - Retired - turn legacy formula bar on . 

    Save then ctrl+f5 to do a hard refresh. The value field will now display. 
  • ST-19081858-0 Profile Picture
    20 on at
    HI,
    I am also getting this error. I have turned on the legacy formula but am not seeing the value field. 
     
    Please assist.
     
    Thanks
  • Suggested answer
    mattb3 Profile Picture
    12 on at
    For any one looking at this post removal of legacy formula bar option, you can change the items value in your attachment control to something like this depending on your dataverse table:

    [{Value: ThisItem.filecol.Value&Last(Split(ThisItem.filecol.FileName, ".")).Value, DisplayName: ThisItem.filecol.FileName }]

    this allows you to click on the file in the control to download it fine.
  • Suggested answer
    bobesponja Profile Picture
    258 on at
    The answers given didn't work for me, but some helped me get to the answer. PowerApps is trying to download files based on the Id parameter rather than Value (and it's trying to do so with some encoding that breaks things). Here's the code to put in the Items section to fix it:
     
    ForAll(
        ThisItem.Attachments,
        {
            Id: PlainText(ThisRecord.Value),
            Value: ThisRecord.Value,
            AbsoluteUri: ThisRecord.AbsoluteUri,
            DisplayName: ThisRecord.DisplayName
        }
    )
    On a slightly related note, if your Attachments section is showing items from an Image column in your datasource that you don't want to see in Attachments, you can filter those out like this:
    // Don't display COLUMNNAME in Attachments control
    Filter(
        ThisItem.Attachments,
        Not(Substitute(EncodeUrl(DisplayName), "%", "%2525") in ThisItem.COLUMNNAME.Full)
    )
    
    // You can filter out multiple columns by stringing them together with "&"
    Filter(
        ThisItem.Attachments,
        Not(Substitute(EncodeUrl(DisplayName), "%", "%2525") in ThisItem.COLUMNNAME.Full&ThisItem.ANOTHERCOLUMN.Full&ThisItem.ONEMORECOLUMN.Full)
    )
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard