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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Getting error Expression.SyntaxError:Token Eof expected

sush08gi_0-1724781442284.png

 

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

5 REPLIES 5
Anonymous
Not applicable

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 @Anonymous ,

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.

Anonymous
Not applicable

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

@Anonymous 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...
Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors