Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Not sure why nvarchar value in coming null after qliksense app reload .

Hi All ,

My SQL Server Table "POLICY" has one "LINE_OF_BUSINESS" field .

field.PNG

Having value like below - 

Value.PNG

Not sure why after the reload in qliksense app the value is coming null or blank with data in LINE_OF_BUSINESS field.

result.PNGPlease kindly assist , why the value is coming null , I am just running the sql select query in qliksense app script.

Thanks,

Suvechha 

1 Solution

Accepted Solutions
suvechha_b
Creator III
Creator III
Author

I problem got resolved when the Database table "tablename" change the field description from  nvarchar(max) to nvarchar(10) .

The table was containing 10 character values in it and decribing it to nvarchar(max) which was causing problem in my Qliksense App.

 

View solution in original post

6 Replies
Anil_Babu_Samineni

How is the query looks like?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
suvechha_b
Creator III
Creator III
Author

LOAD

      "POLICY_ITEM_KEY",

      "POLICY_ITEM_DESCRIPTION",

       TEXT(LINE_OF_BUSINESS) AS "LINE_OF_BUSINESS";

SQL SELECT

      "POLICY_ITEM_KEY", 

      "POLICY_ITEM_DESCRIPTION",

      "LINE_OF_BUSINESS"

  FROM [Tablename];

Anil_Babu_Samineni

Are you getting any data using this?

SQL SELECT

      "POLICY_ITEM_KEY", 

      "POLICY_ITEM_DESCRIPTION",

      "LINE_OF_BUSINESS"

  FROM [Tablename];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
suvechha_b
Creator III
Creator III
Author

I am getting values in SQL SERVER query like below - 

Value.PNG

But , when loading this sql query to qliksense ,

I am getting NULL in LINE_OF_BUSINESS field value.

suvechha_b
Creator III
Creator III
Author

 SQL Server Result

SQL.PNG

 

Qliksense Result 

Capture.PNG

 

Wandering why the qliksense is not getting the values in .?

suvechha_b
Creator III
Creator III
Author

I problem got resolved when the Database table "tablename" change the field description from  nvarchar(max) to nvarchar(10) .

The table was containing 10 character values in it and decribing it to nvarchar(max) which was causing problem in my Qliksense App.