cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Help: new errror "The collection does not accept items of this type"

Today I came across a new error, simply when doing a collect for an item in a gallery:

ClearCollect(CurrentTransaction, ThisItem)

There is no way that an error should be thrown since the source is a gallery.

Has anyone else come across this?  Is this a bug or am I doing something wrong?

Thanks.

 

AAA.png

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: Help: new errror "The collection does not accept items of this type"

Hi @Meneghino,

 

Which property of what control that the formula is used for (with)?

Besides, would you please share more information about the CurrentTransaction?

Just from the error message, it seems the collection should be pre-defined, which not support all the fields under thisItem.

 

Per testing, the clearcollect would just collect the corresponding record from my side, with no errors.

And the Onselect property of a Text Label is the only place I used for the collection.

123.PNG

After clicking:

124.PNG

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Champion
Community Champion

Re: Help: new errror "The collection does not accept items of this type"

Hi @v-micsh-msft

This error is back! I think it happened following a change in the structure of my data source.

I tired refreshing and it did not work.

I tried to remove the table (Azure SQL DB) and then add it again and also did not help.

I mean that in studio it works for some time and then the error appears and the web version does not work.

Please help as this is stopping any work getting done.

Highlighted
Community Champion
Community Champion

Re: Help: new errror "The collection does not accept items of this type"

Hi @v-micsh-msft

This error is back! I think it happened following a change in the structure of my data source.  I removed a couple of columns and added a new one.

I tired refreshing the data source and it did not work.

I tried to remove the table (Azure SQL DB) and then add it again and also did not help.

I mean that in studio it works for some time and then the error appears and the web version does not work.

Please help as this is stopping any work getting done.

Highlighted
Anonymous
Not applicable

Re: Help: new errror "The collection does not accept items of this type"

We are having the same issue. We also recently changed our data source (added a field to the excel spreadsheet). 

Highlighted
Frequent Visitor

Re: Help: new errror "The collection does not accept items of this type"

I am having the same issue, the collection is only 2 properties and only used on this 1 screen, yet when i try to collect from a collection of matching layout i get the error, see below,

 

pabug1.pngpabug2.png

 

also it was working fine until i saved the app and reopened it without changing ANYTHING!

Highlighted
Anonymous
Not applicable

Re: Help: new errror "The collection does not accept items of this type"

Yes I am getting the same error.

I changed the data collection field and what previously worked is now not working.

 

The function is: Collect([@TeamTitle],{Name:TeamTitle,Nominees:NomineeNames,Subgroup:'CM Sub Group',Value:Bold} )
; Navigate([@'Thank You for Voting'], ScreenTransition.Fade)

 

This is for a voting app.

Thanks.

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,476)