Phantom expressions in SSRS

Posted on 2012-09-13
Last Modified: 2012-09-14
I'm getting an error when I try to preview a report in SSRS:

The SortExpression expression for the tablix "Tablix4" refers to the field 'Result'.

If I select Tablix4 in design mode, and click on Properties, under Sorting there is NOTHING LISTED. Even if I add the sort criteria I want (eg: RowNum), I get the same error message.

Note that I spawned this report from another: I copied the .rdl, renamed the copy, and imported it into the SSRS project as an existing item. ('Result' was a valid field in the original dataset, which has since been updated, and no longer contains a 'Result' field).

I've seen phantom error messages like this before, and it is a pain to clean up. Any suggestions how to do this cleanup efficiently?

Question by:jdallen75
    LVL 37

    Expert Comment

    Given your explanation, trying to solve through questions seems like a tough thing.  So, could you upload the RDL?  I'll then try to find out what's going on.

    (before uploading, remove any sensitive parts if needed)
    LVL 22

    Accepted Solution

    You could right click the report in the Solution Explorer and choose 'View Code' from the menu. There you can search for the terms mentioned in the error message, 'Result' in your case. This will show you where the expression is used.
    Be careful changing the xml, you might damage your report. Make sure you have a back up.

    Author Closing Comment

    Forgot about that option - thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only seeā€¦
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now