Troubleshoot your Connection
As a Preset Admin, one of your first steps will be connecting a database to Preset so that team members can easily access data and build visualizations. Although we have made the database connection process as intuitive as possible, there are times when an error or misconfiguration may appear.
To help facilitate your success with Preset, we encourage you to read through the best practices and common connection scenarios described below. If you're still encountering issues when connecting your database to Preset, please let us know via a Support Ticket so that we can get you up & running as quickly as possible!
Check #1: Database running?
Confirm that the database is publicly addressable and is currently up and running.
Check #2: Database supported?
Ensure that your database is supported by Preset. You can view a list of supported databases here.
Check #3: Have all connection details?
Preset can connect to a wide variety of databases, many of which require different types of information in order to make a connection. For example, Google Sheets requires a URL with specific sharing settings, Amazon Redshift requires a host and port, and nearly all databases can be connected to Preset via a SQLAlchemy URI.
Before trying to connect, we recommend that you take some time to read through the relevant connection walkthrough article in order to familiarize yourself with database-specific connection details.
Connection Walkthrough Articles
If you'd like to view the SQLAlchemy URI connection strings for all supported databases, please view the Connection Strings table for detailed information.
A timeout error may occur if you have not properly configured your firewall/network. Preset Cloud currently runs on four regions with the IPs listed below, and those need to be allowlisted so Preset can access your data.
Before starting, please take a moment to allowlist the IPs below based on the region that you're deployed in.
Access is Denied
Is the username and password correct? Verify that the login credentials are accurate.
You may be required to enter a username and password when connecting your database to Preset. When entering connection details, please take note of the required Username and Password fields, such as the ones below from the PostgreSQL → Preset connection process:
Alternatively, the user credentials may be included in a SQLAlchemy URI string, such as this one used for a Dremio → Preset connection:
Database Not Found or Cannot Connect
If the database cannot be found, then your database or account name may be incorrect.
Verify that your host and port names are correct during configuration.
Always take note of the Host, Port, and Database Name (or Account) fields, such as the ones below used when configuring a MySQL → Preset connection.
Tip: Dynamic Form Validation
- Host field: Note that Preset dynamically verifies the name entered in the Host field to ensure it can be resolved, so please wait a moment after entering the host name to ensure name resolution.
- Port field: Likewise, Preset validates the specified port number to ensure that it can be accessed. After entering a value, please wait a moment while Preset validates the entry.
Remember that some databases require additional information in order to connect, so pay attention to required fields while ensuring accuracy. For example, connections to a Snowflake database require Warehouse and Role fields.
A note on authentication...
Some databases require extra steps in order to gather all of the required authentication details necessary to create a connection.
Remember, if you don't find the answers you need in one of our walkthrough articles, please submit a Support Ticket for assistance.
There are a number of query errors that can occur due to a misalignment between your query and the database.
Some examples include:
- Bad Reference: A query can fail because it is referencing a column and/or table that no longer exists in the datasource. You can either modify the query accordingly or remove the column from the query.
- Unsubmitted Query: A query will not even be submitted to the database if it is missing required parameters. You should define all the parameters referenced in the query in a valid JSON document.
Preset Issue Codes
If there is an issue when connecting your database, you will more than likely receive an issue code. Please feel free to view a list of all Preset Issue Codes for your reference — this information may also come in handy in the event that you need to discuss a connection issue with Preset Support.