SSRS Bing Maps Intermittent Error

Christopher Doseck 26 Reputation points
2024-07-22T12:40:09.2666667+00:00

We are using SSRS to create reports with a mapping component for our SQL Server 2019 database. We are using the default Bing maps tile layer to show a Road background for the maps. Starting earlier this month we have had an intermittent error where a white page is shown on the map portion of the report instead of the map. The error that is shown in the white page is, "Object reference not set to an instance of an object.". The error might occur once every eight pages that are being produced. Sometimes this error happens more than that, and other times it doesn't happen. The stack trace that we are getting from the logs when a white page error occurs is,

reportrendering!ReportServer_0-1!2ac8!07/18/2024-14:35:45:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Reporting.Map.WebForms.Layer.GetAttributionStrings()
   at Microsoft.Reporting.Map.WebForms.MapCore.GetTileLayerAttributions()
   at Microsoft.Reporting.Map.WebForms.MapCore.RenderTileLayerAttributions(MapGraphics g)
   at Microsoft.Reporting.Map.WebForms.MapCore.RenderElements(MapGraphics g)
   at Microsoft.Reporting.Map.WebForms.MapCore.Paint(Graphics gdiGraph, RenderingType renderingType, Stream stream, Boolean buffered)
   at Microsoft.ReportingServices.OnDemandReportRendering.MapMapper.GetPngImage(Stream& imageStream, Int32 width, Int32 height)
   at Microsoft.ReportingServices.OnDemandReportRendering.MapMapper.GetImage(ImageType imageType)
   --- End of inner exception stack trace ---;

We didn't make any changes to the report before the issues started. We have tried modifying the "MapTileServerConfiguration" by increasing the MaxConnections, and changing the CacheLevel. These changes did not help solve the issue.

The version of SSRS that we are running is 15.0.1102.1047.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,940 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.