Skip to main content

Notifications

Community site session details

Community site session details

Session Id : h1I0v1ufzvk4CpvzN7maQ7
Power Automate - Power Automate Desktop
Answered

Create file from local drive - fails on binarydata returned true but null. Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 18 Jan 2024 10:39:25 by 8

Hello Community Experts,

 

I am trying to upload pdf files from local drive to SharePoint using PAD. However I am facing a problem related to Convert file to binary data. I can convert the file to binary and the variable shows how much byte. However next step is Create file in SharePoint site which fails saying powerFxExecutionContext.TryGetField(Data) : returned true but null. Please help me if you have any clue about this problem. Power Automate Desktop is the solution because am also running the recorder and don't want to create another flow in power automate cloud. 

 

Thanks

Aparupa

Apu21_0-1705574084756.png

Apu21_1-1705574128893.png

 

The Error - 

Apu21_2-1705574277017.png

 

 

  • Apu21 Profile Picture
    8 on 18 Jan 2024 at 12:21:27
    Re: Create file from local drive - fails on binarydata returned true but null. Power Automate Desktop

    Hi Agnius,

     

    yes that was the problem, now works fine. Thank you 🙂

     

    Best

    Apu

  • Apu21 Profile Picture
    8 on 18 Jan 2024 at 12:20:15
    Re: Create file from local drive - fails on binarydata returned true but null. Power Automate Desktop

    Hi Chetan, 

    Thanks for your reply. I found out that my variables were not coming with % and thats because I had PowerFx Preview on for my flow. When I created a new one without this turned on, my flow works as you showed. Thank you 🙂

  • Verified answer
    Agnius Bartninkas Profile Picture
    10,045 Most Valuable Professional on 18 Jan 2024 at 12:10:22
    Re: Create file from local drive - fails on binarydata returned true but null. Power Automate Desktop

    I can see you have Power Fx enabled in your flow. And it seems like it's the Power Fx module that's throwing the error. Since it's still in preview, it might be bugged. Have you tried doing the same in a flow where Power Fx is not enabled?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Verified answer
    CU31080729-3 Profile Picture
    432 Super User 2025 Season 1 on 18 Jan 2024 at 11:42:56
    Re: Create file from local drive - fails on binarydata returned true but null. Power Automate Desktop

    Hi,

    1) in action convert file to binary data give the path of your file then you have got output Binary data

    2) then in create file in share point action you can try this from screenshot

    Chetan_Ninghot_0-1705578073261.png

     

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

     

    Thanks & Regards

    Chetan Ninghot

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started
Loading complete