The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi, I need to publish a report I created, but every time I click on "Publish to web" I get the following error message:
Unable to load the model
Any ideas on how to solve this, I have a second report connected to the same dataset and the same error appears. Thanks in advance!
Hi @Ninabob5 ,
One possible cause is that your Power BI admin has not allowed you to create embed codes for publishing to web. You can check the Publish to web tenant settings in the admin portal and see if you have the permission to publish to web. If you don't have access to the admin portal, you may need to contact your Power BI admin and ask them to enable this feature for you.
Another possible cause is that your report relies on row-level security (RLS) to secure data. Publish to web is not supported for reports that use RLS. You can check if your report has RLS applied by opening it in Power BI Desktop and selecting Modeling > Manage roles. If you see any roles defined, then your report has RLS. You can either remove the RLS from your report or use a different way to share it, such as Embed or Embed in SharePoint Online.
A third possible cause is that your report has a large or complex model that takes too long to load. Publish to web has some limitations on the size and complexity of the models that can be embedded. You can try to optimize your model by reducing the number of columns, tables, and measures, or by applying filters or aggregations. You can also use Power BI Premium or Power BI Embedded to get higher capacity and performance for your reports.
If that doesn't help, try:
1.Clear your browser cache and cookies and try again.
2.Try using a different browser or device to publish the report.
3.Check if there are any issues with the dataset or the report itself. You can try republishing the report after updating the dataset and metadata in Power BI.
You can refer to the following posts that may be helpful to you:
Publish to web from Power BI - Power BI | Microsoft Learn
Unable to publish to web - Microsoft Fabric Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.