Jump to content


Photo

Custom type of Industry for Accounts

Account Custom Type Industry

  • Please log in to reply
3 replies to this topic

#1 vvlada

vvlada

    Newbie

  • New Members
  • Pip
  • 4 posts

Posted 16 October 2012 - 05:44 PM

After "Save" on adding several custom types of Industries for Account, like "Telecommunication", I got the following error, the same one that I got when I first attempted to extend fields for Account, adding "PIB" (like VAT ID) and "Mat. br." (like Company ID). Both custom fileds are visible, but I can not save any data to it.

Error:

An error has occurred. Please click here to continue to the home page. If the error persists please contact your administrator.

Error - *** Saving the sample Account failed. Error - The attributes that did not validate probably need more rules, or are not deletable types. Error - Array ( [pib] => Array ( [0] => PIB is too long (maximum is 9 characters). ) [mat_br] => Array ( [0] => Mat. br. is too long (maximum is 8 characters). ) ) Error - *** Saving the sample Contact failed. Error - The attributes that did not validate probably need more rules, or are not deletable types. Error - Array ( [account] => Array ( [pib] => Array ( [0] => PIB is too long (maximum is 9 characters). ) [mat_br] => Array ( [0] => Mat. br. is too long (maximum is 8 characters). ) ) ) Error - *** Saving the sample Opportunity failed. Error - The attributes that did not validate probably need more rules, or are not deletable types. Error - Array ( [account] => Array ( [pib] => Array ( [0] => PIB is too long (maximum is 9 characters). ) [mat_br] => Array ( [0] => Mat. br. is too long (maximum is 8 characters). ) ) )

#2 Ivica

Ivica

    Advanced Member

  • Moderators
  • 565 posts

Posted 17 October 2012 - 07:40 AM

You can try to turn on debug, in config/debug.php file to get more details about this error.

But does your data satisfy validation rules? I added new field to account for test, and I was able to add data into it.
Which version of Zurmo are you using?

#3 vvlada

vvlada

    Newbie

  • New Members
  • Pip
  • 4 posts

Posted 18 October 2012 - 07:07 AM

Hi,

I am using last available version, 0.7.5. Field names were pib and mat_br, Integers 9 and 8 long, nothing special.

BTW, how can I delete custom fields from Accounts?

#4 vvlada

vvlada

    Newbie

  • New Members
  • Pip
  • 4 posts

Posted 18 October 2012 - 07:31 AM

Here is the debug output:


FailedDatabaseSchemaChangeException

Error - *** Saving the sample Account failed.
Error - The attributes that did not validate probably need more rules, or are not deletable types.
Error - Array
(
[pib] => Array
(
[0] => PIB is too long (maximum is 9 characters).
)

[mat_br] => Array
(
[0] => Mat. br. is too long (maximum is 8 characters).
)

[pib_id] => Array
(
[0] => PIB (VAT) is too long (maximum is 9 characters).
)

[id_pib] => Array
(
[0] => VAT (PIB) is too long (maximum is 9 characters).
)

)

Error - *** Saving the sample Contact failed.
Error - The attributes that did not validate probably need more rules, or are not deletable types.
Error - Array
(
[account] => Array
(
[pib] => Array
(
[0] => PIB is too long (maximum is 9 characters).
)

[mat_br] => Array
(
[0] => Mat. br. is too long (maximum is 8 characters).
)

[pib_id] => Array
(
[0] => PIB (VAT) is too long (maximum is 9 characters).
)

[id_pib] => Array
(
[0] => VAT (PIB) is too long (maximum is 9 characters).
)

)

)

Error - *** Saving the sample Opportunity failed.
Error - The attributes that did not validate probably need more rules, or are not deletable types.
Error - Array
(
[account] => Array
(
[pib] => Array
(
[0] => PIB is too long (maximum is 9 characters).
)

[mat_br] => Array
(
[0] => Mat. br. is too long (maximum is 8 characters).
)

[pib_id] => Array
(
[0] => PIB (VAT) is too long (maximum is 9 characters).
)

[id_pib] => Array
(
[0] => VAT (PIB) is too long (maximum is 9 characters).
)

)

)






Also tagged with one or more of these keywords: Account, Custom, Type, Industry

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users