Hello experts
I am trying to send my file content from sharepoint to a child flow and create a file from child flow but I get errors all the time.
This is my Parent flow:
and this is my child flow:
Error:
your help will be appreciate a lot.
Regards
Angela
Thank you soooooo soooo much
You are trying to convert the file to PDF in the child flow actions. But the file you are saving to SharePoint uses the original file content that is passed to the child flow, which is not PDF. You need to create the file using the file content from the Convert to PDF action.
Sure, When a PDF is generated in the Child Flow from the file content received from the Parent Flow, it cannot be correctly opened.
Can you be more specific about what is wrong with the file?
Nope, I thought maybe you were using the whole body. it should be
body('Get_file_content')['$content']
as @FLMike said. Otherwise you are feeding the connection an object that contains the file instead of a record that is the file. That's why you were getting the error.
Please change the File Content (from the Run a Child flow), to this expression
body('Get_file_content')['$content']
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
@Pstork1
when I hover over the body: body('Get_file_content')
But the JSON is very long:
Do you want me to download it for you? its more than 60.000 characters
When you hover over the file content what does the JSON look like?
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2