This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
hi all,
i am getting this Mengine error; microsoft mashupengine [expression error] we cannot convert the value 599 to type list
here is my code its calling less the company code redacted.
let
BaseUrl = "https://api-uk.vfp.viewpoint.com/vfp/",
Endpoint = "api/v2/enterprises/123456789101112/users",
Token = Auth_4Projects_Token,
Options = [
RelativePath = Endpoint,
Headers = [
Authorization = "Bearer " & Token,
Accept = "application/json",
#"User-Agent" = "PowerBI"
],
Timeout = #duration(0,0,10,0)
],
Get = () => Web.Contents(BaseUrl, Options),
T1 = try Get(),
R1 = if T1[HasError] then null else T1[Value],
R2 = if R1 = null then Function.InvokeAfter( () => Web.Contents(BaseUrl, Options), #duration(0,0,3,0)) else R1,
R3 = if R2 = null then Function.InvokeAfter( () => Web.Contents(BaseUrl, Options), #duration(0,0,6,0)) else R2,
Raw = if R3 = null then error "API timed out after 3 attempts." else R3,
JsonResponse = Json.Document(Raw),
Result =
if Value.Is(JsonResponse, type list) then
Table.FromRecords(JsonResponse)
else
error "Unexpected JSON format.",
BufferedResult = Table.Buffer(Result)
in
BufferedResult
this runs in query and calls a small table of results - with headers email - name - orgid - profilid- type with 8 rows below it.
v confused why this is hanging. thanks in advance!
help m
Solved! Go to Solution.
Hi @Simon_Newton,
Thank you for posting your query in the Microsoft Fabric Community Forum.
Based on the details shared, this error occurs because the API response is not consistently returning a JSON list. In some cases, the API appears to return a different payload (for example, a numeric value such as 599, or an error/timeout response). When Power Query evaluates Json.Document(Raw), it expects a list of records, but instead receives a non-list value, which results in the error “We cannot convert the value 599 to type List.”
Although the query may work correctly in the preview, during refresh Power BI can execute the query multiple times. Under these conditions, the API may return throttling, timeout or error responses with a different JSON structure, which leads to the load failure.
To resolve this, we recommend updating the query to:
For your reference: https://learn.microsoft.com/en-us/powerquery-m/json-document
Best regards,
Ganesh Singamshetty.
thanks Ganesh i now also see the limits of the desktop app.
regards
simon
Hello @Simon_Newton,
We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.
Thank you.
Hi @Simon_Newton,
Thank you for posting your query in the Microsoft Fabric Community Forum.
Based on the details shared, this error occurs because the API response is not consistently returning a JSON list. In some cases, the API appears to return a different payload (for example, a numeric value such as 599, or an error/timeout response). When Power Query evaluates Json.Document(Raw), it expects a list of records, but instead receives a non-list value, which results in the error “We cannot convert the value 599 to type List.”
Although the query may work correctly in the preview, during refresh Power BI can execute the query multiple times. Under these conditions, the API may return throttling, timeout or error responses with a different JSON structure, which leads to the load failure.
To resolve this, we recommend updating the query to:
For your reference: https://learn.microsoft.com/en-us/powerquery-m/json-document
Best regards,
Ganesh Singamshetty.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.