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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collect formula error
Power Apps
Answered

Collect formula error

(0) ShareShare
ReportReport
Posted on by 149

This on select formula I am 100% sure that it has always worked but now has the dreaded red underline squiggle

 

Collect(
'Personal Account Dealing',
DataInput

)

 

Personal Account Dealing is the Sharepoint list I am writing to, it still exists and I have access to it.  I've even removed it as a data source and re added it.

 

DataInput is the collection.

Categories:
I have the same question (0)
  • 4th8 Profile Picture
    on at

    Any chance we can get a screen shot of the formula in question? Might help in figuring out what the issue is. 

  • MikeBlairTP Profile Picture
    149 on at

    MikeBlairTP_0-1654876992592.png

     

  • 4th8 Profile Picture
    on at

    I agree that looks like it should work. Sometimes that can happen. Save and close then open the editor again. It should just go away.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @MikeBlairTP,

    Have you solved your problem?

    Do you want to collect the 'Personal Account Dealing' into a collection named DataInput?

     

    If the 'Personal Account Dealing' is indeed a SP list you write the data to, and the DataInput is indeed the collection you want to save the list data to, then I think your Collect() has something syntax wrong.

     

    You should modify as below:

    Collect(
     DataInput,//Here should be the collection name
    'Personal Account Dealing' //Here should be the data source you want to save as a collection
    )
  • MikeBlairTP Profile Picture
    149 on at

    Correct @v-qiaqi-msft 

    Collection is called Datainput and the SP list is called Personal Account Dealing.  I have copied your code on a new button and I still get the error

     

    MikeBlairTP_0-1655914667348.png

    I have noticed some odd columns in my collection that I did not create

    MikeBlairTP_1-1655914975224.png

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @MikeBlairTP,

    Hover your mouse cursor over the red line to show me the specific error message.

    Here is the doc about the Collect() function:

    Collect, Clear, and ClearCollect functions in Power Apps - Power Apps | Microsoft Docs

  • MikeBlairTP Profile Picture
    149 on at

    Hi @v-qiaqi-msft 

     

    MikeBlairTP_1-1655975966082.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 915

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 457

Last 30 days Overall leaderboard