Generic Exception: Cannot construct instance of org.finos.waltz.model.ImmutableEntityReference, problem: Cannot build EntityReference, some of required attributes are not set [kind]
at [Source: (byte[])"{"question":{"surveyTemplateId":5712,"isMandatory":true,"allowComment":false,"position":10,"externalId":null,"parentExternalId":null,"label":null,"inclusionPredicate":null,"questionText":"Clear off the qualifier field","fieldType":"BOOLEAN","qualifierEntity":{"id":33}},"dropdownEntries":[]}"; line: 1, column: 268] (through reference chain: org.finos.waltz.web.json.ImmutableSurveyQuestionInfo$Json["question"]->org.finos.waltz.model.survey.ImmutableSurveyQuestion$Json["qualifierEntity"]) / com.fasterxml.jackson.databind.exc.ValueInstantiationException
Waltz Version
1.62
Steps to Reproduce
Open a survey template in draft
Go to add a question
Select measurable tree in the field type
Select a category
Change your mind and pick a different question type e.g. boolean
Description
Exception thrown:
Generic Exception: Cannot construct instance of
org.finos.waltz.model.ImmutableEntityReference
, problem: Cannot build EntityReference, some of required attributes are not set [kind] at [Source: (byte[])"{"question":{"surveyTemplateId":5712,"isMandatory":true,"allowComment":false,"position":10,"externalId":null,"parentExternalId":null,"label":null,"inclusionPredicate":null,"questionText":"Clear off the qualifier field","fieldType":"BOOLEAN","qualifierEntity":{"id":33}},"dropdownEntries":[]}"; line: 1, column: 268] (through reference chain: org.finos.waltz.web.json.ImmutableSurveyQuestionInfo$Json["question"]->org.finos.waltz.model.survey.ImmutableSurveyQuestion$Json["qualifierEntity"]) / com.fasterxml.jackson.databind.exc.ValueInstantiationExceptionWaltz Version
1.62
Steps to Reproduce
Expected Result
Boolean question to be added to the template
Actual Result
Question doesn't save and exception thrown