cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Issue reading tables from Excel files stored in OneDrive

I'm trying to get a row from a table in an excel sheet stored in OneDrive, and Power Automate does not seem to be able to read it. I get an error "Could not retrieve values. Error executing the api... ". I've tried searching for the error message online, but no answers seem to match my issue. 

 

onedrive.PNG

 

There's no issue with reading workbooks stored in, say, shared documents folders in Teams, it seems to be confined to workbooks located in OneDrive.

 

group.PNG

 

In case it's offered as a suggestion, I'm pretty sure it's correctly configured as a table - on Excel Desktop, I can choose the table name from the Name Box, and the desired data gets selected, so I don't think that's the issue. Any help would be much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Issue reading tables from Excel files stored in OneDrive

Hey @murchu27 

 

A couple hours ago there was some on going issue with OneDrive. Can you try once now and check if you continue to face the same issue? (Maybe try clearing the cache and check this once)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User III
Dual Super User III

Re: Issue reading tables from Excel files stored in OneDrive

Hey @murchu27 

 

A couple hours ago there was some on going issue with OneDrive. Can you try once now and check if you continue to face the same issue? (Maybe try clearing the cache and check this once)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Power Automate
Power Automate

Re: Issue reading tables from Excel files stored in OneDrive

I checked the request logs. The request to fetch all tables within the Excel document failed with following message from Graph API:

"Graph API is unable to acquire or refresh a lock on the file because it is already locked. Please close edit sessions and try again."

That means you might have the document opened for editing somewhere. It needs to be closed before another operation (like the one that failed) can read information from the document.

Highlighted
Frequent Visitor

Re: Issue reading tables from Excel files stored in OneDrive

Seems to be working now alright! Not sure if it was to do with that OneDrive issue, or whether it was the fact that the workbook was open on my Desktop (like @JatinSanghvi mentioned), but at least it works. Thanks!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (7,272)