Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Issue with union in-db

JYLim
6 - Meteoroid

Hi community,

 

I am new to Alteryx and currently trying out the in-db functions in Alteryx. I am trying to data stream in to union with in-db tables but my union in-db icon is not giving any outputs. Is it possible that my data from connect in-db is all in string field and cannot union with the outputs from different fields from my stream in data?

 

I hope to get insights from the community regarding this matter.

union in db.PNG

5 REPLIES 5
caltang
17 - Castor
17 - Castor

Can we see your Union In-DB configuration pane? In addition, can you show us some data examples from the tools JUST BEFORE the Union In-DB tool? 

 

From your image and description, it's hard to pinpoint exactly the cause.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
JYLim
6 - Meteoroid

Sorry for not being clear.

 

Before the in db tool, it is an auto field icon as below,

Capture.PNG

There are 69 field of data and some fields are shown below:

 

Screenshot 2023-11-29 143500.png

I am unable to share the data samples due to sensitive data issue but I can only provide explanation for this. The error pops up after is as below:

and the error pops up is as below

Capture.PNG

JYLim
6 - Meteoroid

I have tried to remove the auto field icon where all my data inputs are in string field, and the union in-db tool works. However, this is very inconvenient as everytime I tried to data stream in, I would need to change all the field of my data to string. I would like to know is this the only solution I can get to use union in-db?

caltang
17 - Castor
17 - Castor

Hi @JYLim - no need to provide sensitive data, in this case. What you can do is to use the Multi-Field Formula tool before your Data stream in tool. Use the Multi-Field Formula tool, select ALL, and choose Dynamic also.

 

Then the expression, use:

ToString([_CurrentField_])

 

The config is something like this:

image.png

 

This ensures all data becomes V_WString or V_String or String as per your wishes, and it is dynamic. Then you should be able to use it in the DB Tool right? 

 

Try to use similar data types to SQL, then you'll have an easier time.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
JYLim
6 - Meteoroid

Thank you very much for the suggestion

 

Labels