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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
LeonardoB25
Contributor II
Contributor II

Error in arithmetic operation in script load editor

Hello, this is a snippet of my script load editor:

LeonardoB25_0-1695042758699.png

I have the error "unexpected token" at line 68, the [Data Documento] on the right is the problem. Compiler expects an operator, a ':' or a ','. I really don't understand why it's wrong, since syntax seems correct from what i saw online.

 

Here the error log:

LeonardoB25_1-1695042875529.png

 

 

Labels (1)
11 Replies
marcus_sommer

It's the syntax - "normal" fields and tables will be specified with: Fieldname respective wrapped with certain quotes like "" or [] if the field-names contain any spaces or special chars. But by using field-functions it's different because they require a string-representation for the field and therefore single-quotes, like (above already shown):

let var = fieldvalue('fieldname', 1);

LeonardoB25
Contributor II
Contributor II
Author

you're right, it was my fault from the beginning. Thanks again!