CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.3 Release Testing »
  • Creating custom field causes
Pages: [1]

Author Topic: Creating custom field causes  (Read 5383 times)

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Creating custom field causes
November 11, 2010, 06:32:46 pm
We have upgraded an existing test environment to 3.3 Alpha2 and then to 3.3 Beta 1.

Since installing Alpha 2, when ever I create a custom data field, this error is generated, even when it is the first custom data field being defined for a set.

The error is:
Sorry. A non-recoverable error has occurred.

--------------------------------------------------------------------------------

DB Error: already exists
Error Details
Database Error Code: Table 'log_civicrm_value_wca_11' already exists, 1050
Additional Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => CREATE TABLE `log_civicrm_value_wca_11` (
  `id` int(10) unsigned NOT NULL COMMENT 'Default MySQL primary key',
  `entity_id` int(10) unsigned NOT NULL COMMENT 'Table that this extends',
  `wca_associate_member_48` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wca_audit_committee_49` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wca_capital_projects_commission_50` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wca_conference_program__planning_51` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,

Question:

Is the result of installing the Alpa 2?
Should we dump all data and start over?
Or should I file an issue?

D

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Creating custom field causes
November 11, 2010, 10:43:52 pm
Dwiding,

Please create a issue at our issue tracker : http://issues.civicrm.org/jira/browse/CRM?report=com.atlassian.jira.plugin.system.project:roadmap-panel

Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Creating custom field causes
November 12, 2010, 04:44:21 am
Argh, I guess your database is not called ‘civicrm’. Fixed in r30716, will be fixed in 3.3.beta2 (and you can apply that patch to your install as well).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 15, 2010, 03:56:51 pm
Patch worked - Thanks!


Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 16, 2010, 05:37:10 am
The patch worked for that specific error, but another one has emerged.  when I go back into a custom field to change the Check Box on Colapse on display on or off for any type of custom field, genreates another DB Error, but not able to display Details.


Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Creating custom field causes
November 16, 2010, 09:22:14 am
Quote from: Dwiding on November 16, 2010, 05:37:10 am
When I go back into a custom field to change the Check Box on Colapse on display on or off for any type of custom field

Thanks a lot for reporting this! Can you be a bit more descriptive? ‘Collapse this set on initial display’ is a custom set property, not a custom field one (and toggling it works for me in my local sandbox with logging enabled). Can you give me an example on sandbox?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 16, 2010, 07:42:56 pm
Joomla Administrator
CiviCRM
Admin
Customize
Custom Data
More, Settings (on an existing Custom Data Set)
Take Check Mark Off, or, Put Check Mark on "Collapse this set on initial display?"
Click on save

(we have already installed one patch)

Sorry. A non-recoverable error has occurred.

--------------------------------------------------------------------------------

DB Error: already exists
Error Details
Database Error Code: Duplicate entry 'Contact' for key 'UI_name_extends', 1062Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'GHT' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Inline' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 2 , is_active = 1 , is_multiple = 0 , max_multiple = NULL , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 9 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [type] => DB_Error
    [user_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'GHT' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Inline' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 2 , is_active = 1 , is_multiple = 0 , max_multiple = NULL , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 9 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE  civicrm_custom_group  SET name = '' , title = 'GHT' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Inline' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 2 , is_active = 1 , is_multiple = 0 , max_multiple = NULL , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 9 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']"]
)



Return to home page.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Creating custom field causes
November 17, 2010, 04:53:51 am
Quote from: Dwiding on November 16, 2010, 07:42:56 pm
Code: [Select]
    [debug_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'GHT' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Inline' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 2 , is_active = 1 , is_multiple = 0 , max_multiple = NULL , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 9 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']

Hm, this does not seem related to logging (and I just checked that it happens regardless of it). I filed CRM-7102 to track this; thanks for reporting!
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 22, 2010, 08:11:39 pm
This is still happening with Beta 2.

Dallas

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Creating custom field causes
November 23, 2010, 06:25:28 am

can you reproduce this issue on our drupal sandbox please

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 24, 2010, 06:43:59 am
Will try it.

Here is the error from our Joomla install. I have tested this on 2 separate systems with the same results.

Sorry. A non-recoverable error has occurred.

What happened was is that I created a custom data set and didn't like the way I had it configured for data types. The field name was Classifier History.

So I created a new set called called Classifier History Log, created all the data fields as Select. Once I was sure I had recreated all field names, I went back and deleted all fields in Classifier History, then I deleted Classifier History. On the new data set, I only used the label Classifier History Log as a temp name, planning on going back and renaming it to Classifier History, which cuases the result below.

I can not find Classifier History (through the Civi UI) label used any where else.

--------------------------------------------------------------------------------

DB Error: already exists
Error Details
Database Error Code: Duplicate entry 'Contact' for key 'UI_name_extends', 1062
Additional Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'Classifier History' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [type] => DB_Error
    [user_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'Classifier History' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE  civicrm_custom_group  SET name = '' , title = 'Classifier History' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']"]
)


Return to home page.

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 24, 2010, 07:18:58 am
No issue on doing the same on the Sand Box.

Tried changing the filed name to something totally different with same result. Tried changing the name to History Tracking. Interesting thing is that after the error, back at create custom data set, I can create History Tracking as a new data set name.

Sorry. A non-recoverable error has occurred.
DB Error: already exists
Error Details
Database Error Code: Duplicate entry 'Contact' for key 'UI_name_extends', 1062
Additional Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'History Tracking' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [type] => DB_Error
    [user_info] => UPDATE  civicrm_custom_group  SET name = '' , title = 'History Tracking' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE  civicrm_custom_group  SET name = '' , title = 'History Tracking' , extends = 'Contact' , extends_entity_column_value = NULL , style = 'Tab' , collapse_display = 0 , help_pre = '' , help_post = '' , weight = 14 , is_active = 1 , is_multiple = 1 , max_multiple = 99999 , collapse_adv_display = 0   WHERE (  civicrm_custom_group.id = 40 )   [nativecode=1062 ** Duplicate entry 'Contact' for key 'UI_name_extends']"]
)

Return to home page.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Creating custom field causes
November 24, 2010, 09:08:37 am
For what it’s worth, note that this issue was fixed after 3.3.beta2 (but should be fixed in 3.3.beta3).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 24, 2010, 09:16:08 am
OK - Will wait for B3

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Creating custom field causes
November 24, 2010, 09:50:34 am
Just updated B3 - confirmed fixed.

Thanks!

D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.3 Release Testing »
  • Creating custom field causes

This forum was archived on 2017-11-26.