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! Learn more

Reply
Anonymous
Not applicable

Expression.Error: We cannot apply field access to the type Function

Hello,

 

I am trying to pull the custom logs out of the Project Sites in PWA but i keep getting the error message;

 

Expression.Error: We cannot apply field access to the type Function.
Details:
Value=[Function]
Key=ProjectWorkspaceInternalUrl

 

Does anyone know where I am going wrong?

 

let
Source = OData.Feed("https://theermgroup.sharepoint.com/sites/PWA-IT-PMO/_api/ProjectData/Projects()?$Filter=ProjectType ne 7"),
#"Removed Other Columns" = Table.SelectColumns(Source,{"ProjectName", "ProjectWorkspaceInternalUrl"}),
#"Added Custom" = Table.AddColumn(#"Removed Other Columns", "Custom", each ProjectStatusUpdateData[ProjectWorkspaceInternalUrl]),
#"Renamed Columns" = Table.RenameColumns(#"Added Custom",{{"Custom", "ProjectStatusUpdate"}}),
#"Added Custom1" = Table.AddColumn(#"Renamed Columns", "Custom", each IssueData[ProjectWorkspaceInternalUrl]),
#"Renamed Columns1" = Table.RenameColumns(#"Added Custom1",{{"Custom", "IssueData"}}),
#"Added Custom2" = Table.AddColumn(#"Renamed Columns1", "Custom", each ActionLog[ProjectWorkspaceInternalUrl]),
#"Renamed Columns2" = Table.RenameColumns(#"Added Custom2",{{"Custom", "ActionLog"}}),
#"Added Custom3" = Table.AddColumn(#"Renamed Columns2", "Custom", each RiskLog[ProjectWorkspaceInternalUrl]),
#"Renamed Columns3" = Table.RenameColumns(#"Added Custom3",{{"Custom", "RiskLog"}})
in
#"Renamed Columns3"

2 REPLIES 2
Anonymous
Not applicable

The each operator requires a function after the "each" syntax. A Table[ColumnName] won't work. If you are trying to get each row value from a different table, how does the code know WHICH row to add where? You are better off using Table.Join or Table.FindText(OtherTable, "Text To Find").

 

--Nate

AlexisOlson
Super User
Super User

What is "RiskLog"? I don't see it appear before the last couple of steps.

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 Kudoed Authors