hola, tengo este assign, el cual trae informacion.
a la hora de ejecutarlo, me trae 13, siendo que esta vacio y tiene que traer 0.
el tema es que aveces lo ejecuto y trae 13 y otras 0, cual podria ser la causa ?
Check if dtIndustrial data changes between runs. Ensure no concurrent modifications. Trim “Status” values to remove hidden characters. Verify dtIndustrial is populated before counting. Add logs to inspect row count and “Status” values. Debug step by step.
Check if the variable have any default value assigned or not. Also initialise this variable with 0 before executing and see if it is coming as expected when the data table contains expired values and without expired values @mively
run the bot in debug mode…have a breakpoint on assign and then check the locals panel to see what values are present and use immediate panel to execute the query and check the values from there…this would help you determine the issue if there is any in the data or formula
Deberías inicializar totalSinNCFV como un Integer si deseas trabajar con valores numéricos, ya que facilitará realizar operaciones matemáticas y comparaciones.