Failure Handling
Update Corrective Machine Task Workflow
Error Paths
1. Maintenance Management API Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetMmInfos→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve task data from Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
2. User Information Retrieval Failure
-
Trigger: The call to retrieve user information fails
-
Condition:
varSuccessis false afterGetUserInfoActivity -
Path:
GetUserInfoActivity→GetUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID for the assigned user, workflow terminates
-
Possible Cause: The assigned user does not exist in MACMA or ERPConn has wrong permissions to access Maintenance Management
3. Order Operation Update Failure
-
Trigger: The call to update order operation fails
-
Condition:
varSuccessis false afterUpdateOperationActivity -
Path:
UpdateOperationActivity→UpdateOperationIfActivity(false) →ErrorSetActivity -
Impact: Unable to update operation details in SAP, workflow terminates
-
Possible Cause: Invalid operation ID or invalid API key
4. Operation Long Text Check Failure
-
Trigger: The call to check operation long text fails
-
Condition:
varSuccessis false afterCheckOperationLongTextActivity -
Path:
CheckOperationLongTextActivity→CheckOperationLongTextSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to check if long text exists for the operation, workflow terminates
-
Possible Cause: Invalid operation ID or invalid API key
5. Operation Long Text Creation Failure
-
Trigger: The call to create operation long text fails
-
Condition:
varSuccessis false afterCreateOperationLongTextActivity -
Path:
CreateOperationLongTextActivity→CreateOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to create long text for the operation, workflow terminates
-
Possible Cause: Invalid operation ID or invalid API key
6. Operation Long Text Update Failure
-
Trigger: The call to update operation long text fails
-
Condition:
varSuccessis false afterUpdateOperationLongTextActivity -
Path:
UpdateOperationLongTextActivity→UpdateOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to update long text for the operation, workflow terminates
-
Possible Cause: Invalid operation ID or invalid API key
Error Paths for missing employee id
1. Missing Employee ID for Assigned User
-
Trigger: A user is assigned to the task but doesn’t have an employee ID defined
-
Condition:
varTaskResponseObj.AssignedUsername !== null && String.IsNullOrEmpty(varEmployeeId)is true -
Path:
CheckIfUserHasBeenAssignedActivity(true) →ErrorMissingEmployeeIdSetActivity -
Impact: Basic task data is synchronized, but the user assignment cannot be properly reflected in SAP
-
Possible Cause: The assigned user in Maintenance Management does not have an EmployeeId defined in MACMA
General Error
{
"Success": false,
"Message": "Error inside the workflow. Please check the orchestrator log for more details."
}
Corrective Order Changed Workflow
Error Paths
1. Message Flow Retrieval Failure
-
Trigger: Invalid message ID or message flow data cannot be retrieved
-
Condition: When
GetMessageFlowActivityfails to retrieve valid message flow data -
Path:
GetMessageFlowActivity→ParseEventDataActivity→ Error detected during event parsing -
Impact: Workflow fails without processing any order changes
-
Possible Cause: Invalid message possibly due to misconfiguration in Solace event bridge
2. Order Retrieval Failure
-
Trigger:
GetOrderActivityoperation fails -
Condition: When
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve order information to process changes
-
Possible Cause: Invalid order ID or invalid API key
3. Task ID Retrieval Failure
-
Trigger:
GetTaskIdByExternalIdActivityfails -
Condition: When
varSuccessis false afterGetTaskIdByExternalIdActivity -
Path:
ForEachOperationLoopActivity→GetMMTaskIdActivity→IsGetMMTaskIdSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot locate corresponding task in Maintenance Management
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
4. Corrective Task Retrieval Failure
-
Trigger:
GetCorrectiveTaskActivityfails -
Condition: When
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve task details to apply updates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
5. External System Lock Failure
-
Trigger:
SetLockByExternalSystemActivityfails -
Condition: When
varSuccessis false afterSetLockByExternalSystemActivity -
Path:
SetLockByExternalSystemActivity→SetLockByExternalSystemIfActivity(false) →ErrorSetActivity -
Impact: Cannot set external system lock, which is required for state changes
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
6. Task State Update Failure
-
Trigger:
SetTaskStateActivityfails -
Condition: When
varSuccessis false afterSetTaskStateActivity -
Path:
SetTaskStateActivity→SetTaskStateSuccessIfActivity→ErrorSetActivity -
Impact: Cannot update task state to match order state changes
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
Create Corrective Task Workflow
Error Paths
1. Maintenance Management API Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetMmInfos→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve task data from Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
2. Assigned User Info Retrieval Failure
-
Trigger: The call to retrieve assigned user information fails
-
Condition:
varSuccessis false afterGetAssignedUserInfoActivity -
Path:
GetAssignedUserInfoActivity→GetAssignedUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID for assigned user, workflow terminates
-
Possible Cause: The assigned user does not exist in MACMA or ERPConn has wrong permissions to access MACMA
3. Device Retrieval Failure
-
Trigger: The call to retrieve device information fails
-
Condition:
varSuccessis false afterGetDeviceActivity -
Path:
GetDeviceActivity→GetDeviceIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve device details for the task, workflow terminates
-
Possible Cause: The device with the specified SAP ID does not exist in MDM or ERPConn has wrong permissions to access MDM
4. Created By User Info Retrieval Failure
-
Trigger: The call to retrieve creator’s user information fails
-
Condition:
varSuccessis false afterGetCreatedByUserInfoActivity -
Path:
GetCreatedByUserInfoActivity→GetCreatedByUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID of task creator, workflow terminates
-
Possible Cause: The creator user does not exist in MACMA or ERPConn has wrong permissions to access MACMA
5. Create Notification Failure
-
Trigger: The call to create a notification in SAP fails
-
Condition:
varSuccessis false afterCreateNotificationActivity -
Path:
CreateNotificationActivity→CreateNotificationIfActivity(false) →ErrorSetActivity -
Impact: Unable to create notification in SAP, workflow terminates
-
Possible Cause: Invalid notification data or invalid API key
6. Create Order Failure
-
Trigger: The call to create an order in SAP fails
-
Condition:
varSuccessis false afterCreateOrderActivity -
Path:
CreateOrderActivity→CreateOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to create order in SAP, workflow terminates
-
Possible Cause: Invalid order data or invalid API key
7. Update Order Failure
-
Trigger: The call to update an order in SAP fails
-
Condition:
varSuccessis false afterUpdateOrderActivity -
Path:
UpdateOrderActivity→UpdateOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to update order in SAP, workflow terminates
-
Possible Cause: Invalid order data or invalid API key
8. Get Next Order Operation ID Failure
-
Trigger: The call to get next operation ID fails
-
Condition:
varSuccessis false afterGetNextOrderOperationIdActivity -
Path:
GetNextOrderOperationIdActivity→GetNextOrderOperationIdIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve next operation ID for related task, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
9. Create Order Operation Failure
-
Trigger: The call to create an order operation fails
-
Condition:
varSuccessis false afterCreateOrderOperationActivity -
Path:
CreateOrderOperationActivity→CreateOrderOperationIfActivity(false) →ErrorSetActivity -
Impact: Unable to create operation in SAP order, workflow terminates
-
Possible Cause: Invalid operation data or invalid API key
10. Create Order Operation Long Text Failure
-
Trigger: The call to create long text for order operation fails
-
Condition:
varSuccessis false afterCreateOrderOperationActivity -
Path:
CreateOrderOperationLongTextActivity→CreateOrderOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to add detailed description to operation, workflow terminates
-
Possible Cause: Invalid operation ID or invalid API key
11. Update External IDs Failure
-
Trigger: The call to update external IDs in Maintenance Management fails
-
Condition:
varSuccessis false afterUpdateExternalIdsActivity -
Path:
UpdateExternalIdsActivity→UpdateExternalIdsIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task with SAP IDs, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
12. Missing Equipment ID Error
-
Trigger: The device doesn’t have a SAP ID defined
-
Condition:
varDeviceResponse["identifiers"]["sapid"] != nullis false -
Path:
CheckForExistingEquipmentIdIfActivity(false) →MissingEquipmentIdErrorActivity -
Impact: Unable to create task in SAP without equipment ID, workflow terminates
-
Possible Cause: The device in MDM does not have a SAP ID defined
General Error
{
"Success": false,
"Message": "Error inside the workflow. Please check the orchestrator log for more details."
}
Malfunction Update Workflow
Error Paths
1. External ID Retrieval Failure
-
Trigger: External ID is not available after multiple attempts
-
Condition: After 4 attempts,
varMalfunctionResponse?["result"]?["externalId"]?.Value<string?>() == null -
Path:
IsExternalIdAvailableWhileActivity→GetMalfunctionIfActivity(false) →ErrorSetActivity -
Impact: Cannot update malfunction without external ID, workflow terminates
-
Possible Cause: The malfunction does not have an external ID set in Maintenance Management
2. Malfunction Retrieval Failure
-
Trigger: The call to retrieve malfunction information fails
-
Condition:
varSuccessis false afterGetMalfunctionActivity -
Path:
GetMalfunctionActivity→GetMalfunctionIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve malfunction data, workflow terminates
-
Possible Cause: Invalid malfunction ID or ERPConn has wrong permissions to access Maintenance Management
3. Notification Retrieval Failure
-
Trigger: The call to retrieve notification information fails
-
Condition:
varSuccessis false afterGetNotificationActivity -
Path:
GetNotificationActivity→GetNotificationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve notification data from ERP, workflow terminates
-
Possible Cause: Invalid notification ID or invalid API key
4. Update Notification Failure
-
Trigger: The call to update notification fails
-
Condition:
varSuccessis false afterUpdateNotificationActivity -
Path:
UpdateNotificationActivity→UpdateNotificationIfActivity(false) →ErrorSetActivity -
Impact: Unable to update notification in ERP, workflow terminates
-
Possible Cause: Invalid notification data or invalid API key
5. Create Notification Item Failure
-
Trigger: The call to create notification item fails
-
Condition:
varSuccessis false afterCreateNotificationItemActivity -
Path:
CreateNotificationItemActivity→CreateNotificationItemIfActivity(false) →ErrorSetActivity -
Impact: Unable to create notification item in ERP, workflow terminates
-
Possible Cause: Invalid notification item data or invalid API key
6. Update Notification Item Failure
-
Trigger: The call to update notification item fails
-
Condition:
varSuccessis false afterUpdateNotificationItemActivity -
Path:
UpdateNotificationItemActivity→UpdateNotificationItemIfActivity(false) →ErrorSetActivity -
Impact: Unable to update notification item in ERP, workflow terminates
-
Possible Cause: Invalid notification item data or invalid API key
7. Create Notification Item Cause Failure
-
Trigger: The call to create notification item cause fails
-
Condition:
varSuccessis false afterCreateNotificationItemCauseActivity -
Path:
CreateNotificationItemCauseActivity→CreateNotificationItemCauseIfActivity(false) →ErrorSetActivity -
Impact: Unable to create notification item cause in ERP, workflow terminates
-
Possible Cause: Invalid notification item cause data or invalid API key
8. Update Notification Item Cause Failure
-
Trigger: The call to update notification item cause fails
-
Condition:
varSuccessis false afterUpdateNotificationItemCauseActivity -
Path:
UpdateNotificationItemCauseActivity→UpdateNotificationItemCauseIfActivity(false) →ErrorSetActivity -
Impact: Unable to update notification item cause in ERP, workflow terminates
-
Possible Cause: Invalid notification item cause data or invalid API key
Notification Changed Workflow
Error Paths
1. Message Flow Retrieval Failure
-
Trigger: Invalid message ID or message flow data cannot be retrieved
-
Condition: When parsing event data fails after
GetEventDataActivity -
Path:
GetEventDataActivity→ParseEventDataActivity→ Event parsing fails -
Impact: Workflow cannot process the notification change event
-
Possible Cause: Invalid message possibly due to misconfiguration in Solace event bridge
2. Notification Retrieval Failure
-
Trigger: The call to retrieve notification information fails
-
Condition:
varSuccessis false afterGetNotificationActivity -
Path:
GetNotificationActivity→GetNotificationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve notification details to process changes
-
Possible Cause: Invalid notification ID or invalid API key
3. Maintenance Task ID Retrieval Failure
-
Trigger: The call to get task ID by external ID fails
-
Condition:
varSuccessis false afterGetMaintenanceTaskIdActivity -
Path:
GetMaintenanceTaskIdActivity→GetMaintenanceTaskIdIfActivity(false) →ErrorSetActivity -
Impact: Cannot find the corresponding maintenance task for the notification
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
4. Corrective Task Retrieval Failure
-
Trigger: The call to get corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve corrective task details to apply notification updates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
5. Preventive Task Retrieval Failure
-
Trigger: The call to get preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve preventive task details to apply notification updates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
6. Latest Notification Retrieval Failure
-
Trigger: The second call to retrieve notification information fails
-
Condition:
varSuccessis false afterGetLatestNotificationActivity -
Path:
GetLatestNotificationActivity→GetLatestNotificationIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve the most current notification state for comparison
-
Possible Cause: Invalid notification ID or invalid API key
7. Malfunction Update Failure
-
Trigger: The call to update malfunction information fails
-
Condition:
varSuccessis false afterPatchMalfunctionActivity -
Path:
PatchMalfunctionActivity→PatchMalfunctionIfActivity(false) →ErrorSetActivity -
Impact: Cannot update malfunction details in Maintenance Management
-
Possible Cause: Invalid malfunction ID, malfunction data or ERPConn has wrong permissions to access Maintenance Management
8. Preventive Task Update Failure
-
Trigger: The call to update preventive task information fails
-
Condition:
varSuccessis false afterPatchPlannedMaintenanceActivity -
Path:
PatchPlannedMaintenanceActivity→PatchPreventiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Cannot update preventive task details in Maintenance Management
-
Possible Cause: Invalid planned maintenance ID, planned maintenance data or ERPConn has wrong permissions to access Maintenance Management
Order Confirmation Created Workflow
Error Paths
1. Order Confirmation Retrieval Failure
-
Trigger: The call to retrieve order confirmation information fails
-
Condition:
varSuccessis false afterGetOrderConfirmationActivity -
Path:
GetOrderConfirmationActivity→GetOrderConfirmationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve confirmation details from SAP, workflow terminates
-
Possible Cause: Invalid order confirmation ID or invalid API key
2. No Time Confirmed Error
-
Trigger: Order confirmation with zero confirmed time
-
Condition:
(varOrderConfirmationResponseObject?.ConfirmedEffort?.TotalSeconds ?? 0) ⇐ 0 -
Path:
DeserializeOrderConfirmationResponseActivity→IsTimeConfirmedIfActivity(false) →NoTimeConfirmedErrorSetActivity -
Impact: Work time confirmation cannot be created with zero hours, workflow terminates with specific error
-
Possible Cause: The order confirmation does not have any time booked
3. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve order details from SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
4. Confirmed User Retrieval Failure
-
Trigger: The call to retrieve user information for the confirming user fails
-
Condition:
varSuccessis false afterGetConfirmedUserActivity -
Path:
GetConfirmedUserActivity→GetConfirmedUserIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve user details for confirmation, workflow terminates
-
Possible Cause: The confirming user does not exist in MACMA or ERPConn has wrong permissions to access MACMA
5. Task ID Retrieval Failure
-
Trigger: The call to retrieve task ID by external ID fails
-
Condition:
varSuccessis false afterGetMaintenanceTaskIdActivity -
Path:
GetMaintenanceTaskIdActivity→GetMaintenanceTaskIdSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to locate corresponding task in Maintenance Management, workflow terminates
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
6. Corrective Task Retrieval Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve corrective task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
7. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve preventive task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
8. Work Time Confirmation Creation Failure
-
Trigger: The call to create work time confirmation fails
-
Condition:
varSuccessis false afterCreateWorkTimeConfirmationActivity -
Path:
CreateWorkTimeConfirmationActivity→CreateWorkTimeConfirmationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to create confirmed effort in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID, invalid confirmation data or ERPConn has wrong permissions to access Maintenance Management
General Error
{
"Success": false,
"Message": "Error inside the workflow. Please check the orchestrator log for more details."
}
Order Confirmation Deleted Workflow
Error Paths
1. Order Confirmation Retrieval Failure
-
Trigger: The call to retrieve order confirmation information fails
-
Condition:
varSuccessis false afterGetOrderConfirmationActivity -
Path:
GetOrderConfirmationActivity→GetOrderConfirmationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve confirmation details from SAP, workflow terminates
-
Possible Cause: Invalid order confirmation ID or invalid API key
2. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve order details from SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
3. Task ID Retrieval Failure
-
Trigger: The call to retrieve task ID by external ID fails
-
Condition:
varSuccessis false afterGetMaintenanceTaskIdActivity -
Path:
GetMaintenanceTaskIdActivity→GetMaintenanceTaskIdSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to locate corresponding task in Maintenance Management, workflow terminates
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
4. Corrective Task Retrieval Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve corrective task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
5. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve preventive task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
6. Work Time Confirmation Deletion Failure
-
Trigger: The call to delete work time confirmation fails
-
Condition:
varSuccessis false afterDeleteWorkTimeConfirmationActivity -
Path:
DeleteWorkTimeConfirmationActivity→DeleteWorkTimeConfirmationActivitySuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to delete confirmed effort in Maintenance Management, workflow terminates
-
Possible Cause: Invalid order confirmation ID or invalid API key
Order Created Workflow
Error Paths
1. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve order details from SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
2. Missing Equipment Error
-
Trigger: The order doesn’t have an equipment selected
-
Condition:
String.IsNullOrEmpty(varOrderResponseObject.Equipment)is true -
Path:
DeserializeOrderResponse→EquipmentSelectedIfActivity(true) →MissingEquipmentErrorSetActivity -
Impact: Task creation fails as equipment is required, workflow terminates with specific error
-
Possible Cause: No equipment has been selected for the order in SAP
3. Notification Retrieval Failure
-
Trigger: The call to retrieve notification information fails
-
Condition:
varSuccessis false afterGetNotificationActivity -
Path:
GetNotificationActivity→IsGetNotificationSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve notification details from SAP, workflow terminates
-
Possible Cause: Invalid notification ID or invalid API key
4. Device Retrieval Failure
-
Trigger: The call to retrieve device information from MDM fails
-
Condition:
varSuccessis false afterGetMdmDeviceActivity -
Path:
GetMdmDeviceActivity→GetMdmDeviceIfActivity(false) →ErrorSetActivity -
Impact: Unable to find device with matching SAP ID in MDM, workflow terminates
-
Possible Cause: The device with the specified SAP ID does not exist in MDM or ERPConn has wrong permissions to access MDM
5. Assigned User Retrieval Failure
-
Trigger: The call to retrieve assigned user information fails
-
Condition:
varSuccessis false afterGetAssignedUserActivity -
Path:
GetAssignedUserActivity→GetAssignedUserIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve assigned user details, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
6. Solver Group Retrieval Failure
-
Trigger: The call to retrieve solver group information fails
-
Condition:
varSuccessis false afterGetSolverGroupInfoActivity -
Path:
GetSolverGroupInfoActivity→GetSolverGroupInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve solver group details from MACMA, workflow terminates
-
Possible Cause: The solver group does not exist in MACMA or ERPConn has wrong permissions to access MACMA
7. Created By User Retrieval Failure
-
Trigger: The call to retrieve creator’s user information fails
-
Condition:
varSuccessis false afterGetCreatedByUserActivity -
Path:
GetCreatedByUserActivity→GetUserInfosIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve user details of task creator, workflow terminates
-
Possible Cause: The creator user does not exist in MACMA or ERPConn has wrong permissions to access MACMA
8. Corrective Task Creation Failure
-
Trigger: The call to create a corrective task fails
-
Condition:
varSuccessis false afterCreateCorrectiveTaskActivity -
Path:
CreateCorrectiveTaskActivity→CreateCorrectiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to create corrective task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
9. Preventive Task Creation Failure
-
Trigger: The call to create a preventive task fails
-
Condition:
varSuccessis false afterCreatePreventiveTaskActivity -
Path:
CreatePreventiveTaskActivity→CreatePreventiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to create preventive task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
10. External IDs Update Failure
-
Trigger: The call to update external IDs fails
-
Condition:
varSuccessis false afterUpdateCorrectiveExternalIdsActivityorUpdatePreventiveExternalIdActivity -
Path:
UpdateCorrectiveExternalIdsActivity/UpdatePreventiveExternalIdActivity→UpdateExternalIdsIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task with SAP IDs, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
11. External System Lock Failure
-
Trigger: The call to set external system lock fails
-
Condition:
varSuccessis false afterSetLockByExternalSystemActivity -
Path:
SetLockByExternalSystemActivity→SetLockByExternalSystemIfActivity(false) →ErrorSetActivity -
Impact: Unable to set lock for external system updates, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
12. Task State Update Failure
-
Trigger: The call to set task state fails
-
Condition:
varSuccessis false afterSetTaskStateActivity -
Path:
SetTaskStateActivity→PutTaskStateSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task state to match order state, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
General Error
{
"Success": false,
"Message": "Error inside the workflow. Please check the orchestrator log for more details."
}
Order Operation Changed Workflow
Error Paths
1. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve order details from SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
2. Assigned User Retrieval Failure
-
Trigger: The call to retrieve assigned user information fails
-
Condition:
varSuccessis false afterGetAssignedUserActivity -
Path:
GetAssignedUserActivity→GetAssignedUserIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve user details for assigned employee, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
3. Solver Group Retrieval Failure
-
Trigger: The call to retrieve solver group information fails
-
Condition:
varSuccessis false afterGetGroupActivity -
Path:
GetGroupActivity→GetGroupsIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve solver group details from MACMA, workflow terminates
-
Possible Cause: The solver group does not exist in MACMA or ERPConn has wrong permissions to access MACMA
4. Task ID Retrieval Failure
-
Trigger: The call to retrieve task ID by external ID fails
-
Condition:
varSuccessis false afterGetMMTaskIdActivity -
Path:
GetMMTaskIdActivity→IsGetMMTaskIdSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to locate corresponding task in Maintenance Management, workflow terminates#
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
5. Corrective Task Retrieval Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve corrective task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
6. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve preventive task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
7. Latest Order Retrieval Failure
-
Trigger: The second call to retrieve order information fails
-
Condition:
varSuccessis false afterGetLatestOrderActivity -
Path:
GetLatestOrderActivity→GetLatestOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve latest order details for verification, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
8. Corrective Task Update Failure
-
Trigger: The call to patch corrective task fails
-
Condition:
varSuccessis false afterPatchCorrectiveTaskActivity -
Path:
PatchCorrectiveTaskActivity→PatchCorrectiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to update corrective task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
9. Preventive Task Update Failure
-
Trigger: The call to patch preventive task fails
-
Condition:
varSuccessis false afterPatchPreventiveTaskActivity -
Path:
PatchPreventiveTaskActivity→PatchPreventiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to update preventive task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
Order Operation Created Workflow
Error Paths
1. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve order details from SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
2. Corrective Task Retrieval Failure
-
Trigger: The call to retrieve corrective task information fails
-
Condition:
varSuccessis false afterGetCorrectiveTaskActivity -
Path:
GetCorrectiveTaskActivity→GetCorrectiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve corrective task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
3. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve preventive task details, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
4. Notification Retrieval Failure
-
Trigger: The call to retrieve notification information fails
-
Condition:
varSuccessis false afterGetNotificationActivity -
Path:
GetNotificationActivity→GetNotificationIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve notification details from SAP, workflow terminates
-
Possible Cause: Invalid notification ID or invalid API key
5. Order Operation Retrieval Failure
-
Trigger: The call to retrieve order operation information fails
-
Condition:
varSuccessis false afterGetOrderOperationActivity -
Path:
GetOrderOperationActivity→GetOperationIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve operation details from SAP, workflow terminates
-
Possible Cause: Invalid order operation ID or invalid API key
6. Device Retrieval Failure
-
Trigger: The call to retrieve device information fails
-
Condition:
varSuccessis false afterGetDeviceBySapEquipmentIdActivity -
Path:
GetDeviceBySapEquipmentIdActivity→GetDeviceBySapEquipmentIdIfActivity(false) →ErrorSetActivity -
Impact: Unable to find device with matching SAP ID in MDM, workflow terminates
-
Possible Cause: The device with the specified SAP ID does not exist in MDM or ERPConn has wrong permissions to access MDM
7. User Retrieval Failure
-
Trigger: The call to retrieve assigned user information fails
-
Condition:
varSuccessis false afterGetAssignedUserActivity -
Path:
GetAssignedUserActivity→GetAssignedUserIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve user details for assigned employee, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
8. Group Retrieval Failure
-
Trigger: The call to retrieve solver group information fails
-
Condition:
varSuccessis false afterGetGroupActivity -
Path:
GetGroupActivity→GetGroupsSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve solver group details, workflow terminates
-
Possible Cause: The solver group does not exist in MACMA or ERPConn has wrong permissions to access MACMA
9. Corrective Task Creation Failure
-
Trigger: The call to create corrective task fails
-
Condition:
varSuccessis false afterCreateCorrectiveTaskActivity -
Path:
CreateCorrectiveTaskActivity→CreateCorrectiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to create corrective task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
10. Preventive Task Creation Failure
-
Trigger: The call to create preventive task fails
-
Condition:
varSuccessis false afterCreatePreventiveTaskActivity -
Path:
CreatePreventiveTaskActivity→CreatePreventiveTaskIfActivity(false) →ErrorSetActivity -
Impact: Unable to create preventive task in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task data or ERPConn has wrong permissions to access Maintenance Management
11. External IDs Update Failure
-
Trigger: The call to update external IDs fails
-
Condition:
varSuccessis false afterUpdateExternalIdsActivity -
Path:
UpdateExternalIdsActivity→UpdateExternalIdsIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task with SAP IDs, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
12. External System Lock Failure
-
Trigger: The call to set external system lock fails
-
Condition:
varSuccessis false afterSetLockByExternalSystemActivity -
Path:
SetLockByExternalSystemActivity→SetLockByExternalSystemIfActivity(false) →ErrorSetActivity -
Impact: Unable to set lock for external system updates, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
13. Task State Update Failure
-
Trigger: The call to update task state fails
-
Condition:
varSuccessis false afterSetTaskStateActivity -
Path:
SetTaskStateActivity→PutTaskStateSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task state to match order state, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
Update Planned Maintenance Workflow
Error Paths
1. External ID Retrieval Failure
-
Trigger: After multiple attempts (4), the external ID for the planned maintenance is still not available
-
Condition:
varPlannedMaintenance?["result"]?["externalId"]?.Value<string?>() == null && varWhileExternalIdCounter > 4 -
Path:
IsExternalIdAvailableWhileActivity→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve external ID required for synchronization with ERP, workflow terminates
-
Possible Cause: The external ID was never set in the planned maintenance or ERPConn has wrong permissions to access Maintenance Management
2. Planned Maintenance Retrieval Failure
-
Trigger: The call to retrieve planned maintenance information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve planned maintenance details from Maintenance Management, workflow terminates
-
Possible Cause: Invalid planned maintenance ID or ERPConn has wrong permissions to access Maintenance Management
3. Update Notification Failure
-
Trigger: The call to update notification fails
-
Condition:
varSuccessis false afterUpdateNotificationActivity -
Path:
UpdateNotificationActivity→UpdateNotificationIfActivity(false) →ErrorSetActivity -
Impact: Unable to update notification in ERP with changes from planned maintenance, workflow terminates
-
Possible Cause: Invalid notification ID, invalid notification data or invalid API key
Update Preventive Machine Task Workflow
Error Paths
1. External ID Availability Failure
-
Trigger: After multiple attempts (4), the external ID for the preventive task is still not available
-
Condition:
varTaskResponse?["result"]?["externalId"]?.Value<string?>() == null && varWhileExternalIdCounter > 4 -
Path:
IsExternalIdAvailableWhileActivity→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve external ID required for synchronization with ERP, workflow terminates
-
Possible Cause: The external ID was never set in the task or ERPConn has wrong permissions to access Maintenance Management
2. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetMmInfos→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve preventive task details from Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
3. User Information Retrieval Failure
-
Trigger: The call to retrieve user information fails
-
Condition:
varSuccessis false afterGetUserInfoActivity -
Path:
GetUserInfoActivity→GetUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID for the assigned user, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
4. Operation Update Failure
-
Trigger: The call to update order operation fails
-
Condition:
varSuccessis false afterUpdateOperationActivity -
Path:
UpdateOperationActivity→UpdateOperationIfActivity(false) →ErrorSetActivity -
Impact: Unable to update operation details in SAP, workflow terminates
-
Possible Cause: Invalid operation data, invalid order operation ID or invalid API key
5. Operation Long Text Check Failure
-
Trigger: The call to check operation long text fails
-
Condition:
varSuccessis false afterCheckOperationLongTextActivity -
Path:
CheckOperationLongTextActivity→CheckOperationLongTextSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to check if long text exists for the operation, workflow terminates
-
Possible Cause: Invalid operation data, invalid order operation ID or invalid API key
6. Operation Long Text Creation Failure
-
Trigger: The call to create operation long text fails
-
Condition:
varSuccessis false afterCreateOperationLongTextActivity -
Path:
CreateOperationLongTextActivity→CreateOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to create long text for the operation, workflow terminates
-
Possible Cause: Invalid operation data, invalid order operation ID or invalid API key
7. Operation Long Text Update Failure
-
Trigger: The call to update operation long text fails
-
Condition:
varSuccessis false afterUpdateOperationLongTextActivity -
Path:
UpdateOperationLongTextActivity→UpdateOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to update long text for the operation, workflow terminates
-
Possible Cause: Invalid operation data, invalid order operation ID or invalid API key
Preventive Order Changed Workflow
Error Paths
1. Message Flow Processing Failure
-
Trigger: Invalid message ID or message flow data cannot be retrieved
-
Condition: When
ParseEventDataActivityfails to parse event data correctly or event is invalid -
Path:
GetMessageFlowActivity→ParseEventDataActivity→IsValidEventIfActivity(false) →AbortActivity -
Impact: Workflow cannot process the order change event, terminates with "Nothing to do" message
-
Possible Cause: The event data is malformed or does not contain necessary information
2. Order Retrieval Failure
-
Trigger: The call to retrieve order information fails
-
Condition:
varSuccessis false afterGetOrderActivity -
Path:
GetOrderActivity→GetOrderSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve order details from SAP to process changes, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
3. Task ID Retrieval Failure
-
Trigger: The call to retrieve task ID by external ID fails
-
Condition:
varSuccessis false afterGetMMTaskIdActivity -
Path:
ForEachOperationLoopActivity→GetMMTaskIdActivity→IsGetMMTaskIdSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot locate corresponding preventive task in Maintenance Management, workflow terminates
-
Possible Cause: The external ID does not match any task in Maintenance Management or ERPConn has wrong permissions to access Maintenance Management
4. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetPreventiveTaskActivity→GetPreventiveTaskSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot retrieve preventive task details to apply updates, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
5. Planned Maintenance Update Failure
-
Trigger: The call to patch planned maintenance fails
-
Condition:
varSuccessis false afterPatchPlannedMaintenanceActivity -
Path:
PatchPlannedMaintenanceActivity→PatchPlannedMaintenanceIfActivity(false) →ErrorSetActivity -
Impact: Cannot update planned maintenance data in Maintenance Management, workflow terminates
-
Possible Cause: Invalid planned maintenance data or ERPConn has wrong permissions to access Maintenance Management
6. External System Lock Failure
-
Trigger: The call to set external system lock fails
-
Condition:
varSuccessis false afterSetLockByExternalSystemActivity -
Path:
SetLockByExternalSystemActivity→SetLockByExternalSystemIfActivity(false) →ErrorSetActivity -
Impact: Cannot set lock for external system updates, which is required for state changes, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
7. Task State Update Failure
-
Trigger: The call to update task state fails
-
Condition:
varSuccessis false afterSetTaskStateActivity -
Path:
SetTaskStateActivity→PutTaskStateSuccessIfActivity(false) →ErrorSetActivity -
Impact: Cannot update task state to match order state changes, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
Create Preventive Task Workflow
Error Paths
1. Preventive Task Retrieval Failure
-
Trigger: The call to retrieve preventive task information fails
-
Condition:
varSuccessis false afterGetPreventiveTaskActivity -
Path:
GetMmInfos→IsMmCallSuccessIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve task data from Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
2. Assigned User Information Retrieval Failure
-
Trigger: The call to retrieve assigned user information fails
-
Condition:
varSuccessis false afterGetAssignedUserInfoActivity -
Path:
GetAssignedUserInfoActivity→GetAssignedUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID for assigned user, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
3. Device Retrieval Failure
-
Trigger: The call to retrieve device information fails
-
Condition:
varSuccessis false afterGetDeviceActivity -
Path:
GetDeviceActivity→GetDeviceIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve device details for the task, workflow terminates
-
Possible Cause: The device with the specified SAP ID does not exist in MDM or ERPConn has wrong permissions to access MDM
4. Missing Equipment ID Error
-
Trigger: The device doesn’t have a SAP ID defined
-
Condition:
varDeviceResponse["identifiers"]["sapid"] != nullis false -
Path:
CheckForExistingEquipmentIdIfActivity(false) →MissingEquipmentIdErrorActivity -
Impact: Unable to create task in SAP without equipment ID, workflow terminates
-
Possible Cause: The device does not have an identifier 'sapid' defined in MDM
5. Created By User Information Retrieval Failure
-
Trigger: The call to retrieve creator’s user information fails
-
Condition:
varSuccessis false afterGetCreatedByUserInfoActivity -
Path:
GetCreatedByUserInfoActivity→GetCreatedByUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID of task creator, workflow terminates
-
Possible Cause: The creator user does not exist in MACMA or ERPConn has wrong permissions to access MACMA
6. Create Notification Failure
-
Trigger: The call to create a notification in SAP fails
-
Condition:
varSuccessis false afterCreateNotificationActivity -
Path:
CreateNotificationActivity→CreateNotificationIfActivity(false) →ErrorSetActivity -
Impact: Unable to create notification in SAP, workflow terminates
-
Possible Cause: Invalid notification data or invalid API key
7. Create Order Failure
-
Trigger: The call to create an order in SAP fails
-
Condition:
varSuccessis false afterCreateOrderActivity -
Path:
CreateOrderActivity→CreateOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to create order in SAP, workflow terminates
-
Possible Cause: Invalid order data or invalid API key
8. Update Order Failure
-
Trigger: The call to update an order in SAP fails
-
Condition:
varSuccessis false afterUpdateOrderActivity -
Path:
UpdateOrderActivity→UpdateOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to update order in SAP, workflow terminates
-
Possible Cause: Invalid order data or invalid API key
9. Get Next Order Operation ID Failure
-
Trigger: The call to get next operation ID fails
-
Condition:
varSuccessis false afterGetNextOrderOperationIdActivity -
Path:
GetNextOrderOperationIdActivity→GetNextOrderOperationIdIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve next operation ID for related task, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
10. Create Order Operation Failure
-
Trigger: The call to create an order operation fails
-
Condition:
varSuccessis false afterCreateOrderOperationActivity -
Path:
CreateOrderOperationActivity→CreateOrderOperationIfActivity(false) →ErrorSetActivity -
Impact: Unable to create operation in SAP order, workflow terminates
-
Possible Cause: Invalid operation data, invalid order ID or invalid API key
11. Create Order Operation Long Text Failure
-
Trigger: The call to create long text for order operation fails
-
Condition:
varSuccessis false afterCreateOrderOperationLongTextActivity -
Path:
CreateOrderOperationLongTextActivity→CreateOrderOperationLongTextIfActivity(false) →ErrorSetActivity -
Impact: Unable to add detailed description to operation, workflow terminates
-
Possible Cause: Invalid long text data, invalid order operation ID or invalid API key
12. Update External IDs Failure
-
Trigger: The call to update external IDs in Maintenance Management fails
-
Condition:
varSuccessis false afterUpdateExternalIdsActivity -
Path:
UpdateExternalIdsActivity→UpdateExternalIdsIfActivity(false) →ErrorSetActivity -
Impact: Unable to update task with SAP IDs, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
General Error
{
"Success": false,
"Message": "Error inside the workflow. Please check the orchestrator log for more details."
}
Resolve Task Workflow
Error Paths
1. Task External ID Retrieval Failure
-
Trigger: Unable to retrieve task external ID after multiple attempts
-
Condition:
varTaskExternalId == null || !varSuccessafter 4 retry attempts -
Path:
IsExternalIdAvailableWhileActivity→GetTaskOverviewIfActivity(false) →ErrorSetActivity -
Impact: Unable to find external ID reference for SAP, workflow terminates
-
Possible Cause: The external ID was never set in the task or ERPConn has wrong permissions to access Maintenance Management
2. User Information Retrieval Failure
-
Trigger: The call to retrieve user information fails
-
Condition:
varSuccessis false afterGetUserInfoActivity -
Path:
GetUserInfoActivity→GetUserInfoIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve employee ID for assigned user, workflow terminates
-
Possible Cause: The assigned user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
3. Create Order Confirmation Failure
-
Trigger: The call to create order confirmation in SAP fails
-
Condition:
varSuccessis false afterCreateOrderConfirmationActivity -
Path:
CreateOrderConfirmationActivity→CreateOrderConfirmationIfActivity(false) →ErrorSetActivity -
Impact: Unable to confirm completion of order in SAP, workflow terminates
-
Possible Cause: Invalid order confirmation data or invalid API key
Set Task In Progress Workflow
Error Paths
1. Task External ID Retrieval Failure
-
Trigger: Unable to retrieve task external ID after multiple attempts
-
Condition:
varTaskExternalId == null || !varSuccessafter 4 retry attempts -
Path:
IsExternalIdAvailableWhileActivity→GetTaskOverviewIfActivity(false) →ErrorSetActivity -
Impact: Unable to find external ID reference needed for SAP operations, workflow terminates
-
Possible Cause: The external ID was never set in the task or ERPConn has wrong permissions to access Maintenance Management
2. Release Order Failure
-
Trigger: The call to release the order in SAP fails
-
Condition:
varSuccessis false afterReleaseOrderActivity -
Path:
ReleaseOrderActivity→ReleaseOrderIfActivity(false) →ErrorSetActivity -
Impact: Unable to release the order in SAP, workflow terminates
-
Possible Cause: Invalid order ID or invalid API key
Work Time Confirmation Workflow
Error Paths
1. Confirmed Effort Retrieval Failure
-
Trigger: The call to retrieve confirmed effort information fails
-
Condition:
varSuccessis false afterGetConfirmedEffortActivity -
Path:
GetConfirmedEffortActivity→GetConfirmedEffortIfActivity(false) →ErrorSetActivity -
Impact: Unable to retrieve confirmed effort data from Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management
2. Task External ID Retrieval Failure
-
Trigger: Unable to retrieve task external ID after multiple attempts
-
Condition:
varTaskExternalId == null || !varSuccessafter 4 retry attempts -
Path:
IsExternalIdAvailableWhileActivity→GetTaskOverviewIfActivity(false) →ErrorSetActivity -
Impact: Unable to find external ID reference needed for SAP operations, workflow terminates
-
Possible Cause: The external ID was never set in the task or ERPConn has wrong permissions to access Maintenance Management
3. User Information Retrieval Failure
-
Trigger: The call to retrieve user information fails
-
Condition:
varSuccessis false afterGetUserInfoActivity -
Path:
GetUserInfoActivity→CreateOrderConfirmationActivity(still executes but likely fails) -
Impact: Unable to retrieve employee ID for the user confirming time, leading to subsequent failure
-
Possible Cause: The user does not have an EmployeeId defined in MACMA or ERPConn has wrong permissions to access MACMA
4. Order Confirmation Creation Failure
-
Trigger: The call to create order confirmation in SAP fails
-
Condition:
varSuccessis false afterCreateOrderConfirmationActivity -
Path:
CreateOrderConfirmationActivity→CreateOrderConfirmationIfActivity(false) →ErrorSetActivity -
Impact: Unable to confirm working time in SAP, workflow terminates
-
Possible Cause: Invalid order confirmation data or invalid API key
5. External IDs Update Failure
-
Trigger: The call to update external IDs in Maintenance Management fails
-
Condition:
varSuccessis false afterUpdateExternalIdsActivity -
Path:
UpdateExternalIdsActivity→UpdateExternalIdsIfActivity(false) →ErrorSetActivity -
Impact: Order confirmation created in SAP but reference ID not stored in Maintenance Management, workflow terminates
-
Possible Cause: Invalid task ID or ERPConn has wrong permissions to access Maintenance Management