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 / Error create file in s...
Power Automate
Answered

Error create file in sharepoint

(0) ShareShare
ReportReport
Posted on by

Hello, I am using the create file in sharepoint action with the premium version but I get the error that argument 'body' must be '' binary what I created with the convert file to binary data action, can you help me by explaining how to correct?, thank you.

 

RoberthCB_0-1715965970660.png

 

RoberthCB_1-1715966005602.png

RoberthCB_2-1715966041756.png

 

 

I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @RoberthCB ,

     

    You have enabled Power Fx while Creating a flow. Power Fx is still in Preview mode so we dont recommend it to use in Production. So please disable the Power Fx as shown in below image and Create a new flow.

    VishnuReddy1997_0-1715967350144.png

    Please find the solution.

    VishnuReddy1997_1-1715967404967.png

    VishnuReddy1997_2-1715967563274.png

     

    Code: Please copy the below code to your new flow and make necesarry change.

    File.ConvertToBinary File: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\pdfExtraction.txt''' BinaryData=> BinaryData
    @@dataset: 'FMT Dome Updates & GAP Analysis - https://sharepoint.com/sites/UpdatesGAPAnalysis'
    @@folderPath: '/Shared Documents/General/04_Vendor_Onboard'
    @@connectionDisplayName: 'Cr442c5_shared_sharepointonline_47bd9da2'
    External.InvokeCloudConnector Connection: '57ae31a2-b3e0-4dab-867b-975b54df1cb8' ConnectorId: '/providers/Microsoft.PowerApps/apis/shared_sharepointonline' OperationId: 'CreateFile' @dataset: $'''https://sharepoint.com/sites/UpdatesGAPAnalysis''' @folderPath: $'''/Shared Documents/General/04_Vendor_Onboard''' @name: $'''Vishnu.txt''' @body: BinaryData @CreateFileResponse=> CreateFileResponse
    
    # [ControlRepository][PowerAutomateDesktop]
    
    {
     "ControlRepositorySymbols": [],
     "ImageRepositorySymbol": {
     "Repository": "{\r\n \"Folders\": [],\r\n \"Images\": [],\r\n \"Version\": 1\r\n}",
     "ImportMetadata": {},
     "Name": "imgrepo"
     },
     "ConnectionReferences": [
     {
     "ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
     "DisplayName": "Cr442c5_shared_sharepointonline_47bd9da2",
     "InternalId": "57ae31a2-b3e0-4dab-867b-975b54df1cb8",
     "IsDisabled": false,
     "LogicalName": "Cr442c5_shared_sharepointonline_47bd9da211394c69b6c8f2b74e435cf8",
     "IsEmbedded": false,
     "ConnectionName": "shared-sharepointonl-b6284dcf-7baa-41f9-bc0d-66e5eaea02af",
     "ConnectionDisplayName": "Varikutivishnuvardha@acme.com"
     }
     ]
    }

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard