From 9a5f2f109a631d3873584d1a3779e996edc34b96 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 17 Sep 2010 08:55:58 +0000
Subject: [PATCH] add a very useful information to show how to fix this
 problem.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38441 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py b/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py
index 1cafb8c696..98eea03fc7 100644
--- a/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py
+++ b/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py
@@ -98,8 +98,9 @@ class SQLNonContinuousIncreasingIdGenerator(IdGenerator):
       if last_max_id_dict.get(id_group, None) is not None and \
           last_max_id_dict[id_group].value > new_id:
         raise ValueError, 'The last_id %s stored in zodb dictionary is ' \
-            'higher than the new id %s generated for id_group %s' % \
-            (last_max_id_dict[id_group].value, new_id, id_group)
+            'higher than the new id %s generated for id_group %s. ' \
+            'invoke %s/rebuildSqlTable to fix this problem.' % \
+            (last_max_id_dict[id_group].value, new_id, id_group, self.absolute_url())
       # Check the store interval to store the data
       store_interval = self.getStoreInterval()
       if not store_interval:
-- 
2.30.9