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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Left Function Issue

Hi Guys,

I run into an issue when using Left function.

When I apply it on Local QlikView platform it works as needed but when I try to load the script on the server it doesn't recognize the Left function and it returns Null Value..

Both my local machine and server are on V11

Any thoughts?

Thxs,

Alec

9 Replies
Clever_Anjos
Employee
Employee

Please post part of your script here

alec1982
Specialist II
Specialist II
Author

Hi,

The table on the source looks like

1/2011

1/2012

2/2012

3/2012

..

Table1:

Load ows_LinkTitle,

Left([ows_LinkTitle],1) as [Key]

From Source table

It works on my local QV normally but not on the server..

Thxs,

Alec

Clever_Anjos
Employee
Employee

First  let´s put some 'silly' test

Table1:

Load ows_LinkTitle,

Left([ows_LinkTitle],1) as [Key],

Left('ABC',1) as ShouldBeA

From Source table

jpapador
Partner - Specialist
Partner - Specialist

Are you connecting to the same data source in both cases?

alec1982
Specialist II
Specialist II
Author

Hi,

Yes I am connecting to the same source.

I have tested differently and used Left(FieldName, 2) and worked.

I am not sure why the server adds an additional character while my PC read the right value..

Note: I am loading data from SharePoint XML List.

Please let me know your thoughts..

Thxs,

Alec

Clever_Anjos
Employee
Employee

Try

Left(trim([ows_LinkTitle]),1) as [Key],

alec1982
Specialist II
Specialist II
Author

all of these functions work but I am trying to find why my pc loads the correct value while the server adds on one more chr to it.

Clever_Anjos
Employee
Employee

Its exactly the same version?

Clever_Anjos
Employee
Employee

Are you extracting through an ODBC/OLEDB driver? Maybe some different configuration