Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
mikegrove
Regular Visitor

ReportServerTempDB.dbo.ContentCache

We upgraded our existing SSRS to PBIX by restoring our 2014 ReportServer and ReportServerTempDB on the new SQL 2017 instance and then installed Power BI server and shut down the SSRS server. Al the reports run just fine but my log file is filled with this error:

 

library!WindowsService_0!8b00!07/16/2018-16:51:19:: i INFO: Call to CleanBatch()
library!WindowsService_0!8b00!07/16/2018-16:51:19:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.;
dbcleanup!WindowsService_0!8b00!07/16/2018-16:51:19:: e ERROR: Error in CleanExpiredContentCache: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.ContentCache'.

 

Any searches on 'ReportServerTempDB.dbo.ContentCache' just bring back posts related to Novell

I don't see anything named ContentCache in either database, nor do I see anything name CleanBatch.

Any sugesstions would be wonderful.

4 REPLIES 4
lynamc
New Member

USE [ReportServerTempDB]
GO
/****** Object: Table [dbo].[ContentCache] Script Date: 21/05/2019 12:07:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ContentCache](
[ContentCacheID] [bigint] IDENTITY(1,1) NOT NULL,
[CatalogItemID] [uniqueidentifier] NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[ParamsHash] [int] NULL,
[EffectiveParams] [nvarchar](max) NULL,
[ContentType] [nvarchar](256) NULL,
[ExpirationDate] [datetime] NOT NULL,
[Version] [smallint] NULL,
[Content] [varbinary](max) NULL,
CONSTRAINT [PK_ContentCache] PRIMARY KEY NONCLUSTERED
(
[ContentCacheID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


USE [ReportServerTempDB]
GO

/****** Object: Index [IX_ExecutionCacheLastUsed] Script Date: 21/05/2019 12:09:14 ******/
CREATE NONCLUSTERED INDEX [IX_ExecutionCacheLastUsed] ON [dbo].[ExecutionCache]
(
[ReportID] ASC,
[AbsoluteExpiration] ASC,
[LastUsedTime] ASC,
[ExecutionCacheID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

 

CREATE NONCLUSTERED INDEX [IX_ContentCache] ON [dbo].[ContentCache]
(
[CatalogItemID] ASC,
[ParamsHash] ASC,
[ContentType] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

CREATE NONCLUSTERED INDEX [IX_ContentCache_ExpirationDate] ON [dbo].[ContentCache]
(
[ExpirationDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

 

I don't think Microsoft actually support an inplace upgrade of SSRS to PBI Report Server see here https://docs.microsoft.com/en-us/power-bi/report-server/migrate-report-server

 

The documentation talks about cloning the ReportServer database, but I think you are meant to let the PBI Report Server config manager create a new ReportServerTempDB database. 

mikegrove
Regular Visitor

It is the procedure 'CleanExpiredContentCache that is failing.

 

DELETE
FROM
[ReportServerTempDB].dbo.[ContentCache]
WHERE
ExpirationDate < @now

 

Appearently when you just restore an SSRS DB to 2017 and then point Power BI server to it, it doesn't do any house keeping.

I did a schema compare to a clean Power BI server install and found two descrepancies. One being this table was missing and the other was just an index on rge ExecutionCahce table. I made the changes and we'll see if I just brought doen Power BI.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.