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 Automate / OneDrive for Business ...
Power Automate
Answered

OneDrive for Business "Get file thumbnail" returning blank URL

(2) ShareShare
ReportReport
Posted on by 8
I'm trying to create a flow to generate a PDF report for surveys containing a number of photographs which are stored in dataverse. As the images can be large & the PDF has to be less than 2Mb, I need to reduce the image sizes.
The flow currently gets the dataverse image and creates a new image file on OneDrive. The "Get file thumbnail" should then get the smaller image and return a URL which in turn is Uploaded to OneDrive. I then use the Get file content to get the base64 data & append to a HTML table before saving to a HTML file / converting to PDF.
The flow was working reasonably ok but is now failing to get the thumbnail URL.
 
 
The creation of the full-size file in OneDrive from dataverse is working and the Get file thumbnail shows that it completed successfully, but the URL is blank, and so the flow fails on the next step:

 
The "Get file thumbnail" action also fails if I manually select a file... (I've also tried a separate test flow with manually selected file & the URL returned from that is also blank)
 
Any ideas what the problem could be?
Many thanks
Ivor
 
Categories:
I have the same question (0)
  • Suggested answer
    Haque Profile Picture
    3,728 on at
    Hi @CU23061420-0,
     
     
    Is this happening intermittently or just always?
     
     
    The symptom indicates that the thumbnail either hasn't been generated yet or is not available for that file type or location. To be more specific, seems like file creation has been completed (as you mentioned), OneDrive may take some times to generate thumbnail when it takes it from Dataverse. Also, if the flow immediately calls "Get file thumbnail" after creating the file probably it's not ready yet, that may result a blank URL.
     
    To give a  quick check - after "Create file" in OneDrive, could please add a Delay action for 15-20 seconds?
     
    Also - once delay is completed, call "Get file thumbnail" with file identifier - I would suggest to have a check here if the file exisits. If the thumbnail URL is still blank, retry the "Get file thumbnail" action up to 3 times with incremental delays.
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
     
  • CU23061420-0 Profile Picture
    8 on at
    Thanks Haque,
    The problem started happening today, and occurs each time I try to run a flow. The problem also occurs in a test flow with a file that already exists, rather than one which is dynamically created:
     
    Good to know about the Delay action, but as the problem occurs with an existing file, and the flow was working last week, I don' think this is an issue. (With a 30 sec delay included the problem still occurs).
    Thanks
    Ivor
  • Suggested answer
    Haque Profile Picture
    3,728 on at
    Hi @CU23061420-0,
     
    Ah! That's  bad news. Something weired happening. Now we need to narrow down with trial and erorr. I search in hte Known issues dashbaord with different filter criteria for powerautomat - found nothing realated this issue.
     
     
     
     
    Can you please do one thing: please check file type and thumbnail support. Let's verify that the file type you created is supported for thumbnail generation by OneDrive. Also, let's make sure we have the coorect file identifier/path - you pass to "Get file thumbnail" exactly matches the file created. Note alwasy, but sometimes, if the file is moved, renamed, or the identifier is incorrect, the thumbnail action returns no URL.
     
    Finally - do a refresh of the flow connections - remove the connections and connect again.
     
  • CU23061420-0 Profile Picture
    8 on at
    Thanks again Hague,
    The file type is jpeg (I've also tried a png file). On the test flow, I've tried with older images as well as ones created by the flow. Output from "Get File Metadata" all looks good, and the full-size images open ok in other programs & their thumbnails are displayed ok in Windows Explorer.
    Unfortunately the processes I ran on Friday have all expired, so I can't check if the problem lies elsewhere.
    I have tried refreshing the connection, but can't remove them from the Solution without deleting all the OneDrive for Business references. I have tried creating a test flow within a different Solution, and that also shows the same problem (using Get file Metada to retrieve the file id).
    I think I'll wait until tomorrow & see of the problem still occurs...
    Many thanks
    Ivor
  • FC-30060456-0 Profile Picture
    2 on at
    I've also just noticed this is happening aswell, has broken an important flow of mine. Absolutely nothing changed in the flow config, perms or anything. Has worked fine for ages, and then all of a sudden stops. Strongly feel it is a Microsoft failure here as everything else has remained constant for us.
  • Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
    I'm also seeing an error in a test flow I wrote back in November 2025. The Get file thumbnail action does not contain the Url property anymore:
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Verified answer
    Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
     
     
    You may be able to use this alternative method to get the file previews using a SharePoint "trick" (OneDrive is based on SharePoint):
     
     
     
     
    The webURL referenced above is the URL to your OneDrive Documents folder. It looks something like this:
     
    But we can get this dynamically, so we don't need to hard code it:
     
    Office 365 Users: Send an HTTP Request:
    
    Uri: https://graph.microsoft.com/v1.0/me/drive?select=webUrl
    Method GET
    Content-Type: application/json
    
    
    WebUrl:
    
    body('Send_an_HTTP_request')?['webUrl']
     
     
    Send an HTTP request to SharePoint (Get File Preview)
    Site Address: Any SharePoint site you have access to 
    Method: GET
    Uri (copy and paste the Uri):
    /_layouts/15/getpreview.ashx?path=@{variables('webUrl')}@{outputs('Create_file')?['body/Path']}
    
    
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • CU23061420-0 Profile Picture
    8 on at
    Thanks Ellis Karim, that worked!
    I added a "resolution" parameter to the Sharepoint preview as per: https://vitalyzhukov.com/en/sharepoint-online-document-thumbnail
    Many thanks
    Ivor
  • jakeroxs13 Profile Picture
    2 on at
    I appreciate the workaround, but this action clearly changed behavior yesterday, it was functional for over a year prior to yesterday.

    Edit: After attempting the workaround, the get preview api request does not return a URL either, it just gives the base64 value, which is useless for my case unfortunately as I need a URL specifically for a teams post flow.
  • AndersonJSilva Profile Picture
    4 on at
    Hi everyone,

    I am having the same issue with the OneDrive for Business action "Get file thumbnail" in Power Automate.

    The action runs successfully with status code 200, but the response body no longer includes the "Url" property. It only returns "Width" and "Height".

    This used to work before, and my flow depends on the thumbnail URL to send it back to a Power Apps app. Nothing was changed in the flow, but now the URL is missing from the output.

    Example of the current response:

    {
    "body": {
    "Width": 800,
    "Height": 800
    }
    }

    So it looks like this is not an expression issue in the flow. The "Url" property is simply not being returned by the connector anymore.

    Is anyone aware of an official fix or workaround for this issue?

    Thanks.
  • Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
     
    For a "workaround" or alternative method, see the reply below: 
     
     
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • Suggested answer
    Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
     
    If you can save the thumbnail image content to a SharePoint Document library, you should be able to use the file's url (link to item) in your Teams post.
     
    Here is an example you could try, starting with saving the image preview to SharePoint:
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • TL-02071850-0 Profile Picture
    4 on at
    Chiming in - also having this issue in one of my long running flows. The url parameter is suddenly missing. 
     
    I believe this is a bug with the underlying service, as the official docs for `Get file thumbnail` [1] say this connector returns a `Thumbnail` object and that `Thumbnail` has a url [2]
     
    Like @CU23061420-0 I'm able to replicate this in a dedicated flow. The file i'm trying to get a thumbnail on exists for a long time so i dont think this is any sort of race bug.
     
  • TL-02071850-0 Profile Picture
    4 on at
    I'm having this issue as well. Like the posters above, my flow has been running well for some time and the url key suddenly disappeared. 
     
    I'm also able to replicate this in a dedicated flow for images that have existed for quite some time, eliminating the possibility of any race/timing conditions. 
     
    @AndersonJSilva - you mention the url may not be something this connector returns anymore, but the official docs suggest otherwise. 
     
    The docs for get file thumbnail [1] clear state this connector returns a `Thumbnail` and that this object contains a `url` [2]
     
  • MR-04070253-0 Profile Picture
    2 on at
    I have the same issue, this is not resolved for me and the proposed solution didn’t work. My flow has been working for years without issue until this. Is there an open ticket I can follow? 
  • AM-07070959-0 Profile Picture
    8 on at
    Hi all,
     
    The exact same issue has happened to me since last week: no URL is generated form the get thumbnail step. I posted the question seperately on my account as well.

    Is this something that broke in a recent update or something? My flow was working for a few months just fine. I also do not understand why this is happening.

     
    How do you report these kind of issues to Microsoft? So that they can fix it?

    The sharepoint workaround is not an option for me unfortunately due to company policy. 
  • Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
     
    To get support
     
     
     
    scroll down to "Contact Support"
     
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • AC-06072316-0 Profile Picture
    4 on at
    I still have the same problem idk why microsoft doesn't fix this problem, in the documentation the thumbnail should response with a url, but i only got:
     
    { 'Url': <Blank>, 'Width': 96, 'Height': 96 }
     
    there's any way to fix it ? i don´t have access to sharepoint or azure blop to change the steps in my workflow
  • Suggested answer
    Ellis Karim Profile Picture
    12,181 Super User 2026 Season 1 on at
    @AC-06072316-0

    You can try this method. This method does not require premium connectors. It uses the Office 365 Users Send an HTTP request. It is a method I have not used or tested it extensively.

    For more details, please see: Fix: Power Automate “Get File Thumbnail” Missing URL Bug – Ellis Karim's Blog
     
     
     
    Screenshot of a JSON response body from the Microsoft Graph API, highlighting a 'value' array that contains URLs and dimensions for 'large', 'medium', and 'small' document thumbnails.
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard