Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Special Character "&" on a text field gets truncated

hi,

  I have an excel file of list of department.

  In the department name, there are names that has an & character in it.

  example: "Department of Public Work & Highway"

The problem when I import the file into QlikView as my data source, the departments that has "&" is truncated and displayed as

  "Highway".

  All characters before the "&" are truncated and couldn't read by QlikView.

  Any help on getting through this?

Many thanks.

1 Solution

Accepted Solutions
Digvijay_Singh

The similar issue faced by someone here but with variable text strings,

Re: Ampersand in text string causing problems

View solution in original post

15 Replies
gautik92
Specialist III
Specialist III

try removing that special character in excel and upload it

Anonymous
Not applicable
Author

hi,

thanks for the reply but editing the excel is not an option. I just used a very simple scenario but in reality, the department field is part of an excel that gets uploaded on a daily basis with millions of records.

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Can u share sample data ?

gautik92
Specialist III
Specialist III

write this in ur script

Replace( yourfield,'&','')

vishsaggi
Champion III
Champion III

Hello Nald,

Can you change the excel formatting for that field as text and try. Or can you share some very less sample data so that we can try at our end.

V.

jonathandienst
Partner - Champion III
Partner - Champion III

That's not normal behaviour. Please upload your load script (or a sample qvw) and some sample data including the line that is misbehaving so that we can see what is causing this.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

t1.png

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
avinashelite

Hi

Try tied the e.g with the excel it did not gave any issues for me, can you please check your excel file once ? if your still facing the issues please shares the same app and data will try to find the exact issue

Anonymous
Not applicable
Author


Hi guys,

  Example i have an excel file named Monthly Data.xlsx.
  And its has two columns DateMonth and Department.

  In QlikView, to import the file is thru the script as shown below.


EXCEL_DATA:
LOAD

     DATEMONTH,
     DEPARTMENT
FROM
[$(Location)Monthly Data.xlsx]
(ooxml, embedded labels, table is Data);


the problem is, all department names that has a character "&" in it are automatically truncated...

so i cannot use any function like the replace or anything because the data when picked up by QlikView, its already truncated including the "&" character..

for example if a department name is "Department of Public Works & Highway",
it will be read as "Highway" only...
the rest of the characters before are truincated including the "&" character.