Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Impossible to collect Value in a Collection

(0) ShareShare
ReportReport
Posted on by 129

Hi,

 

I have a collection to collect all changes in my gallery and to patch them in my dataverse. I use 2 CheckBoxes, one to know if the value is active, the other if it's a time value and 2 TextInput.

 

It's impossible for me to collect data, 

 

I use this formula :

 

If(
 ThisItem.'Unité (ix_uniteid)' in colTaskUpdatesUnité.'Unité (ix_uniteid)';
 Update(
 colTaskUpdatesUnité; 
 LookUp(
 colTaskUpdatesUnité;
 'Unité (ix_uniteid)' = ThisItem.'Unité (ix_uniteid)');
 {
 'Unité (ix_unite)':TextInputCanvas4.Value;
 Activé: CheckboxCanvas3.Checked;
 Coef: Value(TextInputCanvas3_1.Value);
 Temps: CheckboxCanvas3_1.Checked;
 'Unité (ix_uniteid)': ThisItem.'Unité (ix_uniteid)'
 }
 );
Collect(
 colTaskUpdatesUnité;
 {
 'Unité (ix_unite)':TextInputCanvas4.Value;
 Activé: CheckboxCanvas3.Checked;
 Coef: Value(TextInputCanvas3_1.Value);
 Temps: CheckboxCanvas3_1.Checked;
 'Unité (ix_uniteid)': ThisItem.'Unité (ix_uniteid)'
 }
))

 

 

And I have this error:

"Type incompatible. The collection cannot contain a value of this type."

 

I think the CheckBoxes are the problem, but I can't say for sure.

 

Thanks,

Tom Victor

  • CU22100725-0 Profile Picture
    129 on at
    Re: Impossible to collect Value in a Collection

    I made multiple test and I can get all data exept the Checkboxes one.

     

    So the problem are my CheckBoxes but I can't solve it.

     

    I'd really appreciate your help on this one.

  • CU22100725-0 Profile Picture
    129 on at
    Re: Impossible to collect Value in a Collection

    My error is still the same @Ethan_R :

    "Type incompatible. The collection cannot contain a value of this type."

     

    I tried to wrap them and it just didn't work

  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on at
    Re: Impossible to collect Value in a Collection

    What's the error @TomVictor ?

     

    Also, hoping that both Checkbox name is correctly mentioned. 

    Also, I'm not sure but wrap then in this: 

    Bool(CheckboxCanvas3_1.Value)

     

    Hope this helps

  • CU22100725-0 Profile Picture
    129 on at
    Re: Impossible to collect Value in a Collection

    Hi @Ethan_R ,

     

    Sorry for my late answer, I tried to replace the code but I still can't collect data

  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on at
    Re: Impossible to collect Value in a Collection

    Hi @TomVictor ,

     

    Do you have something like this which you can replace in the code?

    //Replace
    CheckboxCanvas3_1.Checked
    
    //To this
    CheckboxCanvas3_1.Value

     

    Hope this helps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard