Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
song_gao
Frequent Visitor

Hide or remove Catalog input from a custom Power BI data connector

Is that possible to hide or remove Catalog input from a custom Power BI data connector while still keeping import mode native query function? Our data source allows cross catalog/database queries, thus it's not required to specify a catalog in the connection dialog.

 

I tried removing it from table meta definition, but got the following error:

 

[Expression.Error] The parameter "Catalog" doesn’t exist in the current context. Please check the connector native query implementation.

2 REPLIES 2
song_gao
Frequent Visitor

Hi Dino Tao,

 

Thank you for looking into this question. I am sorry that I did not state this question clearly. The question should be "to hide or remove Catalog input from a custom Power BI data connector while still keeping the native query function."

 

I can remove catalog references from my connector code and I can add tables using Import and DirectQuery modes. However, if I specify the native query, then that error shows up.

 

thanks

Song Gao

Anonymous
Not applicable

Hi @song_gao ,

I have not attempted to do so, but I can offer you some suggestions: 
Look at any other code used in the M script or custom connector for any references to the "Catalog" parameter, and make sure that if you want to remove the parameter from the UI, it will not be used elsewhere in the code without a default or alternative value.
If the "Catalog" parameter is not necessary to establish a connection, you can modify the connector's UI definition to remove or hide this parameter, update the function that defines the parameters for the connection dialog, make sure that "Catalog" is provided with a default value or omit it altogether.

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.