on 2020 Aug 25 4:00 PM
Hi,
We are getting Transaction rolled back because it has been marked as rollback-only exception in SourceOrderAction in SAP Commerce Cloud and consignment process is not getting created. This is occurring ONLY in SAP Commerce Cloud. It is working fine in local machine.
We are using SAP Commerce v 2005 and done the setup with cx recipe and yacceleratorordermanagement. and there is no customization done in order management.
Do you know why do we get this error and how to resolve it?
Request clarification before answering.
Root cause:
In SourceOrderAction, the consignments get created by the allocation service. After their creation, the consigment workflow also gets started by DefaultWarehousingConsignmentWorkflowService.startConsignmentWorkflow() method. Here, the employee with lowest load belonging to warehouse's POSs gets fetched from DB and assigned to all the WorkflowActions. All the workflow agents of a particular site (say: powertools) are defined in ordermanagementaddon/import/stores/powertools/points-of-service.impex as shown below:
INSERT_UPDATE StoreEmployeeGroup;UID[unique=true];locname[lang=en];store(name)
;pw_warehouse_s_storeemployees;pw_warehouse_s Store Employee Group;pw_warehouse_s
;pw_warehouse_e_storeemployees;pw_warehouse_e Store Employee Group;pw_warehouse_e
;pw_warehouse_w_storeemployees;pw_warehouse_w Store Employee Group;pw_warehouse_w
;pw_warehouse_n_storeemployees;pw_warehouse_n Store Employee Group;pw_warehouse_n
INSERT_UPDATE Employee;uid[unique=true];name;groups(uid)
;WarehouseSAgent;WarehouseSAgent Warehouse Agent ;warehouseagentgroup,pw_warehouse_s_storeemployees
;WarehouseEAgent;WarehouseEAgent Warehouse Agent ;warehouseagentgroup,pw_warehouse_e_storeemployees
;WarehouseWAgent;WarehouseWAgent Warehouse Agent ;warehouseagentgroup,pw_warehouse_w_storeemployees
;WarehouseNAgent;WarehouseNAgent Warehouse Agent ;warehouseagentgroup,pw_warehouse_n_storeemployeeThe passwords for the above agents aren't defined in the impex and upon setting up 2005 CX recipe in our local environments, all the agents will by default be disabled (loginDisabled=true). As these agents are disabled, the below piece of code in DefaultWarehousingConsignmentWorkflowService.startConsignmentWorkflow() throws a ModelSavingException while trying to save WorkflowAction (AbstractWorkflowAction.setPrincipalAssigned() method) as the principalAssigned's loginDisabled=true.
workflow.getActions().forEach(action -> {
action.setPrincipalAssigned((PrincipalModel) finalSelectedUser);
this.getModelService().save(action);
});
The masked exception is JaloSystemException with message Assigned user WarehouseNAgent can not access the hMC as agents are disabled. The log statement "No PrincipalAssigned available for this order. A consignment will still be created." is misleading as we tend to think that Consignment will still be created. However, we end up getting a transaction rollback.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.