cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!