locked
The text entered exceeds the maximum length "error"+not able to save form RRS feed

  • Question

  • Hi all,

     I have type of ntext(Comment) field in my Contact form.and i set a field length of 5000

     If i would enter more than 5000 characters in Comment field its shows the message "The textfield exceeds the amximum field length of  5000",it will be truncated"

    After this, if try to save the form it shows the message "The text entered exceeds the maximum length"
    a
    fter this it not allow to save the form the popup message  "The text entered exceeds the maximum length"
    comes again and again.

    i am not able edit the form,not able save also,nothing i can't do

    How to resolve this.

    Please anyone reply me immediately...it's urgent for me





    Regards,

    Natarajan.V
    Friday, June 5, 2009 8:12 AM

All replies

  • Hi Natarajan,

        The ntext field is limited to a max of 5000 char (As you have alread found out).

    Possible work arounds.

    1- Break the information up. i.e. if this is a large chunk of information, have the system users put it in separate ntext fields. like Geographic data, Demographic data etc.
    2- If all of the information needs to be in a single field then you will need to store the field in a custom database. You can  create a tab that hosts your custom page. You can save the      text field with the records GUID. Note that this solution will not work for offline clients.

    hope this helps,
    Hassan.


    Hassan Hussain | http://hassanhussain.wordpress.com/
    Friday, June 5, 2009 9:04 AM
  • Hi Hassan,

     Thanks for your quick reply,

     i am not able to understand ,solution given by you

    can you please elaborate,If possible please forward me the code/steps to manage these things



    Regards
    Natarajan.V
    Friday, June 5, 2009 10:31 AM
  • Try that:

    In the onload event, put the code: crmForm.all.new_field.maxLength = 20000;
    It should allow the max length upto: 20000

    Cheers,
    Jim
    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    Friday, June 5, 2009 12:52 PM
    Moderator
  • Hi Jim,

        Would this not be un-supported? 
    Would it not cause issues when the server is upgraded to v5? (when it is released).
    I'm querious why MS would set the restriction at the UI level?

    Natarajan, My solution was that you identify why the field size exceeds 5000 and if possible train the users to enter information into different fields. So for example if users are entering marketing infomration in a single ntext field then you could split the informaion into multiple fields.

    H.

    Hassan Hussain | http://hassanhussain.wordpress.com/
    • Edited by Hassan Hussain Friday, June 5, 2009 1:33 PM
    • Proposed as answer by BJJ Friday, June 5, 2009 2:28 PM
    Friday, June 5, 2009 1:28 PM
  • Ups - Sorry hussain,

    Well another way around your issue if you environment is onpremise is to increase the lenght directly in the database.
    Very unsupported - Very usefull.

    BR
    B
    Friday, June 5, 2009 2:29 PM