Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LnuPTDKJyX5w4B98nuFNfM
Power Automate - Building Flows
Unanswered

Create a new excel file inside sharepoint document library and then trying to create a table will raise this error "The provided drive id appears to be malformed, or does not represent a valid drive."

Like (0) ShareShare
ReportReport
Posted on 5 Jun 2024 16:22:09 by 1,546 Super User 2024 Season 1

I am following the exact steps mentioned in this video @ https://www.youtube.com/watch?v=RB_ySjhm9Sg+ in this link https://www.matthewdevaney.com/create-an-excel-file-and-add-rows-using-power-automate/  to create an excel file and create a table inside it, but the create table action will raise this error:-

 

The provided drive id appears to be malformed, or does not represent a valid drive.
clientRequestId: 97ffa24b-eb80-4b33-9920-9ab980b80fde
serviceRequestId: 67d1a2b2-7bcc-4b62-8fe1-5c9aac6339a4

 

here is my full flow:-

 

johnjohnPter_0-1717604356720.png

 

johnjohnPter_2-1717604521495.png

 

 

now the file will be created >> but without any table. as follow:-

 

johnjohnPter_1-1717604420650.png

 

please any advice? i spent 2 days trying to figure out what is wrong?

Thanks

 

 

  • v-yueyun-msft Profile Picture
    on 06 Jun 2024 at 08:15:40
    Re: Create a new excel file inside sharepoint document library and then trying to create a table will raise this error "The provided drive id appears to be malformed, or does not represent a valid drive."

    Hi , @johnjohnPter 

    If you want to get the drive id, you can directly get in the "Peek Code":
    How to find DRIVE ID for a Document Library in SharePoint using Power Automate (2024) - In 1 minute! (youtube.com)

     

    If you want to get the drive id dynamically, you may need to call Graph API.

    (1) First to get the site id.

    vyueyunmsft_1-1717661554959.png

    https://graph.microsoft.com/v1.0/sites/{host-name}:/{server-relative-path}

     

    vyueyunmsft_3-1717661688405.png

    (2)Get the drive id:

    vyueyunmsft_4-1717661715261.png

    split( outputs('Invoke_an_HTTP_request')?['body']?['id'] , ',')?[1]
     
    xpath( xml(json(concat('{"root":{"item":',outputs('Invoke_an_HTTP_request_2')?['body']?['value'],'}}'))) , '//item[name="Documents"]/id/text()')?[0]

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

  • johnjohnPter Profile Picture
    1,546 Super User 2024 Season 1 on 06 Jun 2024 at 07:42:53
    Re: Create a new excel file inside sharepoint document library and then trying to create a table will raise this error "The provided drive id appears to be malformed, or does not represent a valid drive."

    @v-yueyun-msft thanks ,, so the question now is how i can dynamically get this drvieId for the document library?

     

  • v-yueyun-msft Profile Picture
    on 06 Jun 2024 at 01:44:59
    Re: Create a new excel file inside sharepoint document library and then trying to create a table will raise this error "The provided drive id appears to be malformed, or does not represent a valid drive."

    Hi , @johnjohnPter 

    I test it in my side , i can reproduce your error code :

    vyueyunmsft_0-1717638158794.png

    This error code means that , you pass the wrong drive id in the red box.

    Instead of the Name , you need to pass the drive id here!

    vyueyunmsft_1-1717638285990.png

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard