Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +R9dgr6YIrNsVoBMbqO5uw
Power Apps - Building Power Apps
Answered

File wasn't available on site Power Apps

Like (2) ShareShare
ReportReport
Posted on 9 May 2024 12:55:36 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

  • CU14112135-0 Profile Picture
    17 on 19 Feb 2025 at 02:04:57
    File wasn't available on site Power Apps
    nvrhughes:  The setting "Settings - Updates - Retired - turn legacy formula bar on . " DOES NOT EXIST AND THERE IS NOTHING SIMILAR
     
    Rampals: There are no such sub attributes for the Atttachments Control under Items:  The two attributes are set in a formula where both Name and Value are identified.

    Does Power Apps change so frequently that posts from May/July 2024 could already be useless in Feb 2025?
  • Suggested answer
    bobesponja Profile Picture
    252 on 07 Feb 2025 at 21:04:15
    File wasn't available on site Power Apps
    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)
    )
     
  • Suggested answer
    mattb3 Profile Picture
    8 on 28 Jan 2025 at 12:11:19
    File wasn't available on site Power Apps
    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.
  • ST-19081858-0 Profile Picture
    12 on 13 Oct 2024 at 13:50:53
    File wasn't available on site Power Apps
    HI,
    I am also getting this error. I have turned on the legacy formula but am not seeing the value field. 
     
    Please assist.
     
    Thanks
  • Verified answer
    nvrhughes Profile Picture
    85 on 26 Jul 2024 at 18:56:43
    File wasn't available on site Power Apps
    @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. 
  • nunuNMS Profile Picture
    88 on 10 Jul 2024 at 11:54:57
    Re: File wasn't available on site Power Apps

    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

  • Crawq Profile Picture
    6 on 10 Jul 2024 at 11:23:54
    Re: File wasn't available on site Power Apps

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

     

  • nunuNMS Profile Picture
    88 on 10 Jul 2024 at 11:21:39
    Re: File wasn't available on site Power Apps

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

  • Crawq Profile Picture
    6 on 10 Jul 2024 at 08:33:16
    Re: File wasn't available on site Power Apps

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

  • nunuNMS Profile Picture
    88 on 04 Jul 2024 at 06:40:09
    Re: File wasn't available on site Power Apps

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

    nunuNMS_0-1720075196633.png

     

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard