# Process Variable size limitation

**URL:** <https://forum.camunda.io/t/process-variable-size-limitation/58539>\
**Category:** Camunda 7 Topics\
**Tags:** process-engine\
**Created:** [January 3, 2025, 7:53am UTC](https://forum.camunda.io/t/process-variable-size-limitation/58539 "2025-01-03T07:53:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akangupta1](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@akangupta1](https://forum.camunda.io/u/akangupta1)\
**Post date:** [January 3, 2025, 7:53am UTC](https://forum.camunda.io/t/process-variable-size-limitation/58539/1 "2025-01-03T07:53:06Z")

</div>

What is the limitation on the size and length of Native JSON variable value?

> **[JSON | docs.camunda.org](https://docs.camunda.org/manual/7.22/user-guide/data-formats/json/#native-json-variable-value)**
>
> documentation of Camunda 7

How is this value stored in the database? I viewed schema of the ACT\_RU\_VARIABLE table, and it contains all these fields  
mysql\> describe ACT\_RU\_VARIABLE;  
±---------------------±--------------±-----±----±--------±------+  
| Field | Type | Null | Key | Default | Extra |  
±---------------------±--------------±-----±----±--------±------+  
| ID\_ | varchar(64) | NO | PRI | NULL | |  
| REV\_ | int | YES | | NULL | |  
| TYPE\_ | varchar(255) | NO | | NULL | |  
| NAME\_ | varchar(255) | NO | | NULL | |  
| EXECUTION\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| PROC\_INST\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| CASE\_EXECUTION\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| CASE\_INST\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| TASK\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| BYTEARRAY\_ID\_ | varchar(64) | YES | MUL | NULL | |  
| DOUBLE\_ | double | YES | | NULL | |  
| LONG\_ | bigint | YES | | NULL | |  
| TEXT\_ | varchar(4000) | YES | | NULL | |  
| TEXT2\_ | varchar(4000) | YES | | NULL | |  
| VAR\_SCOPE\_ | varchar(64) | NO | MUL | NULL | |  
| SEQUENCE\_COUNTER\_ | bigint | YES | | NULL | |  
| IS\_CONCURRENT\_LOCAL\_ | tinyint | YES | | NULL | |  
| TENANT\_ID\_ | varchar(64) | YES | MUL | NULL | |  
±---------------------±--------------±-----±----±--------±------+

---

<div class="post-metadata">

**Author:** ![Anmol\_Gupta](https://forum.camunda.io/user_avatar/forum.camunda.io/anmol_gupta/32/17292_2.png) [@Anmol\_Gupta](https://forum.camunda.io/u/Anmol_Gupta)\
**Post date:** [January 3, 2025, 10:39am UTC](https://forum.camunda.io/t/process-variable-size-limitation/58539/2 "2025-01-03T10:39:32Z")

</div>

Camunda 7 deals with the json variables in a different way. It stores the variable as Bytearray in the ACT\_GE\_BYTEARRAY table and the id of that is stored in ACT\_RU\_VARIABLE table under the BYTEARRAY\_ID field

If you see the schema of this table it stores that as longblob which should is large enough to store huge JSON’s (Size depends on choice of database)

![image](https://forum.camunda.io/uploads/default/original/3X/d/c/dc32e193d730c036cd89d9ec6c878d9fc97e3297.png)

---

<div class="post-metadata">

**Author:** ![akangupta1](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@akangupta1](https://forum.camunda.io/u/akangupta1)\
**Post date:** [January 7, 2025, 12:56am UTC](https://forum.camunda.io/t/process-variable-size-limitation/58539/3 "2025-01-07T00:56:53Z")

</div>

Hi @Anmol_Gupta, thanks a lot for your reply.

Can you please also tell if Object type for Process Variables work the same way in Camunda 7 : [Process Variables | docs.camunda.org](https://docs.camunda.org/manual/7.22/user-guide/process-engine/variables/#java-object-api)

So the Java object is serialized to Byte Array and stored in ACT\_GE\_BYTEARRAY table?

---

<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:** [April 7, 2025, 12:56am UTC](https://forum.camunda.io/t/process-variable-size-limitation/58539/4 "2025-04-07T00:56:56Z")

</div>

Closed on April 7, 2025, 12:56am UTC

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