Currently, there is no way in Power BI to disable this prompt. To make things worse, neither Power BI Service nor Power BI Desktop have a feature to get rid of the custom visual once it’s added to a Power BI Desktop file.
Solution: Here are the manual steps are followed to get rid of custom visuals in Power BI Desktop file for good:
- Copy the Power BI Desktop (*.pbix) file. Rename the file to have a zip extension, e.g. from Adventure Works.pbix to Adventure Works.pbix.zip.
- Unzip the file.
- In the uncompressed folder where you unzip the file content, navigate to the Report folder, and open the Layout file in your favorite text editor.
- At the top of the file content, find a resourcePackage string that includes the visual name (you could search for the name of the visual to locate it). For example, the resourcePackage element might look like this for the Sparkline visual:
- Carefully, delete this entire string but make sure that you don’t end up with two commas or you miss a comma after the deletion.
- Zip the entire content again. For some obscure reason, besides getting rid of the visual, in my case compressing the file reduce the PBI Desktop file size almost twice! This reduces the time to upload the visual to Power BI Service.
- Rename the file back to the original file name without the zip extension.
Now when you deploy the PBI Desktop file to Power BI and view its reports, you shouldn’t get prompted anymore.