Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qlik_venu
Creator
Creator

Qlikview Reload

Hi,

I had received a Qlikview file in which a Table [Sample]: was created using the LOAD statement. It has the ODBC connect syntax to connect to the db.

But when i added one more table sysdate1, the RELOAD fails with a statement, Field not found error.

What are the steps i need to follow when I add to the existing table loads in the RELOAD script.

Follwing is the Reload script I Used,

SET ThousandSep=',';
SET DecimalSep='.';
SET MoneyThousandSep=',';
SET MoneyDecimalSep='.';
SET MoneyFormat='$#,##0.00;($#,##0.00)';
SET TimeFormat='h:mm:ss TT';
SET DateFormat='M/D/YYYY';
SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

ODBC CONNECT TO GDWPRD (XUserId is YCUZVRdNHTdSWSdOVbcAG, XPassword is TTVeJZVMBDZADXFGZDIYG);

[SAMPLE]:
LOAD
ROW_DATE,
SPLIT,
ANSTIME,
ANSTIME_AVG,
SERVICE_LEVEL;
SQL SELECT ROW_DATE
, SPLIT
, ANSTIME
, ANSTIME_AVG
, SERVICE_LEVEL
FROM SMKDM."CS_CMS_DSPLIT_F";ODBC CONNECT TO GDWPRD;

sydate1:
load
current_day;
SQL select sysdate from dual;

The script fails at the start of execution of the 2nd table sysdate1`. Why should this happen. The first tables gets loaded fully and fails only at the 2nd.

Also attached the snapshot.

Thanks,

Venu

5 Replies
vgutkovsky
Master II
Master II

Change it to something like the following:


sydate1:
LOAD
sysdate as current_day;
SQL select sysdate from dual;


You need to alias the field that your SQL statement originally fetches.

Regards,

Not applicable

Appears to me that it is failing becasue current_day is not defined in the sql select statement.

You would need to alias the sysdate field in teh sql select e.g.

sydate1:
load
current_day;
SQL select sysdate as current_day from dual;

edit: Vlad got there first

vgutkovsky
Master II
Master II

Yes SQL-Cowboy, your signature is excellent! Yes

Not applicable

Why thank you, you're too kind! Embarrassed

montubhardwaj
Specialist
Specialist

Hi,

You need to alias the filed in Select to match as in the Load. You can follow as below:

sydate1:
load
current_day;
SQL select sysdate as current_day

from dual;

Hope it will solve your issue.



Cheers!!!

Sharma