Hi,
I'm trying to execute a simple SQL file and always the task is throwing the following error:
Invalid deployment action: Script. For SQL query operations, deployment actions should be set to valuePublish.Check out how to troubleshoot failures at https://aka.ms/sqlazuredeployreadme#troubleshooting-
However, as you can see on the attachment, on there's no option available to set as action as 'Publish'.
Also I've tried to execute command, but the agent fails and throw the same error.
On my case, is not option to execute as dacpac extension.
It is expected behavior and we have consciously added this error message in order to handle back-ward compatibility.
Example :
At Time A
At Time B
In order to prevent above issue, we added error check as we assume failure with right error message is better than wrong deployment.
In order to fix your above issue
DacpacpublishSQL script file.As this will solve your issue, so closing this issue. If you have further any question or doubts feel free to reopen the issue.
Hi Ajay,
I've applied the changes as you mentioned, like deploy as DACPAC within Publish option and save it. Later, I've changed the to SQL Script file.
So ... the workardound is working!
Thanks,
Marcio Bueno
I ran into this today and it's incredibly frustrating. This shouldn't be closed, but should be fixed!!
@nadesu / @chshrikh - Can you review the feedback and take this further.
Most helpful comment
I ran into this today and it's incredibly frustrating. This shouldn't be closed, but should be fixed!!