Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sush08gi
New Member

Getting error Expression.SyntaxError:Token Eof expected

sush08gi_0-1724781442284.png

 

Not sure what is wrong with this query. Kindly advise. 

5 REPLIES 5
sush08gi
New Member

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

This resolved the error

Anonymous
Not applicable

Hi @sush08gi ,

Agree with what @Greg_Deckler said, there's a problem with your M code, something is missing here:

vjunyantmsft_0-1724821977557.png

If you don't know how to modify your M code, you can try enabling the advanced options when connecting to a PostgreSQL database:

vjunyantmsft_1-1724822102172.png

Then, in the SQL statement, put the SQL query you used in the M code into it and connect it.

vjunyantmsft_2-1724822129703.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

Greg_Deckler
Community Champion
Community Champion

@sush08gi Typically that should look like the following:

("localhost", "AdventureWorksDW2022", [Query="SELECT * FROM DimCustomer"])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks all. As mentioned by Greg and V-   there was "  missing before the select .... so I added that and in the end I also added
created_at", null, [EnableFolding=true])

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.