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

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,656 Super User 2025 Season 2 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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard