cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TorbenM
Frequent Visitor

Execution stuck in Constructor

Hello all, 

 

I´m trying to port my Custom Visual to the new Developer Plattform. After multiple changes I´m able to compile and start the visual. But now, when I want to put Data into the visual, it just shows nothing. After some debugging I found out, that the Visual seems to be stuck in the constructor method, as the update method is never called. 

 

The code in the constuctor looks like this 

constructor(options: powerbi.extensibility.visual.VisualConstructorOptions) {
            this.selectionManager = options.host.createSelectionManager();
            this.options = options;
            // Create main DIV used for the table
            this.root = d3.select(options.element/*.get(0)*/)
                .append('div')
                .classed(FormattedColumnsVisual.VisualClassName, true);
        }

the two properties selectionManager and root are defined like this:

private root: D3.Selection;
private selectionManager: ISelectionManager;

So, the visual executes up to the this.root = .... call. Here it seems to be stuck. I don´t get an error Message, but every line of code after this, just doesn´t get executed.

 

Maybe you have an idea, what could cause this behavior.

 

Thanks for your help!  

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@TorbenM,

 

You'll need to confirm that there is no error message when you run the visual server by typing pbiviz start in terminal / command line from the root of your visual project. For tips about debugging your custom visual, see the debugging guide.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors