How can we help you today? How can we help you today?
tee
We have only 1 build agent and all of the release agents are the same version. I don't imagine this is related to the agents since the 1st release executes successfully.  Cause of the release failure -  error message:  System.Management.Automation.CmdletInvocationException: An unhandled error occurred: RedGate.SQLCompare.Engine.Registration.ReadFromSnapshot.UnsupportedSnapshotException: The database snapshot was saved by a newer version of SQL Compare  The scenario: The 1st release executes the entire build, making changes on the target server as expected, (no errors), and installs the __MigrationLog] and [__SchemaSnapshot] tables, including populating the [__SchemaSnapshot] table with a record (records GUID matches in all target databases) Subsequent releases fail, citing the above error  [__SchemaSnapshot] table in the target database(s) There are no records in either the development or shadow database's [__SchemaSnapshot]'s table  In summary, the error message and failure only occur in subsequent releases (never in the first). Since every successful release inserts a record into the [__SchemaSnapshot] table, I attempted to resolve the issue by adding the truncate statement to the the post - deployment script. I also tried adding to the pre-deployment script. Neither method removes the record(s).  In order for the release to execute (except for the 1st release) I must manually delete the [__SchemaSnapshot] record from each targeted database. Question: How can I automate the truncation of the [__SchemaSnapshot] table, on target databases, from a script within project? / comments
We have only 1 build agent and all of the release agents are the same version. I don't imagine this is related to the agents since the 1st release executes successfully. Cause of the release failur...
0 votes