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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
vireshkolagimat
Creator III
Creator III

SQL##f - SqlState: S0022, ErrorCode: 904, ErrorMsg: [Oracle][ODBC][Ora]ORA-00904: "YEAR": invalid identifier

Hi All,

I am trying to load the below script but getting the error message as

" SQL##f - SqlState: S0022, ErrorCode: 904, ErrorMsg: [Oracle][ODBC][Ora]ORA-00904: "YEAR": invalid identifier".

script: LET vIncrementalExpression = 'Where a.customer not in (''A'',''B'',''C'') and  YEAR (salhist.dated) >= Year (GETDATE ()) - 3';

Thank You.

Regards,

Viresh

10 Replies
vireshkolagimat
Creator III
Creator III
Author

Hi All,

I got the answer. when you query YEAR (INVOCIEDATE) is not valid in oracle. so i tried EXTRACT (YEAR from INVOICEDATE) and its working fine.

Thank you all.

Regards,

Viresh