Forum Discussion
Unable to Load Model error message
- 5 years ago
Hi, zz99b0
In fact, my previous answer focused on the issue of permissions, and I also reminded you to check the permissions of the workspace and datasets. But it seems that you didn’t care about this, and we ended up going in another direction. But I'm glad it was resolved in the end.
Generally speaking, if it is a simple report sharing, the permissions of the dataset are set by yourself when sharing, but if the user is granted access to the workspace, the permissions of the dataset will be automatically defined according to the access of the workspace.
If you don’t want users to modify or create your reports, you can change user access to 'viewer'.Different datset permission:
Workspace role capability:
Reference: Roles in the new workspaces
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, zz99b0
I think if you can’t open the report with a pro account, the problem is not here. Is the report on premium capacity or shared capacity?
In addition, Your description is for pbi service, but the post is posted on the pbi report server forum, so I want to confirm whether the information is wrong.
According to your last reply, it is not a license issue, so it should be a permission issue.
If the problem occurs in the pbi service, then you need to confirm whether to add a user in the workspace access, and what is the user's authority to the dataset. Whether the gateway is normally connected in the service and the report can be refreshed.
The data source also needs to be considered, What type of data source and what connection mode you are using? and whether you can assign user permissions in the data source?
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks again for responding so quickly.
1. The report is not Premium. It is on a Shared Workspace which is part of my SP 365 site.
2. All users can get to the report, but most receive the Unable to Load error. Some can successfully access the report.
3. My data is sitting on my OneDrive Business account and is a set of XML files.
4. I have a On Premise gateway running that shows it is ok.
5. All the users have direct access to the report and data as READ ONLY.
6. I have my data do a refresh automatically every Friday.
A couple of other notes. I have a parameter set to identify if the report is Development or Production data. If development, then the data is mapped to my laptop, otherwise it is mapped to OneDrive for Business. Since I have a slow internet connection, I needed an easy way to change the data source location. When I published the report the parameter was set for Production and I confirmed it as per the screenshot as well. My assumption (could be wrong) is that if the report data is not mapped to my laptop, then it should not access it.
I'd very much like to keep the parameter so that I don't have to remap data continually.
Last night when I reposted data to OneDrive for Business and refreshed the report, it did not pick up the new data sources. However, when I re-published the entire report it showed the updated data.
Did I answer all your questions or are there specific screenshots that would help?
Jennifer
- v-janeyg-msft5 years agoCommunity Support
Hi, zz99b0
Onedrive refresh is special, in short, there may be a delay:
It can take Power BI up to 60 minutes to refresh a dataset, even once the sync has completed on your local machine and after you've used Refresh now in the Power BI service.
So you can wait for a while to see if the refresh is successful.
Reference:Data refresh in Power BI - Power BI | Microsoft Docs
Considering that your data is stored on onedrive, I think you also need to confirm whether all users can access it. If they can’t access the underlying data source, it will be useless even if they have permission on powerbi.
Are you calling the api through the Is_Prod parameter to see if it is published to the service? This looks great, if you can go well.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- zz99b05 years agoFrequent Visitor
Thanks again for responding.
I granted my users access to OneDrive as suggested. It did not have an impact. I verified with one user that he could indeed access and open one of my files.
For the parameter, I created the parameter under "Transform Data". I use the Gateway option to ensure that it is set to "TRUE". I also tried reloading my report through the desktop application with it set to "TRUE" and republish the report. It did not impact the "Unable to Load Model" error.
Here is how my Advanced Editor looks for my inbound data:
I thought I had found the issues, as on several files I needed to change the transformation. When I reviewed all the code, I noticed that it had changed and it appeared that the code would always look at my files on my PC. I changed the code back and republished the report, but it did not impact the end user.
I have verified that the Gateway is using the correct parameter and I verified that the dataset lineage is correct. All the files are coming from my OneDirve account.
i mentioned before ,the ability to flip between my laptop for data and OneDrive is important, in that my home office has a fair user policy on Internet usage. So, I would prefer to develop and test using my local data, then publish using OneDrive data. I have been publishing with a parameter FALSE, then using the gateway to change the parameter to TRUE. I then perform a data refresh.
If there is another way to accomplish my goal without needed to change all my data feeds, I'm happy to try a different technique, if this is what is causing the issue.
In the gateway, I have mapping created for both my personal laptop and OneDrive.
Jennifer
- v-janeyg-msft5 years agoCommunity Support
Hi, zz99b0
It's so strange. If you say that some users can open the report normally, then it actually shows that your report should be no problem,otherwise no one can open. Can you show me the gateway connection information and data source refresh information (shadow privacy) in PBI Service? Are you using a web connection to connect to the data? Is your user an internal user or an external user? Try to let the user log in in private mode(browser). And I need more information to judge.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.