Forums / Developer / invalid values in eznode_assignment
Marko Žmak
Sunday 18 July 2010 6:22:45 am
I came upon a strange eZ error when I was importing some data into the eZ database. The error was just "NodeAssignment '". Then I have looked at the kernel/content/ezcontentoperationcollection.php and found out that the error was produced in this block of code:
elseif ( $opCode == eZNodeAssignment::OP_CODE_MOVE ) { if ( $fromNodeID == 0 || $fromNodeID == -1 ) { eZDebug::writeError( "NodeAssignment '", $nodeAssignment->attribute( 'id' ), "' is marked with op_code='$opCode' but has no data in from_$ }
After that I lookd at the data in eznode_assignment table and found out that I have more than 1000 rows with op_code set to 5, and from_node_id set to -1, which according to the code below is invalid.
Where could this invalid data come from?
Is it safe to delete this rows in eznode_assignment?
I'm using eZ 4.1.3.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth