Dear Tuan Le,
I see you are using 10.18.3 but keyword like replace is introduced starting from version 11. You either upgrade to 11 and above or use microflow/java to replace.
DELETE, INSERT, REPLACE, UPDATE, UPSERT, INTO, SET, VALUES, IGNORE, MATCHED, DUPLICATE, KEY, CONFLICT, MERGE, USING, SOURCE, TARGET, and WITH.DELETE, INSERT, REPLACE, UPDATE, UPSERT, INTO, SET, VALUES, IGNORE, MATCHED, DUPLICATE, KEY, CONFLICT, MERGE, USING, SOURCE, TARGET, and WITH are reserved but not yet used.
Hope my answer helps. Reach me out for any queries.
You are getting this error because REPLACE is not supported in Mendix OQL as it is not part of the available OQL function set in your current version. As an alternative, you can create a simple Java Action that performs the string replacement and call it in a microflow before passing the value into the dataset or consuming it elsewhere. The Java action would simply take an input string and use the standard Java replace() or replaceAll() method to replace spaces with commas, then return the processed string.