Hi,
I am creating a BPMN model exactly similar to the one shown in this video, but I encounter this error when I deploy it:
“The deployment contains definitions with the same key ‘’ (id attribute), this is not allowed [ deploy-error ]”
I removed one of the forms and the deploy succeeded. Can any one help what the problem is?
Depending on the version of Camunda, you have either a form with the same name (example myform.form ) or with the same embedded form ID.
Assuming you’re running a recent version of modeller and Camunda, open the form up, and make sure that each one has a unique form id on the properties panel. This Form ID issue will happen if you create the first form, save it, and then continue working and “Save As” with a new form name.
I am using modeler version 4.8.1. I completely removed and created the forms again and the problem still remains the same.
If I remove any of the two forms, the deployment succeeds! It seems they can not be deployed together!
My json forms are as following:
/////////////////////////
askForHelpForm.form:
{
“type”: “default”,
“components”: [
{
“key”: “helpNote”,
“label”: “Write request for help”,
“type”: “textfield”,
“description”: “Say something convincing to get help escape”,
“validate”: {
“required”: true
}
},
{
“key”: “help”,
“label”: “Who can help”,
“type”: “textfield”,
“description”: “Who do you want to ask for help”,
“validate”: {
“pattern”: “Jean-Xavier|Austria”,
“required”: true
}
},
{
“key”: “book”,
“label”: “Book to Pack”,
“type”: “textfield”,
“description”: “What book would ou like to bring on the trip”,
“validate”: {
“required”: true
}
}
]
}
///////////////////////
departureForm.form:
{
“type”: “default”,
“components”: [
{
“key”: “book”,
“label”: “Book to Pack”,
“type”: “textfield”,
“description”: “What book would ou like to bring on the trip”,
“validate”: {
“required”: true
}
},
{
“key”: “help”,
“label”: “Who can help”,
“type”: “textfield”,
“description”: “Who do you want to ask for help”,
“validate”: {
“pattern”: “Jean-Xavier|Austria”,
“required”: true
}
}
]
}
What version is the server?
version 7.16
Version 7.16 of Camunda server requires the use of the Form ID in the Form JSON.
Since it’s missing in your JSON, they are both FormID null.
Upgrade your modeller to 4.12 and try it again
Thank you very much.
Actually I couldn’t use version 4.12 because it was not compatible with my ubuntu version (18.4). Then it seems I should upgrade it anyway.