Select to view content in your preferred language

Survey123 Pulldata SQL Where clause not working with special characters

121
0
09-09-2024 06:28 AM
RobynSnookCCB
Regular Contributor

I'm attempting to use the pulldata function in survey123 connect to get road information, I need to get the street name and use that in a future sql clause. I'm having the issue that street names with an apostrophe break the sql clause, it works fine with street names without any special characters.

This the statement:

pulldata("@layer","getValue","attributes.Total",${RoadQu}, concat("DISPLAYNAM='", ${RdName},"'"))

 

I've also tried this to no avail. 

pulldata("@layer","getValue","attributes.Total",${RoadQu}, concat('DISPLAYNAM="', ${RdName},'"'))

 

thanks

0 Kudos
0 Replies