Dynamic Input Oracle Query Date Error
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
When I write the SQL query in dynamic input tool for the Oracle database, I was getting the following error.
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 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can target any specific string to replace within a Dynamic Input:
I would pick a random date you know wont be in and target that (1872-06-12 usual is my default!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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.
