Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Dynamic input error when using a dash

jbirdme
5 - Atom
I am using the dynamic input tool.  It is working fine when the patient ID has no dashes.  When it has a dash, I am getting the following error:

Error: Dynamic Input (20): Error: Microsoft OLE DB Provider for SQL Server: Incorrect syntax near '-'.\42000 = 102 in Query: EXEC jmg_FindTheLatestAccount G3-B20151103130257056

When I put this string G3-B20151103130257056 directly into the stored procedure, it works fine.  Somehow, it seems that Alteryx is changing it.

 

Any suggestions?  

1 REPLY 1
JohnJPS
15 - Aurora

It may be interpreting the dash as a minus sign. Can you wrap it in quotes as part of passing it to the stored procedure?

Labels