Synapse Troubleshooting¶
When Test connection or an operation fails on a Synapse datastore, the error message points to the layer that failed: the sign-in, the database permissions, or the connection to the SQL pool.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Synapse.
Common Errors¶
| Error | Likely Cause | Fix |
|---|---|---|
Login failed for user |
Incorrect username or password, or the login does not exist | Verify the login exists at the server level with SELECT name FROM sys.sql_logins |
Cannot open database requested by the login |
The user does not have access to the specified database | Ensure a user is mapped to the login in the target database with CREATE USER ... FOR LOGIN |
The SELECT permission was denied on object |
The user lacks SELECT on one or more tables in the schema |
Run GRANT SELECT ON SCHEMA::<schema_name> TO <user> |
CREATE TABLE permission denied in database |
The enrichment user lacks CREATE TABLE permission |
Run GRANT CREATE TABLE TO <user> |
Cannot find the CREDENTIAL '<name>', because it does not exist or you do not have permission |
Serverless SQL pool only: the user cannot use the storage credential behind a view or external table | Run GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::<credential_name> TO <user> in the target database |
File '<path>' cannot be opened because it does not exist or it is used by another process |
Serverless SQL pool only: the user lacks bulk read permission, or the storage credential cannot reach the storage account | Grant ADMINISTER DATABASE BULK OPERATIONS to the user, and verify the credential's storage access (Managed Identity role or SAS token permissions) |
Cannot find the object because it does not exist or you do not have permissions |
The user lacks VIEW DEFINITION on the schema |
Run GRANT VIEW DEFINITION ON SCHEMA::<schema_name> TO <user> |
Login failed for user '<token-identified principal>' |
The service principal authenticated with Microsoft Entra ID, but no database user exists for it | Run CREATE USER [<app_display_name>] FROM EXTERNAL PROVIDER in the target database |
AADSTS7000215: Invalid client secret provided |
The Client Secret is wrong or expired, or the Secret ID was pasted instead of the secret Value | Create a new client secret in the Azure Portal and update the connection with its Value |
AADSTS700016: Application ... was not found in the directory |
The Client ID or Tenant ID does not match the application registration | Verify both values on the application's Overview page in the Azure Portal |
Detailed Notes¶
Authentication Errors¶
The error Login failed for user indicates that the credentials are incorrect or the login does not exist at the server level.
Common causes:
- Incorrect password: the password does not match the one set for the login.
- Login does not exist: the login was never created at the server level with
CREATE LOGIN. - User not mapped: the login exists but no user is mapped to it in the target database.
Note
With Username & Password authentication, Synapse uses the same model as SQL Server: a login must exist at the server level, and a corresponding user must be created in each target database. With Service Principal authentication, there is no SQL login; the application authenticates with Microsoft Entra ID, and a database user created with FROM EXTERNAL PROVIDER must exist in each target database.
Permission Errors¶
The error The SELECT permission was denied on object means the user authenticated successfully but lacks the necessary grants on the target schema.
Common causes:
- Missing
SELECT ON SCHEMA: the user does not haveSELECTon the target schema. - Wrong schema: the user has permissions on
dbobut the target tables are in a different schema. - Missing
VIEW DEFINITION: the user cannot see object metadata needed for schema discovery.
Connection Errors¶
The error Cannot open database requested by the login means the user does not have access to the specified database.
Common causes:
- No user in database: the login exists but
CREATE USER ... FOR LOGINwas not run in the target database. - Database does not exist: the database name in the connection form is incorrect.
- Synapse pool paused: the dedicated SQL pool is paused and needs to be resumed.