Forum Discussion

A-E's avatar
A-E
Frequent Visitor
3 years ago

Updating the app data set?

So we have created an app with a data set which lies in workspace nr 1. This feeds in to the data set which exists in the app and the app workspace (which we can call workspace nr 2) through direct query.  We made some changes to the original data set and re-published it so it was overwritten and everything works fine in workspace 1. However data set in workspace 2 (the app) seems to be looking for the old data set in workspace 1 and does not want to refresh. Throwing error messages that it cant find a old table that we removed and so on.

 

So the question is how do we get the app data set to update? I know we can delete the app but then we might have to remake some of the reports in the app since they have been changed in the app workspace and cant be downloaded.

5 Replies

  • Hi , A-E 

    Based on your error message given and issue description, it seems the root cause for the desktop refresh and data loading failure is due to your data source changed and the desktop has no object to point to, which leads to the error message (because the dataset been replaced, the ID will also change) For the solution of this issue, you can consider to to the Power query part of the already developed Power BI report file, Double click on the "Source" step:

    Then you are able to slelect the current dataset again to select the entity and make sure all the transformation steps won't give error message, if there's error message, please use the guiance for them to delete the deleted tables/columns or change the name, and save the PQ transformations again into the .pbix file and the visuals should also work now.

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

    • A-E's avatar
      A-E
      Frequent Visitor

      Hi, v-yueyunzh-msft. This part has already been done. We have change the data source and it work in desktop and in workspace nr1 when its published there. It is only in the app workspace that it won't refresh and update to that data set. Do we have to remake the app if we make changes to the original data set?

      • v-yueyunzh-msft's avatar
        v-yueyunzh-msft
        Community Support

        Hi , A-E 

        Thanks for your quick response! According to your description, the dataset in your workspace No.1 is re-published and it can refresh normally . Instead the dataset in the Workspace No.2 can not refresh which may caused by the data structure is changed in the raw dataset in  workspace No.1.

        If this , you need to download your dataset in your Workspace No.2  which is using DirectQuery mode to your raw dataset in workspace No.1.(If you have this .pbix file , you can just check in it). Then you can re-connect the dataset in the Workspace No.1 to check if it can refresh in your desktop. 

        Before re-publish the dataset to your Workspace No.2, you can first copy your report based on this dataset to a new one:

        The "tool2-copy" is copied from "tool2". After copy the same name with this dataset name , then we can re-publish the dataset to Workspace No.2.
        Then we can refresh the visual to see if get the newest data in the raw dataset which is in your Workspace No.1.

        And if you can get your new data in this dataset , and you also create an app in this workspace , i think you need re-publish the app again to make this app update:

        Publish an app in Power BI - Power BI | Microsoft Learn

         

        Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

         

        Best Regards,

        Aniya Zhang

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly