Forum Discussion
PowerBI semantic model's parameters get removed/not recognized after uploading through API
- Anonymous1 year ago
Hi theflashczech,
Thank you for reaching out in Microsoft Community Forum.
Please follow below steps to resolve the error;
1.When deploying PBIX via PowerShell, parameters may not get promoted to the dataset metadata, causing the API to return an empty list.
2.Manually publish the PBIX once using Power BI Desktop to verify if parameters appear via the API.
3.Migrate to PBIP (Power BI Project) format for better DevOps support, where parameters are fully supported and accessible via REST APIs.
4.Use the GetDataset API to ensure the dataset is properly loaded and not in a partial or invalid state.
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
Are you using PBIP?
Are Rui's example Powershell library?
Are you updating prior to deployment or with API?
Thank you for answering so quick:
1) We're using PBIX files
2) Could you explain further what did you mean by the second point? I've written the PowerShell scripts myself using the MicrosoftPowerBIMgmt PowerShell module and Microsoft's documentation.
3) We're updating through API after deployment.