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: 
Anonymous
Not applicable

Syntax error, missing/misplaced FROM:

When i execute the folloing error :

VenteFinal: 

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente;

drop table TempVente;

I got the following error

Syntax error, missing/misplaced FROM:

VenteFinal: 

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente

VenteFinal: 

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente

How to resolve it ?

1 Solution

Accepted Solutions
rubenmarin

Hi, you have two consecutive 'LOAD', remove one:

VenteFinal:

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente;

VenteFinal:

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente

View solution in original post

5 Replies
Not applicable
Author

It appears that you are using Load two times instead of one:

VenteFinal:

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

[...]

Remove one Load from the statement and it should be OK.

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

The script is not straight forward but I think you're missing semicolon (;) at then end of

VenteFinal: 

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente;

rubenmarin

Hi, you have two consecutive 'LOAD', remove one:

VenteFinal:

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente;

VenteFinal:

LOAD Load * ,

IF(ISNULL(Comp) OR LEN(Comp) = 0 , 'O',Comp) as comparable

Resident TempVente

hic
Former Employee
Former Employee

You have two consecutive Load keywords:

LOAD Load * ,


HIC

Peter_Cammaert
Partner - Champion III
Partner - Champion III

If Load is a field in your resident table, omit the asterisk and everything should be fine. With QlikView Script having no real keywords and all...