web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS exception

(0) ShareShare
ReportReport
Posted on by 455

There is row group in a Tablix that has hidden property for visibility set as

IIF(field!ABC.value = "", True, False)

Sometime not always SSRS throw exception  

Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The Hidden expression for the tablix ‘Tablix1’ contains an error: The expression references the field 'ABC', which does not exist in the Fields collection

Any ideas what might be wrong?

*This post is locked for comments

I have the same question (1)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    are you sure, field ABC is part of DataSet...???

  • Samy123 Profile Picture
    455 on at

    Yes It is

  • Verified answer
    Lance [MSFT] Profile Picture
    on at

    Is this happening only for specific users?

    I'm wondering if it could be related to the security settings for the table being queried.  If a user does not have access to some of the fields, then they tend to get removed from the data set returned by the query/rdp class.  Maybe that could account for why ABC field sometimes is not there?

    I'm not ssrs expression expert, but according to the topic here msdn.microsoft.com/.../dd283100.aspx

    you could try checking if the ABC field exists using the expression

    Code.IsFieldMissing(Fields!FieldName).

    Maybe try setting hidden to true if the expression above is true, else set it using the expression you currently have?

    Hope this helps

    Lance

  • Samy123 Profile Picture
    455 on at

    Thanks Lance for your suggestion. I already did some tweaking to the expression I am using isNothing() function to check the value. If it doesn't resolve the issue then I will go with the Code.IsFieldMissing(Fields!FieldName). Waiting for the results.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans