web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

(0) ShareShare
ReportReport
Posted on by 1,025

Hi expert

I have a fresh cloud-hosted dev machine with the last version 10.0.22 and try to import the .backpac file using sqlpackage .NET Core for Windows and i get this error during import

pastedimage1634627008676v1.png

*** Error importing database:Could not import package.
Error SQL72014: Core Microsoft SqlClient Data Provider: Msg 102, Level 15, State 1, Line 5 Incorrect syntax near 'ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY'.
Error SQL72045: Script execution error.  The executed script:
IF EXISTS (SELECT 1
           FROM   [master].[dbo].[sysdatabases]
           WHERE  [name] = N'$(DatabaseName)')
    BEGIN
        ALTER DATABASE SCOPED CONFIGURATION SET ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY = ON;
        ALTER DATABASE SCOPED CONFIGURATION SET GLOBAL_TEMPORARY_TABLE_AUTO_DROP = OFF;
    END

I have the same question (0)
  • Suggested answer
    source258147 Profile Picture
    1,025 on at
    RE: ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

    I solve this issue by getting a new database backup from LCS

  • source258147 Profile Picture
    1,025 on at
    RE: ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

    Hi Alex VN,

    I always used this version 18.7 and always works very well except this time because in this time I use cloud dev machine 10.0.22 with SQL server 2019.

    did you try it with this dev machine?

  • source258147 Profile Picture
    1,025 on at
    RE: ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

    Thanks, Judy Jee and Alex VN for your reply

    but I face the same issue

  • Alex VN Profile Picture
    1,994 on at
    RE: ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

    Hi,

    I would suggest you to change sqlpackage .net version that you used to import the bacpac. Normally 18.4 is the most stable one that I mostly used.

    docs.microsoft.com/.../release-notes-sqlpackage

    Hope it helps.

  • huijij Profile Picture
    19,811 on at
    RE: ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY error

    Hi source,

    Which version of .Net Core are you using?Please refer to the old thread to see if it helps:

    community.dynamics.com/.../import-bacpac-file-exported-from-uat-to-devops---create-user-syntax-error

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 895

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 811 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 787 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans