-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlPackage Import fails with timeout when enabling triggers #93
Comments
DacFx does not support importing into elastic pools, as mentioned in the limitations for bacpacs. The workaround for importing into an elastic pool is to create a single database for DacFx operations, then move the database into an elastic pool. Can you try doing this and see if the enabling triggers is still timing out? There are also a couple parameters that might help with the timeout error: /p:CommandTimeout and /p: LongRunningCommandTimeout. More info on these options can be found here. |
@kisantia thanks for the pointers, I'll run it into a dedicated Gen5 now. Timeout-wise I'm already using:
Let me know if you recommend other timeout values. |
@kisantia I ran on a Gen5 Business Critical 8 vCore, however it failed on the triggers in exactly the same way as before. I created a new backup with a |
@craigminihan can you try increasing the TargetTimeout and /p:CommandTimeout? |
@kisantia I updated the timeouts to Reviewing the logs I can see the following timestamps:
The retry sequence suggests a 30s timeout is being used. During this time CPU and IO counts on the database are both zero suggesting there is nothing actually happening. The trigger which appears to cause the timeout is not enabled by the import. Later when enabled in SSMS it completes instantly. |
Steps to Reproduce:
etc.
Post failure the trigger can be enabled in SSMS with no issue via the context menu or executing the
ENABLE TRIGGER
directly.Intervening during the retry sequence and enabling the trigger does not affect the outcome, the retry loop continues with eventual failure of the import.
Did this occur in prior versions? If not - which version(s) did it work in?
Unknown
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered: