Forum Discussion
Power BI report server points to Old database when automatic refresh kicks in
Hi Carson,
Thanks a million for your response back to my query. I tried the exact sequence of steps as mentioned in your solution.
1. Open the file in PBI Desktop. Cleared cache from the Options --> Data Load menu. Cleared Permissions from the data source settings. Saved the file an closed it.
2. Reopened the file, hit refresh and gave the credentials and the report refreshed correctly pointing to the New database. This report refreshes correctly everytime I refresh it in the PBI Desktop. Saved the report
3. Cleared all the existing files from the PBI RS
4. Logged into the PBI RS and Opened Report Server Configuration Manager. Stopped and Started services.
5. Now refresh the PBI RS website and uploaded the latest file as per step 2. When I upload it, it shows the latest data. Then I confirm the DB details and save the successful connection. Then I setup the automatic refresh.
But still as soon as the first automatic refresh/refresh now option kicks in, the report goes back to the old Database again.
I also took a backup and deleted the Encryption key in the Report server Configuration Manager in the same sequence as above. But still the report is pointing to the old database.
One thing to note here is the service name of the old and new oracle database are the same and only the host name has changed. So not sure if this is causing the issue.
Kindly let me know what else I could try in this instance.
Kind Regards,
Mithra
Hi,Mithraveer .Thank you for your reply.
Have you tried to modify the connection string of the report, you mentioned that the oracle database name has not changed, but the hostname has changed, please try to modify the hostname in the connection string
If you can't modify the connection string properly, you can also do it via API.
Change data source connection strings with PowerShell - Power BI | Microsoft Learn
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian
- Mithraveer1 year agoFrequent Visitor
Hi Anonymous,
The connection string is automatically populated from my tnsnames.ora file. When I changed the alias in my connection string, it is working fine in my PBI Desktop, but not in the PBI Report server since the alias name comes into my connection string.
Also the connection string is automatically populated and not allowing me to add the server name in the Report server. Since both my report server and desktop are May 2020 version, I am not sure If I can use the Power shell method, you highlighted above.
Could you please let me know if there is a possibility to edit my tnsnames in such a way that it picks up the host name as well.
Thanks a million for your responses so far. Any more suggestions will be much helpful.
Kind Regards,
Mithra
- Anonymous1 year agoNot applicable
Hi,Mithraveer .Thank you for your reply.
Given that your situation is unique and your repot server version is May 2020. So I have found the following relevant documentation which I hope will help you.
URL:
Change data source connection strings with PowerShell - Power BI Report Server pre-October 2020 - Power BI | Microsoft Learn
The reportserver version is very important, while changing your report server version is generally not recommended.
For your question: does the report server support editing your tnsnames so that it can also pick up hostnames.
The report server itself has a lot of limitations, so it is best to operate according to the official documentation itself to avoid data loss and other accidents. As for the report server's ability to recognize tnsnames, I suggest you contact your team's IT department and ask them to let you know if they are skilled in the use of power shells to avoid accidents.
You can try to modify the connection string of some databases to see if it works.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian- Mithraveer1 year agoFrequent Visitor
Hi Anonymous ,
Thanks a milion for your response,
I checked the link you provided. It has a note stating that this only works for DirectQuery. But whenever I add the Oracle database in my PBI Desktop it only enables the Import options in the Data Connectivity mode and not the DirectQuery as shown below. So will this cause any issues ? Kindly advice.
Kind regards,
Mithra