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) »
  • Civi 4.1 Alpha Strange Membership Import Behavior
Pages: [1]

Author Topic: Civi 4.1 Alpha Strange Membership Import Behavior  (Read 1139 times)

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Civi 4.1 Alpha Strange Membership Import Behavior
December 05, 2011, 03:44:26 pm
While running through my tried and true import procedure I ran into a problem that I'm almost positive was not there before.

Upon doing a membership import via CSV:

0. Set membership import type to organization, column headers, YYYYMMDD, fill.
1. First run validation turns up a few memberships with unhandled membership types (expected) and no other errors.
2. Upon "true import", all of the memberships fail with "Invalid Membership Status ID".

Here is an example:

"Line Number","Reason","Organization Name (match to contact)","Membership Status Id","Membership Type Id","Membership Start Date"

"2","Invalid Membership Status Id","Acme Inc","Current","Corporate","20110120"

Current Member Status is set to start at "start date" and end at "end date". When I enter 20110120 as the start date for this membership manually, the end date comes out to be Feb, 19th 2012, which means I shouldn't have any conflicts as far as the status rule is concerned...

So, heres the bit that sent me running to these forums:

The error in the import_errors CSV says : 
Invalid value for the field "Membership Status Id"  when I provide a member status such as "Current".
Invalid value for the field "Membership Status" when I provide a member status id such as "2".

It fails both ways, for every single record in the CSV, but the error message seems to change to complain about IDs if I provide names, and names if I provide ID's.

Any ideas on how to get to the bottom of this one?





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: Civi 4.1 Alpha Strange Membership Import Behavior
December 05, 2011, 05:13:58 pm

can u reproduce this on our sandbox servers. If so, can u please attach the csv file here and we'll take a closer look

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

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Civi 4.1 Alpha Strange Membership Import Behavior
December 06, 2011, 07:53:24 am
I was able to recreate the error on sandbox.drupal.civicrm.org ( I don't know if this is 4.1 though).

I created a 3 row csv file attached and imported it using field mapping "testabc" which should still be on there. It matches to organization name, membership type (string), membership status (string), membership start date (yyyymmdd), and member since (yyyymmdd).

The returned import_errors.csv is also attached.

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Civi 4.1 Alpha Strange Membership Import Behavior
December 06, 2011, 08:45:36 am
Right, so in summary if I pass "Current" as Member Status, it passes through Pre-Import Validation, and I get an error saying invalid member status ID in the Post-Import Validation screen.

If I pass "2" as Member Status, which is "Current'''s ID, then I get an error saying Invalid Value for field "Membership Status" in the Pre-Import Validation.

Darn.  I'm going to have to roll back to 4.07 I think.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civi 4.1 Alpha Strange Membership Import Behavior
December 06, 2011, 09:35:30 am
Definitely a regression bug. Thanks for catching and reporting.
http://issues.civicrm.org/jira/browse/CRM-9301

As noted in the issue report, "The existing membership import web test (WebTest_Import_MemberTest) should be extended to include passing in membership statuses prior to closing this issue." We need more folks to get involved in improving the test suites - so would be great if you could jump in and extend that test. Ping us on IRC if you need help getting started.
Protect your investment in CiviCRM by  becoming a Member!

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Civi 4.1 Alpha Strange Membership Import Behavior
December 06, 2011, 12:24:52 pm
Thanks Dave, I'll pop in tonight to see what I can do.

It's either this or put my tail between my legs and go back to 4.0.7

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Civi 4.1 Alpha Strange Membership Import Behavior

This forum was archived on 2017-11-26.