When I export a node as node code, delete that node from the site and finally re-import it into the same site, I get errors like this every time you re-save the node:

Duplicate entry '1076' for key 'PRIMARY' query: INSERT INTO uuid_node_revisions (vid, uuid) VALUES (1076, 'cae34d4e-47ef-11e1-a6af-5404a6675bac') in /etc/drupal6/all/modules/uuid/uuid.module on line 65.

So it has something to do with the new dependeny - the UUID (Universally Unique IDentifier) module. Why is it required at all if you only enable the main Node export module but none of its sub modules? There was no such dependency in 6.x-2.24.

Comments

danielb’s picture

Which version of UUID?

Why is it required at all if you only enable the main Node export module but none of its sub modules? There was no such dependency in 6.x-2.24.

A lot of those sub modules really should be packaged into the main module. UUID is important to exported content, and it is best if any exported content has a UUID attached.

roball’s picture

I am using the latest release of UUID for D6, which is currently 6.x-1.0-beta2.

danielb’s picture

6.x-1.0-beta2 was released 2010-Sep-08

It wasn't until February 2011 that this issue was fixed: #895622: user warning: Duplicate entry in uuid_node_revisions

I'd say give the dev version a crack, the UUID guy has been a bit slack with releases unfortunately. That is somewhat holding back our commitment to the UUID module, but it is what was recommended to me by several members of the community, I've even been to a damn lecture about the thing, and it is the most 'Drupal' way to create a unique ID for a node as of Drupal 6 and 7.

roball’s picture

I see and also recognized the bug still existing in UUID 6.x-1.0-beta2. However, don't want to rely on a dev snapshot on production sites. Node export 6.x-3.x is final, but the dependent module UUID 6.x isn't - that's kind of an suboptimal combination. Would you consider removing the dependency of node_export.module to uuid.module, at least until there is a final release of UUID?

danielb’s picture

I suppose, let me think about it. I'd much prefer the UUID stuff was solved, even if they release it'll still only be a beta.

rmcom’s picture

I consistently get these two error messages since I updated to the latest version:

query: INSERT INTO uuid_node_revisions (vid, uuid) VALUES (97, '7b856a94-434b-4294-0db6-f4db7d266ca9') in /var/www/sites/all/modules/contrib/uuid/uuid.module on line 65.

pg_query(): Query failed: ERROR: duplicate key value violates unique constraint "uuid_node_revisions_pkey" in /var/www/includes/database.pgsql.inc on line 138.

danielb’s picture

I don't even...

danielb’s picture

Status: Active » Fixed

Well no answer on that other issue I made in the UUID queue.

I've removed the UUID dependency from the main UUID module and moved it to the modules that currently use it.

I will also update the project page.

roball’s picture

Thank you for releasing 6.x-3.2 with the removed dependency!

danielb’s picture

I notice a lot of activity tonight in the UUID issue queue!
http://drupal.org/project/issues/uuid

Status: Fixed » Closed (fixed)

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

roball’s picture

Version: 6.x-3.1 » 6.x-3.4
Status: Closed (fixed) » Active

Well, Node export 6.x-3.2 and 6.x-3.3 did NOT depend on Uuid, which is officially still at the (buggy) v6.x-1.0-beta2, but Node export 6.x-3.4 suddenly again depends on it, due to the commit "Backport of handling imports when node already exists.". Why?

danielb’s picture

Status: Active » Fixed

This module must use UUID to uniquely identify nodes for that functionality to work, which in turn clears up a lot of confusion/problems with what is expected from Node export, which came up in other issues.
Feel free to use the previous release of this module if that is unacceptable to you. I'm not going to remove the functionality only to write it back in when they make another release. I refuse to keep going backwards with this module.

Status: Fixed » Closed (fixed)

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