when used with an old SQL server version (or, in my case, a database with a compatibility level lower than 140). This happens because the STRING_AGG SQL function, which is used in the implementation ...