Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have tried reading many documents from Microsoft, blogs from people, and posts in this forum. I feel I am missing somethign simple, and turning too many hairs gray.
I have SAP B1 Client on my workstation, I have PowerBI Desktop on my workstation. I have HDBODBC installed and PowerBi successfully sees the table structure and can make reports.
I installed the On Premise Data Gateway on my workstation and it says successfull. I go to apps.powerbi.com and while the portal looks a bit different than online help, I am able to get the the Gateway clusters, I see the one I made on my workstation and click on the add new data source.
I give it a custom name and choose SAP HANA as the source type. From here I have tried most every combination of the below settings. In the server, I have tried the the IP of the server, I have tried the name of the server, tried it with port# after too. In the authentication method, I have tried Basic and I have tried Windows. I have tried my domain credentials, my SAP credentials, I have tried it with and without Validate Server Certificate.
Everytime, I get a cogwheel turning at the top of the page that will spin, overnight, few days, until I click something else on the page. I get the following:
Should I not choose SAP Hana? I did try a couple times with ODBC but I didn't know the connector string. Is there a semantic way I'm not typing in correctly?
Thanks in advance.
Solved! Go to Solution.
"I installed the On Premise Data Gateway on my workstation" - Please don't do that. Gateways should be installed on dedicated machines that are online 24x7
As for the connection - You must use exactly the same connection type as you specified on the desktop. So if you use ODBC on the desktop with a System DSN then you need to set up the exact same System DSN on the gateway cluster members. Then choose ODBC and specify
dsn=<your data source name>
as the server address.
You can try to use DSN-less connections but be aware that there is a size limit on the connection string that will likely prevent you from going dsn-less.
The connection strings must match exactly betwee Desktop and gateway, otherwise the gateway will not be selectable. This includes the casing.
You also need to have gateway connections defined for all other on-premise data sources in your dataset. Only if all of them are defined in the gateway will you be able to select the gateway.
Hi @sareed23 ,
You would need to install the SAP HANA ODBC driver on the machines that have Power BI Desktop and Power BI gateway installed.
To connect to SAP hana in Power BI Desktop, you can follow the guide in this article:https://docs.microsoft.com/en-us/power-bi/desktop-sap-hana.
To add SAP hana data source within Power BI gateway, please follow the instructions in this article:https://docs.microsoft.com/en-us/power-bi/service-gateway-enterprise-manage-sap.
Best Regards
Lucien
These are the steps I have followed and I only get a spinning circle in adding the Gateway data source. It is added to PowerBI itself successfully.
"I installed the On Premise Data Gateway on my workstation" - Please don't do that. Gateways should be installed on dedicated machines that are online 24x7
As for the connection - You must use exactly the same connection type as you specified on the desktop. So if you use ODBC on the desktop with a System DSN then you need to set up the exact same System DSN on the gateway cluster members. Then choose ODBC and specify
dsn=<your data source name>
as the server address.
You can try to use DSN-less connections but be aware that there is a size limit on the connection string that will likely prevent you from going dsn-less.
I understand about not wanting it on a workstation. My initial hope was to just ttest connecting out and then setting up properly once I understood the process better.
As far as the next portion, I had installed the Hana ODBC driver and it created a listing in the ODBC for HDBODBC in the drivers tab. That is what I have been using within PowerBI successfully. I do not have any reference under User DSN nor System DSN currently. When I try to add a System DSN source using the HDBODBC driver, I fail every time at test connection. Most often it is saying it isn't recognizing the database name, which I copied directly from the SAP B1 interface. I have tried using the name of the server found in network dns, i tried using the name of the server found in the SAP interface, tried using the IP. But am not able to get a DSN added.
Hi @sareed23 ,
I am facing a similar issue.
I can successfully connect to SAP HANA database in Power BI desktop.
I have installed the SAP HANA client on the Gateway server.
However, when I navigate to the User DSN and System DSN, it is totally blank.
When I try to add User DSN or System DSN, using the HDBODBC driver, I use exactly the same server and port that I used in Power BI Desktop.
However, the connection is not successful and I am getting an error that "No connection could be made because the target machine actively refused it".
Did you experience this error in your case?
Thanks in advance!
KAATA, I do not recall that specific error message, sorry. I would make sure you are adding into the SystemDNS and ensure the port is correct. I will go back thru my notes to see if anything else stood out. Also, I guess to make sure you are using the correct ODBC of 64bit vs 32bit to match your software.
Thanks @sareed23,
I suspect it is the firewall.
Thanks for taking the time to check and respond!
I did get a message of connection successful in the gateway cluster now. However, if I publish a report from PowerBi Desktop to My Workspace at app.powerbi.com, I get an error message "There is no gateway to access the data source "
I now have the gateway saying successful, I am seeing the dataset in my app.powerbi, i see in settings for the dataset it shows connected to gateway and says I can schedule refresh now too.
I went back through from scratch and followed as you described with a pedantic eye to detail. All seems to be working better. I am goign to test the refresh schedule and sharing with others next but I think you answered what I needed. Thank you.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.