SSRS Detail members can only contain static inner members
Asked Answered
W

3

9

I am developing an RDL in SSRS 2008 and am trying to move a subreport table directly into a main report so that I instead run this subreport in the same stored proc as my main report.

However, I'm having trouble hooking this up. I got the stored procedure to run successfully. But now when I try to copy this table into the main report I get the following error:

[rsInvalidDetailDataGrouping] The tablix 'table1' has a detail member with inner members. Detail members can only contain static inner members.

Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope

How can I do this?

I have tried moving the table into the group level and deleting the details grouping. I have removed sorting elements, etc. But the only way I got this error to disappear is to delete all of the groupings for this table and all textbox values.

Westernize answered 17/10, 2011 at 22:13 Comment(0)
R
13

If these are being returned from the same SP, then you should only have one Detail group (and one tablix).

The detail group (on your outer tablix) will be repeated once for each row returned by your dataset. A tablix contained within that row for the same dataset doesn't make sense: what would it repeat?

It sounds like you need to combine your two tablixes into one, not nest one in the other.

The easiest approach is probably to add a group to the parent tablix which will take the place of the former detail group. It will probably group by whatever field you joined to your old subreport dataset (or something similar.)

Then put your old subreport fields in the detail rows.

Rearm answered 17/10, 2011 at 22:39 Comment(0)
B
1

I was getting this error when building a report in VS2015 SSRS14. A restart of Visual studio cleared the error.

Bk answered 10/12, 2019 at 4:45 Comment(0)
L
0

In my case, a simple table report, Tablix4 was giving an error. This is because Tablix1 had a Rectangle as a child, and the Rectangle had Tablix4 as a child. Replacing Tablix1 with Tablix4 solved the problem.

<Tablix Name="Tablix1">
    <TablixBody>
      <TablixColumns>
        <TablixColumn>
          <Width>16.51cm</Width>
        </TablixColumn>
      </TablixColumns>
      <TablixRows>
        <TablixRow>
          <Height>2.38745cm</Height>
          <TablixCells>
            <TablixCell>
              <CellContents>
                <Rectangle Name="Rectangle1">
                  <ReportItems>
                    <Tablix Name="Tablix4">
Lucid answered 14/4, 2020 at 10:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.