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
AnaIsa
Frequent Visitor

Expression.SyntaxError: Token ')' expected.

Hi, Could you help me to know why I have this kind of error and how can be solved?

 

Expression.SyntaxError: Token ')' expected.

 

Table.TransformColumns( #"Filtered Rows4",("AttachmentContent",each Excel.Workbook(_ true)))

 

thankyou

AnaIsa_0-1714263708604.png

 

1 ACCEPTED SOLUTION

If you only need that tab then you need to specify that. 

 

I would recommend you click the Binary link for the first attachment and then examine the code that creates.  Then replace the new steps by the appropriate sequence.

View solution in original post

6 REPLIES 6
AnaIsa
Frequent Visitor

Thank you very much for your help, I was abble 😀

lbendlin
Super User
Super User

Second parameter needs to be a list, identified by {  and not (

 

Table.TransformColumns - PowerQuery M | Microsoft Learn

I tried as well, but it does not work:

 

AnaIsa_0-1714272024656.png

 

Remove the "true" part.

 

What are you trying to accomplish?

I want to connect PBI directly from outlook, that email contains two files one is excel file and the other one is PDF file.

In the next image,in the extension field,  I have filtered by .xlsx, in AttachmentContent field is where I want to put this formula: Table.TransformColumns( #"Filtered Rows4",{"AttachmentContent",each Excel.Workbook(_ true)}) in order to see table instead of Binary.

AnaIsa_1-1714413028461.png

I need to mention that the file I want to connect contains four tabs, I only need the yellow tab:

 

AnaIsa_2-1714413167277.png

Is there another option to do this?

Thank you

 

If you only need that tab then you need to specify that. 

 

I would recommend you click the Binary link for the first attachment and then examine the code that creates.  Then replace the new steps by the appropriate sequence.

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!

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