Hi;
We run the process like that
ProcessSchema schema = userConnection.ProcessSchemaManager.GetInstanceByName("UsrSendExtraPaymentCancellationToNav");
bool canUseFlowEngine = ProcessSchemaManager.GetCanUseFlowEngine(userConnection, schema);
if (canUseFlowEngine)
{
var flowEngine = new FlowEngine(userConnection);
var param = new Dictionary();
param["Quotation"] = quotationId.ToString();
flowEngine.RunProcess(schema, param);
}
else
{
Process process = schema.CreateProcess(userConnection);
process.SetPropertyValue("Quotation", quotationId);
process.Execute(userConnection);
}
and from time to time error occurs:
Terrasoft.Common.ItemNotFoundException: Collection item with unique identifier "24240d57-78ed-41ad-8877-22acad56de30" not found. at Terrasoft.Core.Process.Process.GetFlowElementBySchemaElementUId(Guid schemaElementUId) at Terrasoft.Core.Process.TaskService.WriteErrorToProcessLog(TaskServiceQueueItem queueItem, ProcessComponentSet process) at Terrasoft.Core.Process.TaskService.ReceiveMessage(TaskServiceQueueItem taskServiceQueueItem) at Terrasoft.Core.Process.QueueEmulator.b__8_0(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowVisitor.Dequeue() at Terrasoft.Core.Process.FlowService.StartFlow(Guid processUId, FlowSchema flowSchema) at Terrasoft.Core.Process.FlowService.StartFlow(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowService.ReceiveMessage(TaskServiceQueueItem message) at Terrasoft.Core.Process.QueueEmulator.b__9_0(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowEngine.EnqueueProcess(ProcessComponentSet processComponentSet) at Terrasoft.Core.Process.FlowEngine.RunProcess(BaseProcessSchema schema, Dictionary`2 nameValueMap) at Terrasoft.Configuration.ClaimQuotationDAO.CancelExtraPaymentNAV(Guid quotationId) at Terrasoft.Configuration.ClaimQuotationDAO.ChangeStatusAndStatusReasonForAllClaimQuotation(String claimNumber, Guid statusId, Guid statusReasonId) at Terrasoft.Configuration.QuotationService.ChangeQuotationStatus(String claimNumber, Guid statusId, Guid statusReasonId) at Terrasoft.Core.Process.UsrCloseClaimLiquidationAfterReturnBenefitMethodsWrapper.UsrRejectedAllClaimQuotationsExecute(ProcessExecutingContext context) at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
Where identifier id id of startEvent
any idea?
Regards
Tomek
Like
Dear Tomasz,
Unfortunately, I could not reproduce the issue. The provided code worked fine on my end. However, I can suggest two ways of how to resolve this issue:
1. If the issue occurs again please contact technical support and provide them with the time stamp when the issue occurred. Support team will check the logs and will find the root cause of the issue.
2. You can try to run business process using another approaches. Please find the examples in the articles by the links below:
https://community.creatio.com/articles/run-business-process-server-side
https://academy.creatio.com/documents/technic-sdk/7-16/how-run-creatio-processes-web-service
Best regards,
Norton