When you’re trying to set a field through B1UP macro, sometimes depending on the region, the field value is either wrong or you get an error that the format of the value is not correct. This happens usually in regions where a comma is used as the decimal separator.
In the macro, try to use Set(); with the SQL_INVARIANT: -functionality.
In this example, the bolded part can be any calculation or decimal value:
So instead of using SQL:
You can use SQL_INVARIANT:
SQL invariant is used to ensure that decimal numbers are returned in the correct format depending on your system and region.
You can see more info in the manual: