schema validation failed on create schema
gemu
Posts: 17 Bronze 2
Hi,
I get following error when trying to build a package:
I have 2 schema declarations:
I have not checked in any users under security, only schema's and i'm validating on our own database, not the localDB.
Do you have any idea whats going on and how to resolve?
I get following error when trying to build a package:
VERBOSE: The database update failed
build 27-Apr-2018 14:27:46 Invoke-DlmDatabaseSchemaValidation : Schema validation failed: 40 batches
build 27-Apr-2018 14:27:46 failed. The first error is 'Cannot find the user 'dbo', because it does not
build 27-Apr-2018 14:27:46 exist or you do not have permission.
build 27-Apr-2018 14:27:46 CREATE SCHEMA failed due to previous errors.'.
I have 2 schema declarations:
CREATE SCHEMA [Internal]I'm executing below command (without the masking):
AUTHORIZATION [dbo]
GO
CREATE SCHEMA [Util]
AUTHORIZATION [dbo]
GO
sqlci.ps1 -Verbose Build -scriptsFolder *** -packageId myDB-packageVersion 0.4-master -Options ,-ForceColumnOrder,IgnoreNotForReplication,IgnorePermissions -filter F:/SQLCompareFilters/filter.scpf -temporaryDatabaseServer server\instance -temporaryDatabaseName myDB_validate -temporaryDatabaseUserName myUser -temporaryDatabasePassword ******** -dlmDashboardHost mydash.mydomain.com -dlmDashboardPort 19528 -includeDocsThis is my filter:
</code></div><div><code><
NamedFilter
version
=
"1"
type
=
"SQLCompareFilter"
>
<
FilterName
>Filter created using SQL Source Control</
FilterName
>
<
Filter
version
=
"1"
type
=
"DifferenceFilter"
>
<
FilterCaseSensitive
>False</
FilterCaseSensitive
>
<
Filters
version
=
"1"
>
<
None
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
None
>
<
Assembly
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Assembly
>
<
AsymmetricKey
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
AsymmetricKey
>
<
Certificate
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Certificate
>
<
Contract
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Contract
>
<
DdlTrigger
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
DdlTrigger
>
<
Default
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Default
>
<
ExtendedProperty
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
ExtendedProperty
>
<
EventNotification
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
EventNotification
>
<
FullTextCatalog
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
FullTextCatalog
>
<
FullTextStoplist
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
FullTextStoplist
>
<
Function
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Function
>
<
MessageType
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
MessageType
>
<
PartitionFunction
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
PartitionFunction
>
<
PartitionScheme
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
PartitionScheme
>
<
Queue
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Queue
>
<
Role
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
/>
</
Role
>
<
Route
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Route
>
<
Rule
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Rule
>
<
Schema
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Schema
>
<
SearchPropertyList
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
SearchPropertyList
>
<
SecurityPolicy
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
/>
</
SecurityPolicy
>
<
Sequence
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Sequence
>
<
Service
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Service
>
<
ServiceBinding
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
ServiceBinding
>
<
StoredProcedure
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
StoredProcedure
>
<
SymmetricKey
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
SymmetricKey
>
<
Synonym
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Synonym
>
<
Table
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
Table
>
<
User
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
/>
</
User
>
<
UserDefinedType
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
UserDefinedType
>
<
View
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
View
>
<
XmlSchemaCollection
version
=
"1"
>
<
Include
>True</
Include
>
<
Expression
>TRUE</
Expression
>
</
XmlSchemaCollection
>
</
Filters
>
</
Filter
>
</
NamedFilter
>
</code></div><br>This is my dbo user create statement<br><pre class="CodeBlock"><code>CREATE USER [dbo] FOR LOGIN [dbo_myDB_validate] WITH DEFAULT_SCHEMA=[dbo]<br>GO
I have not checked in any users under security, only schema's and i'm validating on our own database, not the localDB.
Do you have any idea whats going on and how to resolve?