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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
DSRScape
Contributor II
Contributor II

Text truncated when 'where' clause in load script

Hi,

I have an issue with a field (ProjectDescription) being truncated to 255 characters when a 'where' clause is added to the load script. Remove the where clause and I get the expected lengths exceeding 1,000 characters:

Temp_SubDate:
Load
	date(floor(monthend(MaxSubDate)),'yyyy-MM-dd') as MaxSubDate;
SQL SELECT Max(SubDate) as MaxSubDate
    FROM "Big_Data".dbo.DataCollated;

    Let vThisMonth = Peek('MaxSubDate',0);

drop Table Temp_SubDate;

TruncateTest:
LOAD PartnerProjectNumber,
	ProjectName,
	ProjectDescription        // The field being truncated
	;
SELECT PartnerProjectNumber,
	ProjectName,
	ProjectDescription
FROM "Big_Data".dbo.DataCollated
where SubDate = '$(vThisMonth)';

Thank you for looking - hope someone can help!

Many thanks,

David

Labels (2)
1 Solution

Accepted Solutions
DSRScape
Contributor II
Contributor II
Author

Hi Ezir,

I'm kicking myself as after spending way too long looking, I've just realised that the issue is in the source data. Records are updated monthly and the previous month has the full text and the latest month is truncated which is obviously what's loaded when the Where clause is added.

Thanks for your time and apologies for wasting it! 🙄

David

View solution in original post

2 Replies
Ezirraffner
Creator II
Creator II

Hi David!

 

Can you give an example of the expected result?

 

Best regards

 

Ezir

DSRScape
Contributor II
Contributor II
Author

Hi Ezir,

I'm kicking myself as after spending way too long looking, I've just realised that the issue is in the source data. Records are updated monthly and the previous month has the full text and the latest month is truncated which is obviously what's loaded when the Where clause is added.

Thanks for your time and apologies for wasting it! 🙄

David