Recently while after restoring the database while trying to import the organization we got the below error
Checking the Report Server log,
we found the below detail
Throwing Microsoft.ReportingServices.Library.InvalidReportServerDatabaseException: , Microsoft.ReportingServices.Library.InvalidReportServerDatabaseException: The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is ‘2017’. The expected version is ‘178’.;
We can use the below commands to check the DB Version
The Database that we were restoring had the following version 178 as mentioned in the error
And in our destination server where we were had restored and imported the organization, it was 2017.
We tried out a few of the things mentioned in the forums, eventually what worked for us was to create a new Report Server database in the Destination server.
This created the database with the version expected and our import was successful.
Also, refer the below blog posts
Hope it helps..