Triệu chứng
Giả sử bạn sử dụng Microsoft SQL Server 2014 hoặc 2016 Reporting Services (SSRS) để xuất báo cáo sang tệp .pdf. Nếu chiều cao trang được đặt là 8,5 inch, một ngoại lệ chưa xử lý có thể xảy ra. Ngoài ra, các thông báo lỗi giống như sau cũng được ghi nhật ký trong nhật ký lỗi Dịch vụ Báo cáo:
Lưu ý
Kết xuất báo cáo! ReportServer_0-485!F60! ngay-thoi:: e LỖI: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: Đã xảy ra lỗi trong khi kết xuất báo cáo. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: Đã xảy ra lỗi trong khi kết xuất báo cáo. ---> System.IndexOutOfRangeException: Index nằm ngoài giới hạn của mảng.
tại Microsoft.ReportingServices.Rendering.ImageRenderer.Renderer.ProcessTablixContainer(RPLTablix tablix, RectangleF position, Single[] rowStarts, Single[] columnStarts)
tại Microsoft.ReportingServices.Rendering.ImageRenderer.Renderer.ProcessReportItem(RPLItemMeasurement measurement, RectangleF bounds, Boolean renderBorders, RectangleF styleBounds, Boolean renderStylesOnBounds, Boolean hasTablixCellParent)
tại Microsoft.ReportingServices.Rendering.ImageRenderer.Renderer.ProcessNonTablixContainerReportItems(RPLContainer container, RectangleF bounds)
tại Microsoft.ReportingServices.Rendering.ImageRenderer.Renderer.ProcessReportItem(RPLItemMeasurement measurement, RectangleF bounds, Boolean renderBorders, RectangleF styleBounds, Boolean renderStylesOnBounds, Boolean hasTablixCellParent)
at Microsoft.ReportingServices.Rendering.ImageRenderer.Renderer.ProcessPage(RPLReport rplReport, Int32 pageNumber, FontCache sharedFontCache, List'1 glyphCache)
at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render(Report report, NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream createAndRegisterStream)
tại Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
--- Kết thúc --- theo dõi ngăn xếp ngoại lệ bên trong
tại Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
tại Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.InvokeRenderer(IRenderingExtension renderer, Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
tại Microsoft.ReportingServices.ReportProcessing.Execution.RenderReport.Execute(IRenderingExtension newRenderer)
--- Kết thúc --- theo dõi ngăn xếp ngoại lệ bên trong;
thư viện! ReportServer_0-485!F60! ngày-giờ:: i THÔNG TIN: Kết quả kết xuất: Mã trả về quy trình kết xuất bên ngoài 0x20000001.
Giải pháp
Sự cố này đã được khắc phục trong các bản cập nhật tích lũy sau đây dành cho SQL Server:
Bản cập nhật tích lũy 8 cho SQL Server 2016 RTM
Bản cập nhật tích lũy 5 cho SQL Server 2016 SP1
Cập nhật Tích lũy 6 cho SQL Server 2014 Gói Dịch vụ 2
Giới thiệu về các bản cập nhật tích lũy cho SQL Server
Mỗi bản cập nhật tích lũy mới dành cho SQL Server chứa tất cả bản sửa lỗi nóng và bản sửa lỗi bảo mật đã được tích hợp trong bản cập nhật tích lũy trước đó. Xem các bản cập nhật tích lũy mới nhất cho SQL Server:
Bản cập nhật tích lũy mới nhất cho SQL Server 2016
Bản cập nhật tích lũy mới nhất cho SQL Server 2014
Trạng thái
Microsoft đã xác nhận rằng đây là sự cố trong các sản phẩm của Microsoft được liệt kê trong mục "áp dụng cho".
Tham khảo
Tìm hiểu về thuật ngữ mà Microsoft dùng để mô tả các bản cập nhật phần mềm.