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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

We cannot apply field access to the type Binary

Why am I getting this error?

=========

An error occurred in the ‘GetWorkItemIds’ query. Expression.Error: We cannot apply field access to the type Binary.
Details:
Value=[Binary]
Key=workItems

===========

let
GetWorkItemIds = () =>
let
Source = Web.Contents("https://genericwebsite.visualstudio.com/DefaultCollection/project/_apis/wit/wiql/704eb4c2-2776-4c66-..."),
workItems = Source[workItems],
#"Converted to Table" = Table.FromList(workItems, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expand Ids" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"id"}, {"Work Item Id"})
in
#"Expand Ids"
in
GetWorkItemIds

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

From your description, it looks like there may be a data type error.

What is your workItems?

Please check if your M code and data source have any conflicts.

 

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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