Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Fabric Rest API Create Report Report.Json Error

Hi  I have extracted a repor definition for an existing simple report and stored it in a lakehouse table by part both encoded and decoded However when I try and use this to recreate the report in a...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous,

    Thanks for reaching out to the Microsoft fabric community forum.

     

    It looks like that the issue lies in the incorrect JSON formatting within the "reportJson" string. Specifically, the keys and values inside the config and filters fields are not properly escaped, which is causing the parsing error. The reportJson string contains extra spaces after the keys This could be breaking the JSON parser. Also there can be

    Encoding/Decoding Issues. If the JSON is stored in an encoded format (e.g., Base64), ensure it is properly decoded before use. If it is already in plain text, check for any double encoding or unintended escape characters.

     

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Best Regards,
    Hammad.
    Community Support Team

     

    If this post helps then please mark it as a solution, so that other members find it more quickly.

    Thank you.