Hello Ben or,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having 'the TCP/IP connection to the host pbipwus9-westus.pbidedicated.windows.net<some id> (redirected from <same some id>.datawarehouse.fabric.microsoft.com), port 1433 has failed. Error:' while working in your fabric database.
To resolve the issue:
This links will provide you a detailed steps to resolve it.
- https://kb.sos-berlin.com/display/PKB/How+to+solve+SQLServerException%3A+The+TCP+IP+connection+to+the+host+XXX%2C+port+1433+has+failed
- https://community.fabric.microsoft.com/t5/Developer/jdbc-connector-receives-TCP-IP-error-against-the-warehouse/m-p/4128236
To troubleshoot further, you can take a few additional steps: First, check the token validity by using a tool like JWT.io to decode your token and verify its claims and expiration. Next, ensure that your local machine or network firewall is not blocking outbound connections to the SQL Server. Finally, make sure your JDBC connection string is correctly formatted, which should look something like this: String connectionUrl = "jdbc:sqlserver://<SQL connection string>;encrypt=true;trustServerCertificate=true;accessToken=<your_access_token>";
.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.