Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

schedule refresh failing

I have a powerBI report, in which I am using power query to do data cleaning. I fetch the data from web in a json format and often times the json is nested. I have written a query which looks for any nested json and then expand it's fields into columns. Once this expansion is done, I have another query step which checks for any empty columns in the table and removes them.

 

These query steps works fine on my powerBI desktop, but when i push the report to powerBI service and schedule refresh, the refresh works fine the first time but on it's second planned refresh it fails saying some columns are missing.

 

I am not sure, why it is failing in powerBI service when the same steps are working fine in powerBI desktop?

6 Replies

  • there could be a version mismatch between the mashup engines on desktop and service (and gateway!), or it can be that some of your transforms are not supported on the service. For example Table.ExpandTableColumns and Table.Combine do the same thing on desktop but behave very differently on service. Try rewriting your power query .

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Anonymous,

    It sounds like you have some query steps with dynamic check fields and remove empty fields based on current value. I think refresh issues should more be related to data structure changes.
    Power query steps will cache previous data structure if these data structure(field account, name, type) changes that not match with cached one.  Query steps who invoked previous fields will be failed due to 'key not match' issues. (query table structure change will affect the generated data mode table and related dax formula and fields)

    I'd like to suggest you keep your tables with a static data structure to prevent these type of refresh issues.

    Regards,

    Xiaoxin Sheng

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,
      Does the catching happen on powerBI service as well? For example, I refresh the data today, would the power query be comparing the result of next refresh with the previously stored data? Is there a way to disable this catching?

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        HI Anonymous,

        Nope, refresh operation need to execute on the same data structure records.
        BTW, these data structures (data type, column name, fields amount..) will keep the first time your query table processed.

        These fields names who invoked in followings steps not auto changes if you update on previous steps.  You need to manually fix them to keep query steps running correctly.

        Regards,

        Xiaoxin Sheng