Hi,
I created a canvas power apps that lets the user upload documents to their folders in a SharePoint Document Library. These folders were created via Power Automate. I followed Matthew Devaney's approach to get the file from Power Apps then Power Automate creates/uploads the file to their assigned folders.
All was working well a few weeks ago but yesterday, we have been getting errors. Upon my investigation, the file object/data is not being carried over to Power Automate.
This is my Upload button formula:
Uploadattachment.Run(
3, //MasterFileID
"Employee Photo", //DocType
"MyFolderName", //FolderName
{
contentBytes: First(attFile.Attachments).Value,
name: First(attFile.Attachments).Name
}
)
File Name:

ContentBytes Value:

Then this is my Power Automate Trigger:

Then this is the error I get:

Things I've tried:
- Uploading file directly in the document library folder
- Checked my permission and the service account's permission
- Checked the file data from Power Apps and it is not empty, I can see the name and contentBytes value
Has anybody else encountered this error? I tried redoing the same approach on a new app and flow but it is still the same.
I'm not sure if this is the right place to ask or in the Power Automate community, please let me know if I need to move the question.
Thank you!