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
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.
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
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
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
WarrenBelz
146,587
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional