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

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

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

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

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

Highlighted

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,178)