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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in load statement..plz help

Hello,

I am using the following code

ODBC CONNECT TO UCPROD;

V_QV_Table_Size:
Load Run_Date,
Month(Run_Date) AS Month_Name,
DatabaseName as DBname,
Tablename as TblName
Tablesize_Gb;
SQL SELECT
Run_Date,
DatabaseName,
Tablename,
Tablesize_Gb

FROM "D_SYSTEM_LOGS"."V_Table_Size"
WHERE
Run_Date(Date)=Date-1;

store V_QV_Table_Size into V_QV_Table_Size.qvd;

It is given the following error

error loading image

Can you please help

Arif

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Arif,

It seems that you missed a comma after this field:

Tablename as TblName,


Usually those "missing/misplace FROM" errors are because of wrong number of commas as field separators.

Hope that helps.

View solution in original post

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi Syed,

I think there is something wrong in WHERE
Run_Date(Date)=Date-1;

As i understand from the script Run_Date is a field name .

Miguel_Angel_Baeyens

Hello Arif,

It seems that you missed a comma after this field:

Tablename as TblName,


Usually those "missing/misplace FROM" errors are because of wrong number of commas as field separators.

Hope that helps.

Not applicable
Author





Hi,

see the below code.i think u missed comma in load statement

V_QV_Table_Size:

Load

Run_Date,

Month(Run_Date) AS Month_Name,

DatabaseName

as DBname,

Tablename

as TblName,

Tablesize_Gb;

SQL

SELECT

Run_Date,

DatabaseName,

Tablename,

Tablesize_Gb

FROM

"D_SYSTEM_LOGS"."V_Table_Size"

Regards,

Chandra