Hi,
I was trying to create a new field in the entity used for a workflow state. The field is single select.
I’ve got this error message:
Cannot create Simplifié field
Invalid schema: Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution. Cause: Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution.
My Use Case : I have a long development workflow (Kanban like) with about 12 steps. I wanted to display a simplified state in the board I show to internal customers.
in case this helps :
[
{
"success": false,
"result": {
"name": "entity.error/schema-invalid",
"message": "Invalid schema: Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution.\nCause: Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution.",
"data": {
"top": {
"error/name": "entity.error/schema-invalid"
},
"cause": {
"error/name": "entity.error/schema-type-name-invalid",
"types": [
"workflow/Simplifié_workflow/state_Produit/Solution_acl",
"workflow/Simplifié_workflow/state_Produit/Solution"
]
}
},
"via": [
{
"type": "clojure.lang.ExceptionInfo",
"message": "Invalid schema: Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution.",
"data": {
"error/name": "entity.error/schema-invalid"
},
"at": [
"core.ex$ex_info",
"invokeStatic",
"ex.clj",
89
]
},
{
"type": "clojure.lang.ExceptionInfo",
"message": "Invalid database names: workflow/Simplifié_workflow/state_Produit/Solution_acl, workflow/Simplifié_workflow/state_Produit/Solution.",
"data": {
"error/name": "entity.error/schema-type-name-invalid",
"types": [
"workflow/Simplifié_workflow/state_Produit/Solution_acl",
"workflow/Simplifié_workflow/state_Produit/Solution"
]
},
"at": [
"core.ex$ex_info",
"invokeStatic",
"ex.clj",
89
]
}
]
}
}
]
Similar issue when I try to create a relation to another database here
Invalid schema: Unexpected field names: {"field":"user/state_Produit/Solution","holder-type":"Colisweb/Projet"}. Cause: Unexpected field names: {"field":"user/state_Produit/Solution","holder-type":"Colisweb/Projet"}.
This is not supported, it is not possible to create a single-select inside a single-select. Why not add a Text field and put some value in it?
The workaround I tried : using a text field in the state entity
It does not work because I cannot use a text field as a board column
(I forgot to post this a few hours ago)
Even if this is not supported, I suggest to remove the option from the list of new fields, or at least to have a more user-friendly error message.
Chr1sG
March 21, 2023, 4:38pm
7
Agreed about the possible ux improvements.
But what are you trying to ultimately achieve?
Basically I want to regroup 12 statuses in 4 for a different group of users