Invalid column name 'remote_data_archive_migration_state'
adambaldwin
Posts: 7
During our database deployments, we are receiving an error on this column. The error we're seeing in Octopus Deploy is:
New-DatabaseRelease : SQLCompare.exe terminated with the exit code 126: Failed due to a SQL Server error.
SQLCompare.exe produced this error output:
Error: Error occurred connecting to database: Invalid column name
'remote_data_archive_migration_state'.
At E:OctopusWork20160303193926-2787Script.ps1:61 char:12
+ $release = New-DatabaseRelease -Target $targetDB `
We have followed the resolution mentioned in this post: viewtopic.php?t=79342&p=140875
We have performed updates but are still seeing the same error when we are attempting to deploy to our production environment. We are using Azure, Octopus is version 3.2.0-beta0001 and the latest version of DLM automation tools.
Thanks
New-DatabaseRelease : SQLCompare.exe terminated with the exit code 126: Failed due to a SQL Server error.
SQLCompare.exe produced this error output:
Error: Error occurred connecting to database: Invalid column name
'remote_data_archive_migration_state'.
At E:OctopusWork20160303193926-2787Script.ps1:61 char:12
+ $release = New-DatabaseRelease -Target $targetDB `
We have followed the resolution mentioned in this post: viewtopic.php?t=79342&p=140875
We have performed updates but are still seeing the same error when we are attempting to deploy to our production environment. We are using Azure, Octopus is version 3.2.0-beta0001 and the latest version of DLM automation tools.
Thanks
Comments
Thank you for your forum post and sorry that you have encountered a problem.
Would you please confirm the full version of SQL Compare you are using?
The problem is due to an update that Microsoft have introduced to SQL Azure. Our development team are working on a fix for the issue, hence the request to see what version of SQL Compare you are using.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Thanks,
-Adam
1.3.20.463 is the latest version of the automation suite and contains SQL Release 1.3.10.1300.
The Octopus log should say which version of SQL Release was used in the deployment, e.g. on my machine it prints "New-DatabaseRelease, SQL Release 1.3.10.1300, Copyright © Red Gate Software Ltd 2014-2016". Can you check if this line is present and which version number it is reporting?
Robin
Test Engineer
DLM Automation
You totally found what was going on. Octopus Deploy was grabbing from one of our older agents that is almost retired and I wasn't catching that because I was looking at TeamCity logs...
Thanks for all your help!