Support Portal ContactGet in touch

Dynamics 365 for Marketing: Maximum number of characters for a segment

   Words by Ciaran Reynolds

   on 04/12/2019 12:00:00

Whilst creating segment made up of multiple rows and relationships you might be confused when you try to to save and you get the error message “SegmentQuery: You have exceeded the maximum number of 2000 characters for this field”.


The reason for this is the query field. Like any text field in Dynamics there is a maximum character count and by default the query is capped at 2000. When you add your conditions and relationship there is query field being populated with text. The maximum number of characters can be increased with these simple steps.

First of all you need to go to Settings > Customisations


Next you open up customise the system


Find the Segment entity and open up the Query Definition field.


In the field you can increase the maximum character account to a more suitable number. I decided on 20,000.


Now you should be able to save your segment with no issues.

If you would like to read more about creating segments then why not check out our other blog post:

  • "Paul has made a real difference to how my team of 24 people record and store valuable customer data and sales opportunities. Highly recommended."

    James, Operations Director

  • "Understanding your business allows us to advise when to implement aspects of CRM and, likewise, when not to."

    Paul McQuillan, Managing Director

  • "Dynamics 365 and CRMCS have made a real lasting difference to our business, allowing us to replace older systems that were holding back our performance."

    Grahame, Chief Operating Officer

  • "James worked well with us to help connect CRM with Outlook and relate how this might benefit our team using CRM for Property Care."

    Natalie, Property Care Supervisor

  • "Matt was really good with helping us run User Testing on the new Compliance Module of our CRM System."

    Tom, Compliance Administrator

Prefer to go old-school?

Write to us using the below addresses.

Head Office
CRM Consultancy
61 Oxford Street
M1 6EQ

London Office
CRM Consultancy London
Grosvenor Avenue

Content © CRM Consultancy.