SAP Knowledge Base Article - Preview

3211398 - Deployment failing due to locked environment - SAP Commerce Cloud

Symptom

The deployment to the selected environment is failing while creating the typesystem:

  • at de.hybris.platform.core.Registry.activateMasterTenantForInit(Registry.java:628)
    at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:730)
    at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:783)
    at de.hybris.platform.core.AbstractTenant.assureTypeSystemStructureIsUpToDate(AbstractTenant.java:883)
    at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.assureTypeSystemStructureIsUpToDate(TypeSystemHelper.java:116)
    at de.hybris.bootstrap.ddl.tools.AbstractStrategy.getStatementsToExecute(CreateTypeSystemNameColumnInYDeploymentsTable.java:84)
    at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:474)
    at org.springframework.dao.support.DataAccessUtils.nullableSingleResult(DataAccessUtils.java:97)
    at de.hybris.bootstrap.loader.Loader.main(Loader.java:110)
    at de.hybris.bootstrap.loader.Loader.execute(Loader.java:136)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at de.hybris.platform.util.ClientExecuter.execute(ClientExecuter.java:32)
    at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:560)
    at de.hybris.platform.core.Registry.activateTenant(Registry.java:711)
    at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:650)
    at de.hybris.bootstrap.ddl.tools.CreateTypeSystemNameColumnInYDeploymentsTable.getStatementsToExecute(CreateTypeSystemNameColumnInYDeploymentsTable.java:32)
    at de.hybris.bootstrap.ddl.tools.SqlServerStrategy.makeColumnPartOfPrimaryKey(CreateTypeSystemNameColumnInYDeploymentsTable.java:286)
    at de.hybris.bootstrap.ddl.tools.SqlServerStrategy.getPKConstraintName(CreateTypeSystemNameColumnInYDeploymentsTable.java:305)
    at de.hybris.bootstrap.ddl.tools.persistenceinfo.PersistenceInformation.query(PersistenceInformation.java:125)
    at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:480)
    Caused by: org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Exception in thread "main" java.lang.reflect.InvocationTargetException

In the above case, the issue should be related to the following scenarios:

  • You have a new provisioned environment and have not deployed with Initialize database.
  • You want to deploy with Initialize database after May 7th, 2022.


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud all versions

Keywords

deploy, ccv2, initialize, type system , KBA , CEC-SCC-CLA-DEP , Deployments , Problem

About this page

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

Search for additional results

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