SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66197: SAS® Customer Intelligence Studio fails to publish a campaign to the Snowflake database and returns "ERROR: CLI prepare error: SQL compilation error"

DetailsHotfixAboutRate It

SAS Customer Intelligence Studio fails to publish campaigns when the Common Data Model is held in the Snowflake code database. A syntax error occurs because the backslash character (\) in the SQL command is interpreted as an escape character and the campaign exits at the next character.

This issue causes the following error in the SASStoredProcessServer_yyy-mm-dd_pid.log file:

INFO  [00001365] 4:sasdemo - ERROR: CLI prepare error: SQL compilation error: syntax error line 1 at position 322 unexpected 'xxxxxxx'.
parse error line 1 at position 368 near '<EOF>'. syntax error line 1 at position 367

INFO  [00001365] 4:sasdemo - unexpected ')'.

The following query can cause this issue:

update CICDM.CI_CAMPAIGN SET CURRENT_VERSION_FLG ="N" Where UPCASE(CAMPAIGN_CD)
=UPCASE(TRIM(LEFT("CAMP199"))) and UPCASE(CAMPAIGN_NM)
=UPCASE(TRIM(LEFT('camp1'))) and UPCASE(CAMPAIGN_FOLDER_TXT)
=UPCASE(TRIM(LEFT('\'))) and UPCASE(BUSINESS_CONTEXT_NM)
=UPCASE(TRIM(LEFT('CI65'))) and CURRENT_VERSION_FLG="Y" ;

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Customer Intelligence StudioMicrosoft® Windows® for x646.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8 Enterprise x646.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8 Pro 32-bit6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8 Pro x646.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8.1 Enterprise x646.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 8.1 Pro x646.66.69.4 TS1M69.4 TS1M6
Microsoft Windows 106.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 2012 Datacenter6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 2012 R2 Std6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 2012 Std6.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 20166.66.69.4 TS1M69.4 TS1M6
Microsoft Windows Server 20196.66.69.4 TS1M69.4 TS1M6
Windows 7 Enterprise 32 bit6.66.69.4 TS1M69.4 TS1M6
Windows 7 Enterprise x646.66.69.4 TS1M69.4 TS1M6
Windows 7 Home Premium 32 bit6.66.69.4 TS1M69.4 TS1M6
Windows 7 Home Premium x646.66.69.4 TS1M69.4 TS1M6
Windows 7 Professional 32 bit6.66.69.4 TS1M69.4 TS1M6
Windows 7 Professional x646.66.69.4 TS1M69.4 TS1M6
Windows 7 Ultimate 32 bit6.66.69.4 TS1M69.4 TS1M6
Windows 7 Ultimate x646.66.69.4 TS1M69.4 TS1M6
64-bit Enabled AIX6.66.69.4 TS1M69.4 TS1M6
64-bit Enabled Solaris6.66.69.4 TS1M69.4 TS1M6
HP-UX IPF6.66.69.4 TS1M69.4 TS1M6
Linux for x646.66.69.4 TS1M69.4 TS1M6
Solaris for x646.66.69.4 TS1M69.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.