Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Dynamic Input Oracle Query Date Error

anil_m
8 - Asteroid

When I write the SQL query in dynamic input tool for the Oracle database, I was getting the following error. 

 

Capture.PNG

 

I was to able to use the above query in dynamic input tool while using SQL server connection, but not able to use the same query for Oracle connection.  Any help on this, please ?

 

 

4 REPLIES 4
jdunkerley79
ACE Emeritus
ACE Emeritus

At a guess, the way Oracle handles parsing the SQL is different to SQL Server.

 

I think SQL Server would interpret the invalid Date x as a NULL but Oracle wants it to be a valid Date.

 

I would suggest putting a valid placeholder date rather than an x.

anil_m
8 - Asteroid

@jdunkerley79 But here date 'x' is a dynamic argument from another database, and x is replaced with 'update where clause' in dynamic input tool.   Any idea on how to pass a valid date?

jdunkerley79
ACE Emeritus
ACE Emeritus

You can target any specific string to replace within a Dynamic Input:

 2017-10-16_22-10-07.jpg

 

I would pick a random date you know wont be in and target that (1872-06-12 usual is my default!)

anil_m
8 - Asteroid

@jdunkerley79   your solution is working, also I have changed the where clause like this >= To_Date('x', 'YYYY-MM-DD'), this is also working. Thank you.

Labels