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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "The provided drive id...
Power Automate
Answered

"The provided drive id appears to be malformed, or does not represent a valid drive." when creating a table inside excel

(0) ShareShare
ReportReport
Posted on by 1,821 Season of Giving Solutions 2025

I have this flow to create an excel and a table inside the excel, the excel will be created but the create table is raising this error:-

 

The provided drive id appears to be malformed, or does not represent a valid drive.

 

Here is the flow related actions:-

 

johnjohnPter_0-1717588604431.png

 

 

johnjohnPter_1-1717588623127.png

 

johnjohnPter_2-1717588639104.png

 

and here is the error:-

 

The provided drive id appears to be malformed, or does not represent a valid drive.
clientRequestId: 0cc57ae4-76d3-4922-96e8-be6e7c61cf25
serviceRequestId: 8ec263d1-b077-4aa7-89a3-1b763b3ae6af

 

here is the created excel file:-

 

johnjohnPter_3-1717588697673.png

 

 

any advice?

Thanks

 

Categories:
I have the same question (1)
  • Manish Solanki Profile Picture
    15,097 Super User 2025 Season 2 on at

    Hi @johnjohnPter 

     

    Pls try to pass the identifier (id) of the newly excel file instead of file path in "Create table" action. Try to find out the file identifier in the output of previous http action.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • johnjohnPter Profile Picture
    1,821 Season of Giving Solutions 2025 on at

    @ManishSolanki i tried to pass the uniqueid:-

     

    body('Send_an_HTTP_request_to_SharePoint_-_Create_empty_Excel')['d']['UniqueId']

     

    but i got the same exact error...

  • Verified answer
    Manish Solanki Profile Picture
    15,097 Super User 2025 Season 2 on at

    Hi @johnjohnPter 

     

    Here is the sample flow.

     

    I have used "Create file" action instead of "Send http request to SharePoint" action to create a new excel file:

    Add an expression to pass empty string in 'File Content' parameter:

    ManishSolanki_0-1717666593727.png

    string('')

    Next, add "Delay" action to give some time to save file in SP library:

    ManishSolanki_1-1717666706872.png

    Finally, add "Create table" action to create a table in the sheet. Pass the Id for the excel file from the output of create file action. In table range, specify the sheet name & the columns range as shown below:

    ManishSolanki_2-1717666801908.png

     

    Sheet1!A1:B1

     

     

     

    Output:

    ManishSolanki_3-1717666898650.png

     

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Suggested answer
    Shravyashree_Shetty Profile Picture
    49 on at
    Hi, 
     
    I found a fix for the above issue
    Step 1: Select the document Library from the drop down (this is only to get the drive ID later we will change it to environment Variable)
     
     
    step2: Test run the flow 
     
    The "Document Library" Output is the drive ID that this action requires -COPY the ID
     
    Step3: Add a Text Environment Variable in the solution and add the Copied Drive ID
     
    Step4: Replace the Document Libary in the Create Table action with the Above environment Variable with the drive ID in it 
     
    Please note that the QA and Prod Drive ID may vary 
     
     
    PLEASE GIVE THIS ANSWER A THUMBS UP, IF THIS HELPS AND ACCEPT THIS ANSWER AS A SOLUTION FOR FUTURE REFERENCE!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Expiscornovus Profile Picture

Expiscornovus 201 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 174 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard