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

Qlikview 11 sample question

A developer is attempting to reload a QVW when the script error displays:

Syntax error, missing/misplaced FROM: LOAD InvoiceNo,
     DateInvoiced,
     Today() - DateInvoiced AS InvoiceAgeInDays,
     DateDue,
     LastPaymentDate,
     InvoiceAmount,
     PaidAmount,
     InvoiceAmount - PaidAmount AS InvoiceBalance
SQL SELECT InvoiceNo,
     DateInvoiced,
     DateDue,
     LastPaymentDate,
     InvoiceAmount,
     PaidAmount
FROM dbo.Invoice;
LOAD InvoiceNo,
     DateInvoiced,
     Today() - DateInvoiced AS InvoiceAgeInDays,
     DateDue,
     LastPaymentDate,
     InvoiceAmount,
     PaidAmount,
     InvoiceAmount - PaidAmount AS InvoiceBalance
SQL SELECT InvoiceNo,
     DateInvoiced,
     DateDue,
     LastPaymentDate,
     InvoiceAmount,
     PaidAmount
FROM dbo.Invoice;

How should the developer resolve the error?

3 Replies
Not applicable
Author

you should always terminate the load statement with a semi colon.

srchilukoori
Specialist
Specialist

Terminate the following statement with a semicolon


InvoiceAmount - PaidAmount AS InvoiceBalance ;


Just above the SQL Select statement

Not applicable
Author

There are several field names that are identical. This means, when your script finishes, there will be synthetic keys. What the guys said before me, also true, that you should use a semicolon when ending your load statement .

Br

T