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 / Incompatible type. The...
Power Apps
Unanswered

Incompatible type. The collection can't contain values of this type

(0) ShareShare
ReportReport
Posted on by 98

I am trying to create a ClearCollect from two collections, both of them are tables, but I have this error where says that I have some invalid arguments, I don't know how to fix it

 

What I am trying to do is when you select an icon/button it will submit the information to my share point list and clear the data for the next input, moving the user back to the initial screen: 

ClearCollect(colData,colFormatTemplate);

Set(varFormMode,"New");
Set(varItem,Defaults('RRA - Form Results'));
Navigate('Dynamic Screen')

 

Error and formula:

Aydeedglz_1-1660924734496.png

 

Both collections:

colData: When the user selects the gallery with the info, is going to be able what the person submit 

Aydeedglz_2-1660924785217.png

Aydeedglz_5-1660924885232.png

Aydeedglz_7-1660925344000.png

 

colFomratTemplate: In here we have the columns of the template from SP that we want

Aydeedglz_3-1660924809054.png

Aydeedglz_4-1660924867308.png

Aydeedglz_6-1660925155648.png

 

 

 

 

 

 

 

Categories:
  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    Where and how is the colData collection defined the first time this collection is created?
    It sounds kind of silly, but the collections need to have the same data type in the columns. Check for any incompatible types.

  • Aydeedglz Profile Picture
    98 on at

    No, is the second time , it was created to the icon that will take to the answer 

     

    Aydeedglz_0-1660930076762.png

    Aydeedglz_1-1660930169461.png

     An both of them are type

     

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    Any specific reason to be using the MatchAll function? The returned result is a record...

  • Aydeedglz Profile Picture
    98 on at

    Yes because I am using JSON, so my data in my Share Point seems like this, and what I am trying to do is change this icons/buttons to upload my information in the SharePoint and I need to change it with a MatchAll

     

    Aydeedglz_0-1660931732396.png

     

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    Right. It is possible that some column names in the JSON response are conflicting with reserved SharePoint column names. Have you already checked this possibility?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard