Frameworks & Tools
only in this topic
Open this post in threaded view
Report Content as Inappropriate
To speed up things I am trying to minimise the number of units of work I use, and now I am stumbling on the following.
The situation is as follows:
I am importing an XML file with numerous items in a single unit of work (no problem).
I then suppress them all while recording their parameters including all the primary keys also in a single unit of work with no problem.
However, when I re-insert the objects with their known primary keys in the database (SQLLite in this case) all goes well if I do it row after row.
However when I do a group write Glorp request a new Sequence which consequently fails with an "Inconsistent values in field" error.
In the error log:
I notably find the following:
optimized  in Glorp.SQLite3Sequence>>postWriteAssignSequenceValueFor:inRows:using:
ithrow = a Glorp.DatabaseRow(MMT_RESOURCES)
.aDatabaseField = Field(MMT_RESOURCES.res_id)
lastValue = 7
Context PC = 8
For as far as I understand it the group write command cleary want a fresh primary key « 7 » in this case while the original and available primary key « res_id = 2 » is avaiable.
Any explanations ? Do I do something wrong could this be due to binding ?
This is 8.2.1
28 Av Alphonse Denis
83400 Hyères, France
Now the most popular Project Management Tool on MacOS
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit
Return to GLORP
1 view|%1 views
Free forum by Nabble
Edit this page