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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
singleton2787
Helper III
Helper III

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

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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