Symptom
When replicating stock level from SAP Backend to Commerce, the initial replication was successful. But the update (i.e. second replication) failed with error message "Exception occurred during the execution of PrePersistHook: [sapCpiOmsStockLevelPersistenceHook]."
In Kibana, more detailed error message can be found.
{"instant":{"epochSecond":1712240192,"nanoOfSecond":455602915},"thread":"hybrisHTTP9","level":"DEBUG","loggerName":"de.hybris.platform.odata2services.odata.errors.CustomODataExceptionAwareErrorCallback","message":"Exception details","thrown":{"commonElementCount":0,"localizedMessage":"Exception occurred during the execution of hook [sapCpiOmsStockLevelPersistenceHook].","message":"Exception occurred during the execution of hook [sapCpiOmsStockLevelPersistenceHook].","name":"de.hybris.platform.inboundservices.persistence.hook.impl.PersistenceHookExecutionException","cause":{"commonElementCount":136,"localizedMessage":"External warehouses are not allowed to create AllocationEvent","message":"External warehouses are not allowed to create AllocationEvent","name":"java.lang.IllegalArgumentException","extendedStackTrace":[{"class":"com.google.common.base.Preconditions","method":"checkArgument","file":"Preconditions.java","line":143,"exact":false,"location":"guava-32.1.2-jre.jar","version":"?"},{"class":"de.hybris.platform.warehousing.inventoryevent.service.impl.DefaultInventoryEventService","method":"createIncreaseEvent","file":"DefaultInventoryEventService.java","line":212,"exact":false,"location":"warehousingserver.jar","version":"?"},{"class":"de.hybris.platform.sap.saporderexchangeoms.datahub.inbound.impl.SapOmsDataHubInboundStockLevelHelper","method":"updateStockLevel","file":"SapOmsDataHubInboundStockLevelHelper.java","line":81,"exact":false,"location":"saporderexchangeomsserver.jar","version":"?"},{"class":"de.hybris.platform.sap.sapcpiorderexchangeoms.inbound.events.SapCpiOmsStockLevelPersistenceHook","method":"execute","file":"SapCpiOmsStockLevelPersistenceHook.java","line":37,"exact":false,"location":"sapcpiorderexchangeomsserver.jar","version":"?"},{"class":"de.hybris.platform.inboundservices.persistence.hook.impl.DefaultPersistenceHookExecutor","method":"executePrePersistHook","file":"DefaultPersistenceHookExecutor.java","line":73,"exact":false,"location":"inboundservicesserver.jar","version":"?"}]}, |
Read more...
Environment
- SAP Commerce
- SAP Commerce Cloud
Product
SAP Commerce Cloud all versions ; SAP Commerce all versions
Keywords
stock update, sap back end, S/4HANA, , KBA , CEC-SCC-INT-IAPI , Integration APIs , CEC-SCC-INT-S4I-MOD , SAP Model , 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.