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 / Error on Collect when ...
Power Apps
Answered

Error on Collect when using the Fx Value to convert text to number

(0) ShareShare
ReportReport
Posted on by 5

Does anyone know why when I try to convert a texinput text to number with the expression VALUE(), Im getting an error on the entire Collect function. The field "Cantidad" withouy issues is: Cantidad: TextInputCantidadPrendas.Text;  however when I add the function Valur to convert to Number is when Im getting the error:  Cantidad: Value(TextInputCantidadPrendas.Text);

 

Here the Collect function.

 

Collect(
_ColArticulosLavado;
{
Orden: _OrdenSeleccionada.Orden;
IDArticuloCliente: ComboBoxArticulo.Selected.IDArt_x00ed_culoCliente;
Cantidad: TextInputCantidadPrendas.Text;
Carga: _VarConsecutivoCarga;
Lavadora: ComboBoxMaquina.Selected.Value;
Programa: ComboBoxPrograma.Selected.Value;
Peso: Value(LookUp(TSAU_ArticulosClientes; IDArt_x00ed_culoCliente = ComboBoxArticulo.Selected.IDArt_x00ed_culoCliente;Peso)* Value(TextInputCantidadPrendas.Text))
}
)

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,653 Most Valuable Professional on at

    I suspect the problem is that the collection already exists, so the schema for that field calls for a string. If you create the collection the first time using a value then you would be able to use the value function to store the value.

  • CR_StevenSolis Profile Picture
    5 on at

    Totally true. I simply renamed the collection and the error went away. Thank you so much.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard