I created a BAQ that should concatenate the CommentText field of multiple records into a single column using the FOR XML PATH statement. I am receiving a “Severity: Error, Text: SQL Statement” error when I test the BAQ. I have tried to simplify the query from what I originally had, trying to identify the issue. I also removed the UDField, at one time, and that had no impact. I can not find where my mistake is.
I am hoping that someone can see my mistake since I have been staring at this for a while now. DG_TEST3.baq (34.3 KB)
Help help!! Thank you
First, get rid of the replace stuff and just look at the field without the string manipulation stuff. Then work the replace stuff into it piece by piece.
never mind, if you’re on a modern version, use String_Agg()