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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
TAUSEEF
New Member

Expression.syntaxerror: token indetified expected

 

ERROR.png

Plz help me, how to tackle this issue that i get when i try to edit a table imported as excel content from powerpivot.

The same error shows up when i hit refresh on the table which is imported from excel file as excel content.

Thanks.

 

1 ACCEPTED SOLUTION

Hi @TAUSEEF,

 

Based on my assumption, your Power Query should be like below, please directly paste it to the Advanced Editor.

let
    Source = Teradata.Database("HODB", [Query="SELECT ""AC_RNK"".""CHART"".*   FROM ""AC_RNK"".""CHART"""]),
    #"Renamed Columns" = Table.RenameColumns(Source, {{"ACODE", "ACODE"}, {"DESCRIPTION", "DESCRIPTION"}, {"ACODE_TYPE", "ACODE_TYPE"}, {"ACTIVE", "ACTIVE"}}),    
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns", {{"ACODE", Int64.Type}, {"DESCRIPTION", type text}, {"ACODE_TYPE", type text}, {"ACTIVE", type text}})
   
in
    #"Changed Type"

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
zoloturu
Memorable Member
Memorable Member

@TAUSEEF,

 

Can you provide code of your M (PowerQuery) script here? Go to Advanced editor and copy it?

It will be easier to help you.

 

Regards,

Ruslan

let
    Source = #!" let#(cr)#(lf)    Source = Teradata.Database(""HODB"", [Query=""SELECT """"AC_RNK"""".""""CHART"""".*   FROM """"AC_RNK"""".""""CHART""""""]),#(cr)#(lf)    #""Renamed Columns"" = Table.RenameColumns(Source, {{""ACODE"", ""ACODE""}, {""DESCRIPTION"", ""DESCRIPTION""}, {""ACODE_TYPE"", ""ACODE_TYPE""}, {""ACTIVE"", ""ACTIVE""}}),,#(cr)#(lf)    #""Changed Type"" = Table.TransformColumnTypes(#""Renamed Columns"", {{""ACODE"", Int64.Type}, {""DESCRIPTION"", type text}, {""ACODE_TYPE"", type text}, {""ACTIVE"", type text}})#(cr)#(lf)in#(cr)#(lf)    #""Changed Type"""
in
    Source

@TAUSEEF,

 

I see there an extra comma after text {""ACTIVE"", ""ACTIVE""}})

Please remove one.

 

Regards,

Ruslan

i have tried removing it {""ACTIVE"", ""ACTIVE""}}),, but the editor wont accept it. Before i removed the editor showed no syntax error.

@TAUSEEF,

 

Did you remove only one comma via Advanced Editor? See on the picture:

 

extra commaextra comma

Regards,

Ruslan

 

Hi @TAUSEEF,

 

As @zoloturu explained, please remove only one comma.

 

Not both but only one.

 

Let us know if it did not work.

 

Ninter

Untitled.png

After doing this the error that showed earlier was convertered to token comma expected.

Hi @TAUSEEF,

 

Based on my assumption, your Power Query should be like below, please directly paste it to the Advanced Editor.

let
    Source = Teradata.Database("HODB", [Query="SELECT ""AC_RNK"".""CHART"".*   FROM ""AC_RNK"".""CHART"""]),
    #"Renamed Columns" = Table.RenameColumns(Source, {{"ACODE", "ACODE"}, {"DESCRIPTION", "DESCRIPTION"}, {"ACODE_TYPE", "ACODE_TYPE"}, {"ACTIVE", "ACTIVE"}}),    
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns", {{"ACODE", Int64.Type}, {"DESCRIPTION", type text}, {"ACODE_TYPE", type text}, {"ACTIVE", type text}})
   
in
    #"Changed Type"

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Interkoubess
Solution Sage
Solution Sage

Hi @TAUSEEF,

 

Could you please the right side ( drag the bar on the right side) because we cannot see this part in order to find wich token is really missing.

 

Show the whole image and I can assist.

 

Ninter

Untitled.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors