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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Goals not always working - number of calculated fields?

(0) ShareShare
ReportReport
Posted on by

We have been using goals reasonably successfully, but have now noticed that all current goals are no longer updating.

When you open the goal itself it shows the error "number of calculated fields in query exceeded maximum limit of [goal name]

Any idea what is causing the goals to fail?

Is there a limit on anything inside the goal entity?

I know there is a limit of 100 rollups per organisation, but I am assuming the rollups inside the OOTB goal entity do not eat into this limit as if you have multiple sales people, and goals are used monthly, you very quickly use this limit up.

Many thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Wayne Walton Profile Picture
    13,730 on at

    Are you running goals on calculated fields?  Not just rollups, but calculated ones?  If so, that sounds like your problem.  You might need to set up some intermediary fields to contain the calculated field as static data, then set your goals against those instead.

  • Community Member Profile Picture
    on at

    Interesting- I think I see your logic there - so set a workflow to copy the calculated fields to static ones and track the goals on them?

  • Verified answer
    Wayne Walton Profile Picture
    13,730 on at

    Correct.  Remember, Goals are basically a purpose-built rollups, and have the same limitations:

    · A rollup can't reference a calculated field that uses another calculated field, even if all the fields of the other calculated field are on the current entity.

    · The rollup can only apply filters to the source entity or related entities, simple fields or non-complex calculated fields.

  • colinbell83 Profile Picture
    on at

    Hi, I have this same issue, i moved the Total Amount to a plain custom currency single field and it is still happening, i have removed the majority of Calculated fields from the opportunity entity so it is definitely not to do with the maximum 10 calculated fields per entity but it is still giving this error?

    Has anyone been able to resolve this when there are no calculated fields in the query?

    Whats strange is when using a Customer Entity and not the Opportunity Entity it works fine?...

    any help would be much appreciated

  • yleclerc Profile Picture
    1,549 on at

    @colinbell83 Did you ever find a solution for this? I have the same problem and can't figure it out.

  • Colin365Bell Profile Picture
    40 on at

    Hi kind of, I found it was to do with the maximum number of Calculated fields across the environment. I believe you can have a maximum of 100 "Custom" Calculated fields across the environment and I had reached that. luckily i had some Calculated fields that where historical and was able to remove them

  • yleclerc Profile Picture
    1,549 on at

    Thanks!

    This makes a lot of sense.

    I actually can build Goals around on some entities (Sales order work fine) but not on Opportinities. In Opportunities, we have 20 calculated fields, so I guess there is a limitation per entity as well.

    Most of these fields are managed, so I will have to find something else ;)

  • Suggested answer
    yleclerc Profile Picture
    1,549 on at

    UPDATE

    In the MSCRM_CONFIG Database - DeploymenProperties table, there is an entry called EntityCalculatedFieldLimit. Default value is 10.

    As soon as we updated this value to 20, everything worked as expected. We will monitor this to make sure this doesn't cause other problems.

    20 is the number of calculated fields we have in the Opportunity Entity.

    We are using version 8.2 on-premise.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans