Try performing sequential debugging - first remove all blocks from the BaresLoadsSinConexion function. If the problem has disappeared, then the problem is related to the sides in this function.
I may be wrong, but there may be a problem with the “app” variable blocks. Try using something else instead. Personally, I use variables from the parameters. Or the BaresLoadsSinConexion function there is some block that causes a failure.
because if the user changes the location)
Do I understand correctly that you are using the Location and Map component? If so, the problem may be related to them.
If you give me full access to your app and database, I will find the problem. If you do not want to do this, then try to solve it yourself.