The row item structure object corresponding to a l

2019-06-09 07:33发布

I am very new to SSRS and am trying to generate a report using SSRS, I am able to pull the data on to the screen without any issues but when I try to export the data to an excel file, I am getting an error "The row item structure object corresponding to a line cannot be null" when there is data that spans multiple tabs in an excel. I am able to export to any other formats eg: PDF. After some googling I found that there is an issue with the SQL Server reporting version and Microsoft mentioned that they will release a patch to fix this issue but I dont see that there was any patch. I am using SQL Server Reporting Services Version 2007.0100.2531.00. Any pointers will be of great help.

4条回答
beautiful°
2楼-- · 2019-06-09 07:53

The bug seems to appear every time you try to render completely empty pages (height = 0) in Excel. The problem is still there in SQL Server 2008R2 Reports, the Microsoft Connect Ticket mentioned by Peter is still active.

In my case I had a report with a single Tablix and no page breaks, no space on any side, so that no additional rows or columns would be created in Excel exports. When the report returns no rows and is rendered to Excel the stated error appears, so I added a new empty row with the visibility condition "=CountRows() > 0" and it works.

查看更多
爷、活的狠高调
3楼-- · 2019-06-09 07:56

Depending on the version of SSRS you're using, it might be the problem described in this post on Microsoft Connect, which should be fixed in later versions of SSRS.

Also, it can be something with page breaks, or, as in my case, matrixes without data. When I hid the matrix without data (with =CountRows("MyDataSet") = 0), the problem was solved.

查看更多
不美不萌又怎样
4楼-- · 2019-06-09 08:00

I have found the solution for the above issue, please don't provide the page break to table. Do one thing: put the table in to the rectangle and provide page break to rectangle. It worked for me.

查看更多
Rolldiameter
5楼-- · 2019-06-09 08:06

If you have group in report then track below changes.

  • Right click Row group

  • Group Properties

  • Page Breaks

  • Remove checkbox from Also at the start of a group

  • Remove checkbox from Also at the end of a group

  • OK

查看更多
登录 后发表回答