Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Incomplete
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I am using the mambo component.
When I try to import it works fine if I just have the name information, but if I also attempt the mailing address information I get:
[debug_info] => INSERT INTO civicrm_address (location_id , street_address , city , county_id , postal_code , postal_code_suffix , geo_coord_id ) VALUES ( 126 , '523 West 148th Street' , 'New York' , 1 , '10031' , '6421' , 1 ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
[type] => db_error
[user_info] => INSERT INTO civicrm_address (location_id , street_address , city , county_id , postal_code , postal_code_suffix , geo_coord_id ) VALUES ( 126 , '523 West 148th Street' , 'New York' , 1 , '10031' , '6421' , 1 ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
[to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_address (location_id , street_address , city , county_id , postal_code , postal_code_suffix , geo_coord_id ) VALUES ( 126 , '523 West 148th Street' , 'New York' , 1 , '10031' , '6421' , 1 ) [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]"]