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

Community site session details

Session Id : B66JVDbqdB3DNmm3jlkGXE
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

 

 

I have the same question (0)
  • 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
    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
    478 Moderator 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2