Hey Guys,
I have created two Power Automate one is for Uploading the file from Manually trigger and then Added a HTTP request using POST method and in URL section there is of another Power Automate i.e "When a HTTP request is received" and then trying to add the file into OneDrive but it is not letting me create it says that you need to convert it into base64Binary() and when I try to convert it's content then it says that it needs to have first String and then when I try to convert it into String and then convert it into base64Binary() then it is able to create the file in OneDrive but it does not open it says that It appears to be corrupted.
Note:-
When I try to call that second flow which has a trigger i.e "When a HTTP request is received" from POST Man then everything works fine and I am able to open the file as well and it does not say that it appears to be corrupted.1st Power Automate
2nd Power Automate
If I call from POSTMAN then everything works fine
1st Power Automate to select and send the file
2nd Power Automate to receive that sent file and trying to store it into One Drive
When I try to upload the file from POST MAN then everything works fine but if I trigger it from other power automate from where I am uploading the file then it becomes failed like this.
Could you please build two Power automate which will give the file to another power automate ?
Hi @JabbarCRM ,
From the error details you provided, the file content you got is Null, so this kind of problem will appear.
Have you output the contentBytes contained in the second Flow separately and see if it is as expected?
Best Regards,
Glad to hear from you @manuelstgomes but that file is going to be generated by external source so let me know that whenever the file gets generated by external system I want that file to be dispatched to this URL of power automate so that it can be stored in OneDrive. that's what I want.
Please do let me know that which way will be suitable for me ..!!
HI @JabbarCRM
This is tricky, indeed. If you want to give users or other people the ability to upload files and then save them to a OneDrive, why don't you use a Form to do that? Provide the form to your users and, when a new response is submitted, grab the file and save it to your one drive. It's a lot cleaner, and you don't need to deal with messy HTTP posts and base64 conversions.
I know I'm not addressing your issue directly, but what you're trying to do is parsing the file multiple times to be able to send it through the "pipe" and getting corrupted files on the other side.
Let Flow do all the work for you; it's my suggestion.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
​
Cheers
Manuel
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1