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) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Saved mapping not showing field if field+group name length too long
Pages: [1]

Author Topic: Saved mapping not showing field if field+group name length too long  (Read 1497 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Saved mapping not showing field if field+group name length too long
June 27, 2010, 05:42:10 pm
I have been trying to figure why some Saved Mappings don't show some fields when reused.

Seems to me it relates to the combined length of the Field Name and the Field Group Name

ie the following do get reloaded when using the saved mapping

testing length of field a :: TEST PD length of field for import

but this does not

testing length of field abcd :: TEST PD length of field for import

but if I then change this back to the shorter version, the Saved Mapping show the field name without my having to reset it.

So I think that the Mapping is recording the field name, but that when reusing the mapping, it won't load any that are, my guess, over 64 characters in combined length.

Have proved this on DEMO with the above settings.

Is this a BUG?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Saved mapping not showing field if field+group name length too long
June 28, 2010, 03:36:00 am
IMO this is edge case scenario but do file an issue.

Kurund
Found this reply helpful? Support CiviCRM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Saved mapping not showing field if field+group name length too long
June 28, 2010, 01:25:20 pm
I think that things tht imply the system is unreliable (eg apparent failure of Saved Mappings) are best if they can be cleaned up when the problem is identified ;-)

http://issues.civicrm.org/jira/browse/CRM-6421
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Saved mapping not showing field if field+group name length too long
June 28, 2010, 01:34:04 pm

helps a lot if a patch is also supplied which fixes the problem identified

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

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: Saved mapping not showing field if field+group name length too long
June 29, 2010, 08:11:31 am
This was a problem for me, too.  I've posted a patch.  Apparently the problem is caused by differences in field length of values for custom field names and mapping column names.

Any critique of the patch is welcome.
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Saved mapping not showing field if field+group name length too long
July 26, 2010, 03:15:53 am
JIRA issues is Closed - thanks for fixing this.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Saved mapping not showing field if field+group name length too long

This forum was archived on 2017-11-26.