Results 1 to 2 of 2

Thread: Custom field max length behaviour in 5.5ce

  1. #1
    jasonj is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Brisbane
    Posts
    45

    Question Custom field max length behaviour in 5.5ce

    Created a custom field in version 5.1 (I think) for the account module.... it is "account abbreviation" a short (less than) 5 character code for an Account .. in 5.1 it would not let you save the record if it was longer than 5 chars, in the upgrade to 5.2 it just saved the first 5 characters..... (which we could live with) ... Now in 5.5 it just doesn't save anything and using the SQL profiler I see that MSSQL has "bombed" the TSQL because "string data would be truncated" so SUGAR is not doing the 5 character limit validation anymore and just trying to pass the whole string ?? Any ideas as to how I get it to do the validation again ???

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Custom field max length behaviour in 5.5ce

    Are you saying that the field is defined with a length of 5 chars in Sugar, but within the database structure it is shorter, hence the error?

    Have you tried to do a repair on the database via the Admin > Repair option in Sugar?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing field length of standard fields
    By pmazolo in forum Developer Help
    Replies: 6
    Last Post: 2011-03-25, 02:56 AM
  2. Strange behaviour with custom codes
    By subhajit in forum Developer Help
    Replies: 1
    Last Post: 2009-05-29, 12:45 PM
  3. Field length issue in Company detail
    By worgi in forum Help
    Replies: 1
    Last Post: 2008-05-28, 11:31 AM
  4. Replies: 2
    Last Post: 2007-12-10, 03:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •