This macro compiler error is due to a bug of the macro compiler when combining in the same code line the call a user-defined function added to a string or an integer.
This compiler bug is currently being investigated (August 2026).
Solution
The error appears when the call to a user-defined function is just after the equal sign, and that call is followed by the addition of a string or an integer (this issue does not occur for void or Boolean user-defined functions).
Below are examples of code that will cause the present error:
sTest = StrRoundedHour(nCurResIdx mod 1000000, '0') + '-test' // compiler error
nCurResIdx = RoundedHour(12, '00000') + 3 // compiler error
The solution is to add an empty string or 0 before the call to the user-defined function:
sTest = '' + StrRoundedHour(nCurResIdx mod 1000000, '0') + '-test' // no error
nCurResIdx = 0 + RoundedHour(12, '00000') + 3 // no error
In all cases, you might want to send your script or macro to technical support to look at it.
Topic 189105, last updated on 19-Aug-2026