Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Input Group Replacement with PostgreSQL

BLamb
6 - Meteoroid

Hi, 

 

I have a dynamic input tool that I am using that takes a list of companies and searches a broader list for matches using 'ilike' in postgresql. 

 

The workflow runs with no group replacement for the SQL IN clause however this is very slow as it is calling each query individually, however when I try and use the group replacement to speed things up the tool errors saying: Error Opening "Select ..." no columns returned. 

 

Any ideas what might be causing this or any potential workarounds? I have tried changing the character limits with no luck

 

Thanks

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

How do you have your list of companies replacing the placeholder value? What is your WHERE clause?

BLamb
6 - Meteoroid

Hi, thanks for reaching out on this - apologies for my delay in replying!

 

The where clause is written like this: where column ilike '%000000%'

 

When I look at the error from the workflow, it looks as though it is creating the dynamic input statement as: 
where column ilike '%'abc', 'xyz'%'   

 

Im not sure if this is the correct syntax for postgre as I have only been using it for a few weeks. 

 

Thanks for any insight you can give

BLamb
6 - Meteoroid

the modify then replaces the 000000 with the replacement field. 

 

 

As I say, it works fine when running individually it just takes too long as each query is executed individually

Labels
Top Solution Authors