Hi ,

I want to migrate my staging server data with live project using node_export module but i didn't get hierarical taxonomy term value in live server.

Please check this:

Staging server Node export (Drupal var export) :

array(
(object) array(
'vid' => '26',
'uid' => '1',
'title' => 'test14',
'log' => '',
'status' => '1',
'comment' => '1',
'promote' => '0',
'sticky' => '0',
'vuuid' => '658f27fa-280e-2254-014c-ac301e8699a4',
'nid' => '26',
'type' => 'page',
'language' => 'und',
'created' => '1353059210',
'changed' => '1353059210',
'tnid' => '0',
'translate' => '0',
'uuid' => '4835efa3-d44a-19f4-95db-6c9ddbaf8f7b',
'revision_timestamp' => '1353059210',
'revision_uid' => '1',
'body' => array(
'und' => array(
array(
'value' => 'test',
'summary' => '',
'format' => 'filtered_html',
'safe_value' => "

test

\n",
'safe_summary' => '',
),
),
),
'field_vocab' => array(
'und' => array(
array(
'tid' => '4',
'uuid' => '7548c5a4-ce3c-8824-5dc3-ffaeef49b836',
),
),
),
'field_name' => array(),
'rdf_mapping' => array(
'rdftype' => array(
'foaf:Document',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:date',
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
'content:encoded',
),
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
'foaf:name',
),
),
'comment_count' => array(
'predicates' => array(
'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
),
'cid' => '0',
'last_comment_timestamp' => '1353059210',
'last_comment_name' => NULL,
'last_comment_uid' => '1',
'comment_count' => '0',
'name' => 'admin',
'picture' => '0',
'data' => 'b:0;',
'path' => FALSE,
'menu' => NULL,
'node_export_drupal_version' => '7',
'node_export_dependency' => array(
array(
'type' => 'taxonomy_term',
'id' => '4',
'delta' => 0,
'property' => 'tid',
'module' => 'taxonomy',
'field_name' => 'field_vocab',
'langcode' => 'und',
'uuid' => '7548c5a4-ce3c-8824-5dc3-ffaeef49b836',
),
),
),
)
Live server Node Import (Drupal var export) :

array(
(object) array(
'vid' => '37',
'uid' => '1',
'title' => 'test14',
'log' => '',
'status' => '1',
'comment' => '1',
'promote' => '0',
'sticky' => '0',
'vuuid' => '658f27fa-280e-2254-014c-ac301e8699a4',
'nid' => '37',
'type' => 'page',
'language' => 'und',
'created' => '1353059282',
'changed' => '1353059282',
'tnid' => '0',
'translate' => '0',
'uuid' => '4835efa3-d44a-19f4-95db-6c9ddbaf8f7b',
'revision_timestamp' => '1353059282',
'revision_uid' => '1',
'body' => array(
'und' => array(
array(
'value' => 'test',
'summary' => '',
'format' => 'filtered_html',
'safe_value' => "

test

\n",
'safe_summary' => '',
),
),
),
'field_vocab' => array(
'und' => array(
array(
'tid' => '4',
'uuid' => NULL,
),
),
),
'field_name' => array(),
'rdf_mapping' => array(
'rdftype' => array(
'foaf:Document',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:date',
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
'content:encoded',
),
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
'foaf:name',
),
),
'comment_count' => array(
'predicates' => array(
'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
),
'cid' => '0',
'last_comment_timestamp' => '1353059282',
'last_comment_name' => NULL,
'last_comment_uid' => '1',
'comment_count' => '0',
'name' => 'admin123',
'picture' => '0',
'data' => 'b:0;',
'path' => FALSE,
'menu' => NULL,
'node_export_drupal_version' => '7',
'node_export_dependency' => array(
array(
'type' => 'taxonomy_term',
'id' => '4',
'delta' => 0,
'property' => 'tid',
'module' => 'taxonomy',
'field_name' => 'field_vocab',
'langcode' => 'und',
'uuid' => FALSE,
),
),
),
)

Comments

dooug’s picture

Title: I want to migrate my staging server data with live project » Hierarchical taxonomy term value not preserved on export/import
Category: support » bug
Priority: Critical » Normal

Please do not abuse the "Critical" priority! Be sure to use the Priority options appropriately, read here: http://drupal.org/node/45111

I also changed the title to better reflect the issue (as I understand it).

karan_mudi’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.