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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jananigurusamy
New Member

Adding custom visual without data mapping

React custom visual is a chatbot. It doesn't require data mapping. But without datamapping, visual is nto rendered. Mapping the data shows in the visual as highlighted. Need help to resolve this.

jananigurusamy_0-1775127082824.png

 

4 REPLIES 4
dm-p
Super User
Super User

Hi @jananigurusamy,

 

You can set up your visual as described in the Landing Page doc to allow it to function without a data view mapping.

 

Note that while this will allow you to set properties via the pane, if you intend to use the persistProperties API from your code to manage visual settings, this will not work and is a known issue with that API that MS currently does not intend to fix.

 

Regards,

 

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




v-tejrama
Community Support
Community Support

Hi @jananigurusamy ,

 

This behavior is typical for Power BI custom visuals. The lifecycle of the visual is managed through data binding, meaning it is fully initialized only when Power BI provides a DataView. If no fields are mapped, Power BI does not deliver a DataView, resulting in the update method either not being triggered or receiving no usable data. Consequently, nothing is rendered, even if your React component does not require data.

When a field such as Quantity is mapped, Power BI generates a DataView and calls the update method with valid data, which enables the visual to be displayed. While it might appear that the visual relies on the field, it actually serves as the trigger for rendering.

To resolve this, it is recommended to configure your visual to support empty data views within the capabilities settings. This approach ensures Power BI invokes the visual even when no fields are mapped. Additionally, your update logic should account for the possibility that dataViews may not always contain data, and your React component should render regardless of data presence. Some developers implement a minimal or dummy data role to guarantee consistent triggering, but the primary goal is to make the visual robust when handling an empty DataView.

By applying these modifications, your chatbot visual will render reliably without requiring users to map fields.

Thank you.

Hi @jananigurusamy ,

 

I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.

Thank you.

Hi @jananigurusamy ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Thank you.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.