Home > Visual Studio > DACPAC – Could not deploy package, the database platform service with type Sql130DatabaseSchemaProvider is not valid

DACPAC – Could not deploy package, the database platform service with type Sql130DatabaseSchemaProvider is not valid


 
So, today while deploying a DACPAC file by using SqlPackage.exe utility I faced an error:

*** Could not deploy package
Internal error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql130DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service.

For few minutes I was wondering why this error was coming, but when I saw the version number in above error message it became clear. The version number 130 highlighted above belongs to SQL Server 2016, and the database where I need to deploy DACPAC was SQL Server 2012. So, its clear that the DACPAC was built in Visual Studio with SQL Server 2016 setting.

So I went back to Visual Studio – Project Settings and changed the version to SQL Server 2012, and re-build the Project, and got the correct DACPAC file.


  1. g's avatar
    g
    November 24, 2019 at 1:19 am

    Thanks this helped me resolve a similar issue

  2. Elizabeth Abernathy's avatar
    Elizabeth Abernathy
    March 17, 2020 at 6:44 am

    I am having a similar situation where this did not work? Any advice?

  1. No trackbacks yet.

Leave a reply to Elizabeth Abernathy Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.