SAP Knowledge Base Article - Preview

2285082 - ModelSavingException: Number series error when using ETL Tools

Symptom

When using Extract, Transform and Load (ETL) Tools with hybris, there may arrise an Exception where the following error message is output in the logs:

ERROR [hybrisHTTP00] [IP.ADD.RE.SS] [ServiceName] Error de.hybris.platform.servicelayer.exceptions.ModelSavingException: Number series error: gave up after 10 tries.

    at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:1919)

    at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.save(ItemModelConverter.java:668)

    at de.hybris.platform.servicelayer.internal.model.impl.wrapper.ModelWrapper.save(ModelWrapper.java:336)

    at de.hybris.platform.servicelayer.internal.model.impl.ResolvingModelPersister.saveNewOnes(ResolvingModelPersister.java:80)

    at de.hybris.platform.servicelayer.internal.model.impl.ResolvingModelPersister.persist(ResolvingModelPersister.java:48)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveViaJalo(DefaultModelService.java:1059)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.doJaloPersistence(DefaultModelService.java:648)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.persistWrappers(DefaultModelService.java:1002)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.performPersistenceOperations(DefaultModelService.java:626)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAllInternal(DefaultModelService.java:620)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:600)

    at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:562)

    at de.hybris.platform.classification.strategy.impl.DefaultLoadStoreFeaturesStrategy.storeFeaturesInTx(DefaultLoadStoreFeaturesStrategy.java:205)

    at de.hybris.platform.classification.strategy.impl.DefaultLoadStoreFeaturesStrategy$2.doInTransactionWithoutResult(DefaultLoadStoreFeaturesStrategy.java:173)
Caused by: java.lang.IllegalStateException: Number series error: gave up after 10 tries.

    at de.hybris.platform.persistence.numberseries.DefaultSerialNumberDAO.fetchUniqueRange(DefaultSerialNumberDAO.java:216)

    at de.hybris.platform.persistence.numberseries.DefaultCachingSerialNumberGenerator.createAndRegisterNewCachedRange(DefaultCachingSerialNumberGenerator.java:198)

    at de.hybris.platform.persistence.numberseries.DefaultCachingSerialNumberGenerator.getUniqueNumber(DefaultCachingSerialNumberGenerator.java:169)

    at de.hybris.platform.core.DefaultPKCounterGenerator.fetchNextCounter(DefaultPKCounterGenerator.java:35)

    at de.hybris.platform.core.PK.createCounterPK(PK.java:201)

    at de.hybris.platform.jalo.Item.newInstanceInternal(Item.java:3884)

    at de.hybris.platform.jalo.Item.access$7(Item.java:3856)

    at de.hybris.platform.jalo.Item$19.execute(Item.java:3834)

    at de.hybris.platform.tx.Transaction.execute(Transaction.java:1195)

    at de.hybris.platform.tx.Transaction.execute(Transaction.java:1160)

    at de.hybris.platform.jalo.Item.newInstance(Item.java:3829)

    at de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1340)

    at de.hybris.platform.jalo.type.ComposedType.newInstance(ComposedType.java:1260)

    at de.hybris.platform.servicelayer.internal.converter.impl.ItemModelConverter.createNewItem(ItemModelConverter.java:1906)

The data will not be persisted, or it will take multipe attempts to persist the data.


Read more...

Environment

All SAP Hybris Commerce Suite Versions that are using/being used by an ETL Tool

Product

SAP Commerce all versions

Keywords

KBA , CEC-COM-CPS-COR , CPS Core (SAP Commerce) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.