cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Meneghino
Level 10

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
Community Support Team
Community Support Team

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.
Meneghino
Level 10

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.

Meneghino
Level 10

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.

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). 

dionmills_argos
Level: Powered On

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!

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,976)