Foros de discusión
Importing data to custom entity causes portlet crash.
Brian Jamieson, modificado hace 12 años.
Importing data to custom entity causes portlet crash.
Junior Member Mensajes: 51 Fecha de incorporación: 15/10/10 Mensajes recientes
Hi,
I have a custom entity called CWFIPhoneBook, and after adding it to the portal, I can add, edit, and delete records via the UI.
I then want to add a whole bunch of records ~5000 or so. When I do this directly into the database via phpmyadmin or some such, the counter does not get updated and therefore the system throws an exception like so:
20:09:31,949 ERROR [JDBCExceptionReporter:101] Duplicate entry '201' for key 'PRIMARY'
So obviously, I need some way to ensure that the internal counter mechanism gets correctly updated.
This is a bit of a show stopper if data has to be imported for an entity.
I've seen nothing about it in either the admin or development docs that I can get my hands on.
Can anyone help please ?
Thanks,
Brian
I have a custom entity called CWFIPhoneBook, and after adding it to the portal, I can add, edit, and delete records via the UI.
I then want to add a whole bunch of records ~5000 or so. When I do this directly into the database via phpmyadmin or some such, the counter does not get updated and therefore the system throws an exception like so:
20:09:31,949 ERROR [JDBCExceptionReporter:101] Duplicate entry '201' for key 'PRIMARY'
So obviously, I need some way to ensure that the internal counter mechanism gets correctly updated.
This is a bit of a show stopper if data has to be imported for an entity.
I've seen nothing about it in either the admin or development docs that I can get my hands on.
Can anyone help please ?
Thanks,
Brian