cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pedrojimenez314
New Member

Can’t display this visual. The R process ended unexpectedly.

I`ve developed some visuals using R libraries like ggplot2.

 

First time I opened the visuals I always obtain an error which says "Can’t display this visual. The R process ended unexpectedly. Please try again". 

 

When I refresh the graphic, I always obtain the right answer with the right graphic. 

 

The question is that I have always clicked twice to get the right graphic, because first time always gives me the error.

 

Please. Can anyone help me?. I have verified that all the R libraries are correctly installed.

 

Thanks you.

 

 

9 REPLIES 9
Microsoft v-huizhn-msft
Microsoft

Re: Can’t display this visual. The R process ended unexpectedly.

Hi @pedrojimenez314,

Actually, I can not reproduce your scenario. You create R visual follow this article, right? If it is, what's mean of "First time I opened the visuals"? You opened the .pbix file and you get the error? How did you refresh it? And Do you try create other visual and still have the issue?

Best Regards,
Angelia

pedrojimenez314
New Member

Re: Can’t display this visual. The R process ended unexpectedly.

Yes, I generate the R graphics as it is said.

 

The situation is this.

 

1.- The first I open the R graphic I always obtain the error that says in my previous note.

2.- When I refresh the graphic I always obtain the right results.

 

It is a very strange situation.

 

The first message I obtain is: 

"Failed to retrieve error code string from System ->317

Make sure R is properly installed on your machine."

 

But R is installed OK in my machine.

 

If I refresh, and I get the right chart, and when I try to generate a new graphic with other filter the new message says:

 

"Can’t display this visual. The R process ended unexpectedly. Please try again."

 

I can not find any situation like this in all the community. Please Can anyone help me?

 

Thanks.

Microsoft v-huizhn-msft
Microsoft

Re: Can’t display this visual. The R process ended unexpectedly.

Hi @pedrojimenez314,

At first, when you create a empty R visual as the screenshot shown, you get the error message: "Failed to retrieve error code string from System ->317? 

1.PNG

After install R in your local machine, please confirm to configure it well in Power BI desktop followed by the steps here

Or you create R visual before, now you just open the .pbix file, it returns the error message? Becasue you said you get the right chart after refresh, you need to type the R script to create a R chart, could you please share a screenshot here? I can not reproduce your scenario.

Best Regards,
Angelia

pedrojimenez314
New Member

Re: Can’t display this visual. The R process ended unexpectedly.

first.PNGfirst situationsecond.PNGsecond sitiuation after refresh

Microsoft v-huizhn-msft
Microsoft

Re: Can’t display this visual. The R process ended unexpectedly.

Hi @pedrojimenez314,

Have you resolved your issue? Please clear all your cache(file->option and settings->Options) of Power Bi, and check if the issue disappears.

1.PNG

Best Regards,
Angelia

pedrojimenez314
New Member

Re: Can’t display this visual. The R process ended unexpectedly.

I have tested it, but no solution.

 

I do not know if I have some special wrong installed in my machine.

 

Thanks.

 

Pedro.

Anonymous
Not applicable

Re: Can’t display this visual. The R process ended unexpectedly.

BI Error.png 

 

Hi,

 

I have the same problem at the moment.

Is there any solution to this problem?

I am using R version 3.4.2 (not sure if this is the problem).

I got this error before any packages where installed.

I have unistalled R and power BI and then reinstalled the error remains the same.

I have also tried other plot still the same.

 

Please help.

 

Stephan

 

 

Highlighted
Microsoft smadati
Microsoft

Re: Can’t display this visual. The python process ended unexpectedly.

I get simlar error when trying to create a visual using python in power bi. 

alexhuhn2019
Frequent Visitor

Re: Can’t display this visual. The python process ended unexpectedly.

I too have similar issues when I make python visuals

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors