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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problems with file upl...
Power Apps
Answered

Problems with file upload using V2 powerapps triger in Power Automate

(1) ShareShare
ReportReport
Posted on by 47

Hi there,

 

I'm trying to upload a file to SharePoint from a PowerApp using the V2 trigger in Power Automate but I'm having problems with the formula used to run the flow. I've been following Shane Young's video (Power Apps Upload File v2 to SharePoint Document Library (youtube.com)) walkthrough for this but I'm always having the a warning come up saying "Missing Column. Your formula is missing a column 'name' with a type of 'Blob'. In Shane's video, he says that this can happen if you miss the capital B in contentBytes, but I've definitely go that bit correct.

 

This is the code I'm using in the OnAddFile property of an Attachment Control:

Evil_Zoidberg_3-1706621103036.png

 

 

This is the warning that keeps coming up as well:

Evil_Zoidberg_1-1706620667492.png

 

This is the Flow that I'm using as well. This was made the same way as in the video using the new designer:

Evil_Zoidberg_2-1706621038127.png

 

Any help on this would be really appreciated.

 

 

 

Categories:
I have the same question (2)
  • WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at

    Hi @Evil_Zoidberg ,

    I run exactly the same Flow (except I include an ID to attach the file to) and it works fine. Can you please post your code in Text and a screenshot of the Flow in the Classic designer (not sure what I am looking for as what you have looks OK)

  • OH-07080958-0 Profile Picture
    47 on at

    Thanks for the response

     

    Flow in old designer:

    Evil_Zoidberg_0-1706689338096.png

     

    This is the code I've got in the OnAddFile property of the attachment control:

    V2Upload.Run({file:{contentBytes:Last(Self.Attachments).Value, name:Last(Self.Attachments).Name}})

     

    I've tried putting the code in a separate button (referencing the last file stored in the attachment control) but the same issue happens there as well.

  • Verified answer
    WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at

    @Evil_Zoidberg ,

    Try making it not optional (although this does not explain the issue). I assume you are using a standard attachment control.

  • OH-07080958-0 Profile Picture
    47 on at

    @WarrenBelz 

     

    I clicked on 'make the field optional' so it now reads 'make the field required'. I was assuming that this would mean it was originally required and is now optional, but it does seem to have fixed the issue. Thank you for the help.

  • Sidhant_02 Profile Picture
    986 on at
    Thanks @Evil_Zoidberg  for asking this question even I was facing the same issue and @WarrenBelz  for the answer.

    Regards,
    Sidhant.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard