Node ID Not Showing Up in CCK-Field Related Tables

mnguyen - November 6, 2006 - 07:47
Project:Import / Export API
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed
Issue tags:other contrib modules
Description

I don't know if this is a bug or I just don't know how to format my XML file, but I have been trying to import some nodes. I started by exporting the CCK type to get an idea of what my XML fields should be. Using that, I created an XML that with the data I want to import. For this particular CCK content type, I have one field that is unique to the type (so it appears in the table named after the content type), and one field that is shared with other content types (so it appears in its own table).

I am doing an insert with keys.

When the import completes, all the nodes appear in the tables, and I can view them. However, I cannot edit any of the fields because the tables where the field data is stored has the correct vid, but the nid field is 0, preventing me from editing the field. When I try to submit an edit, I get a SQL error. The error complains about duplicate entry for the vid, I assume because the vid is already there in the table, but has no accompanying nid.

Having looking at the template and examples for nodes in the testdata/ folder, I did not see anything that I needed to put between the tags to make sure that it would write the correct nid to the tables.

Also can someone explain to me why appears both inside and outside the tags? The same goes for and . What do these tags do?

So am I doing something wrong or is this a problem with the import?

#1

earnie - October 12, 2009 - 15:00
Version:HEAD» 6.x-1.x-dev
Category:support request» bug report

This is obviously old but want to address this issue.

#2

earnie - October 12, 2009 - 15:55
Status:active» postponed
 
 

Drupal is a registered trademark of Dries Buytaert.