I have imported some nodes from CSV. After the import is done, I can view the nodes and it looks fine, but when I edit one node, only the Title field (I have changed the label of the title field) is filled with text. The other fields are blank, but there should be some text.

I am using "Update existing nodes" option in Node Processor. Target contenttype only contains text fields.

Comments

blue56’s picture

I used a GUID as unique target.

If I try to update one of the imported nodes then some of the fields disappear. Very strange.

blue56’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Major

I think it must be a bug.

johnv’s picture

I have the same problem on feeds7-alpha2 and D7-rc3.
Also, if I edit+save the node, and then open a simple view for that node type, the changed node is replicated several times.

johnv’s picture

Title: After import i am unable to edit node » Imported nodes are useless due to missing value in field node-language.
Status: Active » Needs review

Below 'patch' resolves the problem of useless imported nodes.
The error is caused because in table 'node', the field 'language' is not set. It should be set to 'und' (undefined language), like in the field_data_*-tables. Now, if the node is edited, the UI finds no value for node-language, and sets this to the default/user's language, e.g. 'en'. It also fetches the fields, but there are no field_data_*-values in the language 'en', only in 'und'.
Sorry for not providing a 'real' patch.

+++ feeds/plugins/FeedsNodeProcessor.inc
--- feeds/plugins/FeedsNodeProcessor.inc

  protected function newEntity(FeedsSource $source) {
    $node = new stdClass();
    $node->type = $this->config['content_type'];
    $node->changed = REQUEST_TIME;
    $node->created = REQUEST_TIME;
+    $node->language = 'und';  // patch for issue 993328
    node_object_prepare($node);
David Goode’s picture

Status: Needs review » Fixed

Already fixed in latest version.

Status: Fixed » Closed (fixed)

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

bnine’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
Priority: Major » Critical
Status: Closed (fixed) » Active

if you apply patch from http://drupal.org/node/1183440 it doesn't seem to work

franz’s picture

Priority: Critical » Major
Status: Active » Closed (fixed)

Don't push issues into critical.

Why re-open this issue if the problem is with the patch in another issue?

seanr’s picture

Status: Closed (fixed) » Active

#4 also needs to be applied to FeedsTermProcessor.inc

twistor’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

We're tackling this.