It is caused due to a setup mismatch between AzureSQL and SQL server. To solve this issue you have to run this SQL statement
ALTER DATABASE [QueryStoreDB] SET QUERY_STORE (QUERY_CAPTURE_MODE = ALL); in the Azure SQL (UAT) environment before you export the database.
Other solution is:
The solution is to rename the bacpac file to zip, extract the content and locate the "model.xml" file. Copy the "model.xml" file to a new location where you can locate it easily. Rename the zip file back to bacpac. Edit the "model.xml" file:
From:
<Property Name="QueryStoreCaptureMode" Value="4" />
To:
<Property Name="QueryStoreCaptureMode" Value="2" />
Save the "model.xml" file.
Now you need to use the "/ModelFilePath" parameter of SqlPackage.exe, and point it to your updated "model.xml" file. This will instruct the SqlPackage.exe to read the updated "model.xml" file and ignore the one from within the bacpac file.
After adding /ModelFilePath parameter of SqlPackage.exe, the command will look like this:
C:\>"Program Files (x86)\Microsoft SQL Server\140\DAC\bin\SqlPackage.exe" /Action:Import /SourceFile:"bacpacfile" /mfp:"modelfilepath" /tsn:servername /tdn:dbname /p:CommandTimeout=1200