# Error While Deploying the bpmn - Processes are not allowed to contain a straight-through processing loop

**URL:** <https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723>\
**Category:** Camunda 8 Topics\
**Tags:** deployment, desktop-modeler, bpmn\
**Created:** [January 4, 2024, 2:13pm UTC](https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723 "2024-01-04T14:13:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_Kumar\_Reddy](https://forum.camunda.io/user_avatar/forum.camunda.io/praveen_kumar_reddy/32/25741_2.png) [@Praveen\_Kumar\_Reddy](https://forum.camunda.io/u/Praveen_Kumar_Reddy)\
**Post date:** [January 4, 2024, 2:13pm UTC](https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723/1 "2024-01-04T14:13:09Z")

</div>

Hi Community,

I’m have designed a bpmn based on some flow

When I try to deploy it in the camunda cluster through desktop modeler, It is giving me the following error

```auto
Command 'CREATE' rejected with code 'INVALID_ARGUMENT': Expected to deploy new resources, but encountered the following errors:
`Grahics_Workflow.bpmn`: - Process: Process_Graphics_Workflow
    - ERROR: Processes are not allowed to contain a straight-through processing loop: Gateway_1ssrm6c > Gateway_0jyw0be > Activity_1t8ykzc > Gateway_1casfww > Gateway_1spmcdj > Gateway_1tcsxc2 > Gateway_0bvd4mw > Gateway_1lcnxxh > Gateway_0tv9m98 > Activity_0qqp5cb > Gateway_0amlzub > Gateway_1glgq6p > Gateway_0tmwsjv > Gateway_1ssrm6c
 [deploy-error]

```

Am I following the correct approach of designing a bpmn or any change is required

Your Insights would be helpful

[Grahics\_Workflow.bpmn](https://forum.camunda.io/uploads/short-url/qC1NvQeWLEEMAKh72SplHCoCIp8.bpmn) (44.3 KB)

---

<div class="post-metadata">

**Author:** ![StephanHaarmann](https://forum.camunda.io/user_avatar/forum.camunda.io/stephanhaarmann/32/21924_2.png) [@StephanHaarmann](https://forum.camunda.io/u/StephanHaarmann)\
**Post date:** [January 4, 2024, 3:09pm UTC](https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723/2 "2024-01-04T15:09:45Z")

</div>

Currently, all tasks in your process have no type, e.g., they are not marked as user tasks, send tasks, service tasks, etc. Tasks without type will be ignored by Camunda. Consequently, the upper branch contains an loop without any behavior - thus, if entered once the loop will be executed indefinitely. Change the task type of at least one activity. Based on the labels, I guess that they should be user tasks.

---

<div class="post-metadata">

**Author:** ![Praveen\_Kumar\_Reddy](https://forum.camunda.io/user_avatar/forum.camunda.io/praveen_kumar_reddy/32/25741_2.png) [@Praveen\_Kumar\_Reddy](https://forum.camunda.io/u/Praveen_Kumar_Reddy)\
**Post date:** [January 5, 2024, 12:32pm UTC](https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723/3 "2024-01-05T12:32:37Z")

</div>

Hi @StephanHaarmann ,

Thank you for the Reply  
Just tried with the task without type for testing the flow as it was working with simple flow  
 ![image](https://forum.camunda.io/uploads/default/original/3X/2/7/27c4c5739105a8685ddb2484659fce3eb83e36ed.png)

Now I understood the behavior of task without a type and manual task when they are looped  
Thank you

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 12, 2024, 12:33pm UTC](https://forum.camunda.io/t/error-while-deploying-the-bpmn-processes-are-not-allowed-to-contain-a-straight-through-processing-loop/49723/4 "2024-01-12T12:33:00Z")

</div>

Closed on January 12, 2024, 12:33pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
