Forum Discussion
R visual connecting to MySQL database
Hello again @zoloturu
After carefully re-reading those articles and doing some tests I believe there are 2 things that migh the source of my problem:
1) from the link "https://docs.microsoft.com/en-us/power-bi/service-r-packages-support " ->"For security and privacy reasons, R packages that provide client-server queries over the World-Wide Web (such as RgoogleMaps) in the service, are not supported. Networking is blocked for such attempts. See the following section for a list of supported and unsupported R packages. "
However, the package that I use to connect to the DB is supported by Service. And the package was basically made to connect to databases, so it would be weird to support it but to not allow most of the stuff to work.
2) from the link "https://docs.microsoft.com/en-us/power-bi/visuals/service-r-visuals" -> "This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as accessing the Internet, or accessing to other resources that are not required to create the R visual."
This might be another problem but they don't explain what the consider as not required. My connection is required but maybe they don't think it is.
After testing for a bit I managed to put all my code, including dbconnection and fetching of the query, inside a barplot function. So i don't believe that much that this is the problem as it would be super weird that he would consider something as not required for the visual when it is inside the funcion that creates the visual
Overall, I still don't know if it is a code problem, database problem or power BI Service problem (like the limitations above)
Best regards,
Pedro Pereira
Hello Pedro-Pereira,
Sometimes limitations are not listed in the description. It might be that they missed something. I had such experience when worked with Premium capacity and found weird not documented limits. I recommend you to go to the page https://powerbi.microsoft.com/en-us/support/ and create a support ticket using button downside. Then you will receive a help from MS support team. You can speed up this process mentioning this thread to a support engineer.
Regards,
Ruslan
-------------------------------------------------------------------
Did I answer your question? Mark my post as a solution!