Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

DataFormat.Error on AssignedTo column running basic OData query

I'm using this sample query, and getting the following error on the AssignedTo column: DataFormat.Error: We expected a property 'AssignedTo', but the OData service omitted it from the response data....
  • Anonymous's avatar
    Anonymous
    5 years ago

    After some investigation with Renata Popescu (Power BI Support Engineer) and Ludovic Fry (Incident Manager) from Microsoft, it was suggested to remove OmitValues = ODataOmitValues.Nulls from the query. This fixed it.

    It appears that the sample query assumes there are only non-null values, and will therefore omit null values. Removing this part of the query ensures that null values are considered valid, and therefore removes the error.