diff --git a/extensions/dacpac/src/wizard/api/dacFxConfigPage.ts b/extensions/dacpac/src/wizard/api/dacFxConfigPage.ts index 8fe5efc220a4..2e299177489b 100644 --- a/extensions/dacpac/src/wizard/api/dacFxConfigPage.ts +++ b/extensions/dacpac/src/wizard/api/dacFxConfigPage.ts @@ -132,7 +132,14 @@ export abstract class DacFxConfigPage extends BasePage { return false; } - let values = await this.getDatabaseValues(); + let values: string[]; + try { + values = await this.getDatabaseValues(); + } catch (e) { + // if the user doesn't have access to master, just set the database to the one the current connection is to + values = [this.model.server.databaseName]; + console.warn(e); + } // only update values and regenerate filepath if this is the first time and database isn't set yet if (this.model.database !== values[0]) {