<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic C# 5.1 API SDK missing error object from exports in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5236863#M65272</link>
    <description>&lt;P&gt;It would appear that the&amp;nbsp;Microsoft.PowerBI.Api 5.1.0 SDK for .NET has removed the Error object from the Export model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a raw response from Postman calling the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/xxx/reports/xxx/exports/xxx" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/xxx/reports/xxx/exports/xxx&lt;/A&gt;&amp;nbsp;endpoint, with my specific GUIDs replaced with xxx. Note the error object with code, message, and detail properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "@odata.context": "https://wabi-us-east2-d-primary-redirect.analysis.windows.net/v1.0/myorg/groups/xxx/$metadata#exports/$entity",
    "id": "xxx",
    "createdDateTime": "2026-06-25T13:18:35.0382337Z",
    "lastActionDateTime": "2026-06-25T13:18:39.7605289Z",
    "reportId": "xxx",
    "reportName": "xxx",
    "status": "Failed",
    "error": {
        "code": "Invalid_Report_Parameters",
        "message": "RootActivityId(xxx): One of the supplied report parameter names does not exist.",
        "details": []
    },
    "percentComplete": 0,
    "expirationTime": "0001-01-01T00:00:00Z"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the Export object modeled in the SDK library (Export.cs) omits the error property entirely:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using System.Text.Json;
using Azure;

namespace Microsoft.PowerBI.Api.Models;

public class Export
{
    public string Id { get; }

    public DateTimeOffset? CreatedDateTime { get; }

    public DateTimeOffset? LastActionDateTime { get; }

    public Guid? ReportId { get; }

    public string ReportName { get; }

    public ExportState? Status { get; }

    public int? PercentComplete { get; }

    public string ResourceLocation { get; }

    public string ResourceFileExtension { get; }

    public DateTimeOffset? ExpirationTime { get; }

    internal Export()
    {
    }

    internal Export(string id, DateTimeOffset? createdDateTime, DateTimeOffset? lastActionDateTime, Guid? reportId, string reportName, ExportState? status, int? percentComplete, string resourceLocation, string resourceFileExtension, DateTimeOffset? expirationTime)
    {
        Id = id;
        CreatedDateTime = createdDateTime;
        LastActionDateTime = lastActionDateTime;
        ReportId = reportId;
        ReportName = reportName;
        Status = status;
        PercentComplete = percentComplete;
        ResourceLocation = resourceLocation;
        ResourceFileExtension = resourceFileExtension;
        ExpirationTime = expirationTime;
    }&lt;/LI-CODE&gt;&lt;P&gt;Anyone else noticed this, or am I missing something here? Previous versions of the SDK (4.x.x) had the error property clearly accessible. Is there another way to get error details when exports fail?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2026 16:28:23 GMT</pubDate>
    <dc:creator>zaxbysdt</dc:creator>
    <dc:date>2026-06-25T16:28:23Z</dc:date>
    <item>
      <title>C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5236863#M65272</link>
      <description>&lt;P&gt;It would appear that the&amp;nbsp;Microsoft.PowerBI.Api 5.1.0 SDK for .NET has removed the Error object from the Export model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a raw response from Postman calling the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/xxx/reports/xxx/exports/xxx" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/xxx/reports/xxx/exports/xxx&lt;/A&gt;&amp;nbsp;endpoint, with my specific GUIDs replaced with xxx. Note the error object with code, message, and detail properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "@odata.context": "https://wabi-us-east2-d-primary-redirect.analysis.windows.net/v1.0/myorg/groups/xxx/$metadata#exports/$entity",
    "id": "xxx",
    "createdDateTime": "2026-06-25T13:18:35.0382337Z",
    "lastActionDateTime": "2026-06-25T13:18:39.7605289Z",
    "reportId": "xxx",
    "reportName": "xxx",
    "status": "Failed",
    "error": {
        "code": "Invalid_Report_Parameters",
        "message": "RootActivityId(xxx): One of the supplied report parameter names does not exist.",
        "details": []
    },
    "percentComplete": 0,
    "expirationTime": "0001-01-01T00:00:00Z"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the Export object modeled in the SDK library (Export.cs) omits the error property entirely:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using System.Text.Json;
using Azure;

namespace Microsoft.PowerBI.Api.Models;

public class Export
{
    public string Id { get; }

    public DateTimeOffset? CreatedDateTime { get; }

    public DateTimeOffset? LastActionDateTime { get; }

    public Guid? ReportId { get; }

    public string ReportName { get; }

    public ExportState? Status { get; }

    public int? PercentComplete { get; }

    public string ResourceLocation { get; }

    public string ResourceFileExtension { get; }

    public DateTimeOffset? ExpirationTime { get; }

    internal Export()
    {
    }

    internal Export(string id, DateTimeOffset? createdDateTime, DateTimeOffset? lastActionDateTime, Guid? reportId, string reportName, ExportState? status, int? percentComplete, string resourceLocation, string resourceFileExtension, DateTimeOffset? expirationTime)
    {
        Id = id;
        CreatedDateTime = createdDateTime;
        LastActionDateTime = lastActionDateTime;
        ReportId = reportId;
        ReportName = reportName;
        Status = status;
        PercentComplete = percentComplete;
        ResourceLocation = resourceLocation;
        ResourceFileExtension = resourceFileExtension;
        ExpirationTime = expirationTime;
    }&lt;/LI-CODE&gt;&lt;P&gt;Anyone else noticed this, or am I missing something here? Previous versions of the SDK (4.x.x) had the error property clearly accessible. Is there another way to get error details when exports fail?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2026 16:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5236863#M65272</guid>
      <dc:creator>zaxbysdt</dc:creator>
      <dc:date>2026-06-25T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5238688#M65275</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1640555"&gt;@zaxbysdt&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for sharing the detailed comparison.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From what you've posted, it appears you're observing a discrepancy between the REST API response and the Microsoft.PowerBI.Api 5.1.0 .NET SDK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your Postman response clearly includes an &lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt; object when the export status is Failed:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"status": "Failed",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"error": {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"code": "...",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message": "...",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"details": []&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, the &lt;/SPAN&gt;&lt;SPAN&gt;Export&lt;/SPAN&gt;&lt;SPAN&gt; model in Microsoft.PowerBI.Api 5.1.0 does not expose an &lt;/SPAN&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;SPAN&gt; property, which means the SDK cannot surface these failure details through its strongly typed model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additionally, the current Microsoft Learn documentation for Get Export To File Status defines the &lt;/SPAN&gt;&lt;SPAN&gt;Export&lt;/SPAN&gt;&lt;SPAN&gt; object without an &lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt; property, even though the REST service appears to return one in failure scenarios. This suggests there is currently a mismatch between the service behavior, the SDK model, and the published documentation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As a workaround, you could:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Call the REST endpoint directly and inspect the raw JSON response.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Deserialize the response yourself instead of relying solely on the SDK model if you need the failure details.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If you're using the SDK, inspect the underlying HTTP response (if available) to capture the additional JSON payload.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Based on the evidence you've provided, this looks like a potential SDK or documentation issue rather than expected behavior.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For Reference:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-export-to-file-status" target="_blank" rel="noopener"&gt;Get Export To File Status (REST API)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Abdul Rafi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 04:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5238688#M65275</guid>
      <dc:creator>v-moharafi-msft</dc:creator>
      <dc:date>2026-06-29T04:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5244589#M65277</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1640555"&gt;@zaxbysdt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good catch - I can repro this on 5.1.0. The Export model is definitely missing the Error property even though the REST API returns it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**Workaround until fixed:**&lt;/P&gt;&lt;P&gt;You can deserialize to a custom class or use `dynamic`/`JObject` to access the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```csharp&lt;/P&gt;&lt;P&gt;var json = await response.Content.ReadAsStringAsync();&lt;/P&gt;&lt;P&gt;var exportWithError = JsonSerializer.Deserialize&amp;lt;ExportWithError&amp;gt;(json);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public class ExportWithError : Export&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; public ExportError Error { get; set; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;public class ExportError&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; public string Code { get; set; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; public string Message { get; set; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; public object[] Details { get; set; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2026 01:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5244589#M65277</guid>
      <dc:creator>Gautam_Kumar01</dc:creator>
      <dc:date>2026-06-28T01:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5250340#M65279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1640555"&gt;@zaxbysdt&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you for reaching out to Microsoft Fabric Community and thanks to&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1648267"&gt;@Gautam_Kumar01&lt;/a&gt;&amp;nbsp; for providing meaningful insights&lt;BR /&gt;&lt;BR /&gt;Just wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Best Regards,&lt;/P&gt;
&lt;P&gt;Abdul Rafi&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 04:36:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5250340#M65279</guid>
      <dc:creator>v-moharafi-msft</dc:creator>
      <dc:date>2026-06-29T04:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5252653#M65282</link>
      <description>&lt;P&gt;Yes I have. Thank you for your response! You've confirmed my suspicions that the missing Error object is an oversight and not user error. Cheers.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 12:54:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5252653#M65282</guid>
      <dc:creator>zaxbysdt</dc:creator>
      <dc:date>2026-06-29T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5252661#M65283</link>
      <description>&lt;P&gt;Sensible workaround suggestion, thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 12:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5252661#M65283</guid>
      <dc:creator>zaxbysdt</dc:creator>
      <dc:date>2026-06-29T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: C# 5.1 API SDK missing error object from exports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5262773#M65291</link>
      <description>&lt;P data-start="73" data-end="197"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1640555"&gt;@zaxbysdt&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Could you please confirm if the issue has been resolved? If not, feel free to reach out if you have any further questions.&lt;/P&gt;
&lt;P data-start="204" data-end="292"&gt;Your update would be helpful for other members who may face a similar issue.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Abdul Rafi&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 04:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/C-5-1-API-SDK-missing-error-object-from-exports/m-p/5262773#M65291</guid>
      <dc:creator>v-moharafi-msft</dc:creator>
      <dc:date>2026-07-02T04:08:22Z</dc:date>
    </item>
  </channel>
</rss>

