Skip to content
Advertisement

Python SQL mismatched input ‘Orion’ expecting ‘FROM’

I’m using OrionSDK and I have a python query that keeps returning this error: mismatched input ‘Orion’ expecting ‘FROM’ . Here is the query. Not sure what can be causing this. Thanks in Advance!

Advertisement

Answer

You need some extra spaces in your query string.

For instance, these two lines:

will produce:

So it is parsing “AppUriFROM” as the column alias; then it is expecting a FROM keyword but finding Orion instead, which causes your error.

I think you need to add a space before the FROM, JOIN, and WHERE keywords.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement