Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
user2828
Partner - Contributor III
Partner - Contributor III

Passing a flag column from qlik task

Hi team,

I have a flag column at target which I have set the default value as '0'. While replicating from source can I add this flag column in Qlik task in Table setting>Transform. So that it will be available at target?

Labels (3)
1 Solution

Accepted Solutions
DesmondWOO
Support
Support

Hi @user2828 ,

I don't believe it's an issue related to single or double quotes. The error occurs because your source table does not have a "flag" column. For your request, you simply need to set your expression to 0. For example

DesmondWOO_0-1728022389190.png

Regards,
Desmond

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

7 Replies
SachinB
Support
Support

Hello @user2828 ,

Thank you for reaching out to the Qlik community!

You can add this extra column at replicate end in order to reflect at target endpoint. Below is the screen shot for the same.

SachinB_0-1727690666783.png

And in function tab you can use the below formula in order to hard code the value if nothing is coming out from source.

SachinB_1-1727690753923.png


Hope this helps for you.

Regards,

Sachin B

 




user2828
Partner - Contributor III
Partner - Contributor III
Author

Hi Sachin,

While trying to achieve what you have shared, I got the following error message.
ErrorError

sureshkumar
Support
Support

Hello @user2828 

Please try with single = instead of Double equals in transformation and let us know the result.

 

Regards,
Suresh

SachinB
Support
Support

Hello @user2828 ,

It appears to be double quote.

CASE WHEN $DESCRIPTION==' ' THEN 'null'
ELSE $DESCRIPTION
END

 

Try above and update us.

 

Regards,

Sachin B

 

Laurin37
Contributor III
Contributor III

Hey @user2828,
I guess u have to use a double quote and not an quotation mark in the statement:

Use this: 
CASE WHEN $flag == ' ' THEN 'null'


And not this:
CASE WHEN $flag == " THEN 'null'

Best regards,
Laurin

DesmondWOO
Support
Support

Hi @user2828 ,

I don't believe it's an issue related to single or double quotes. The error occurs because your source table does not have a "flag" column. For your request, you simply need to set your expression to 0. For example

DesmondWOO_0-1728022389190.png

Regards,
Desmond

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
user2828
Partner - Contributor III
Partner - Contributor III
Author

Thankyou @DesmondWOO this has solved my query