199
Views
4
Comments
[Case Management framework] Case_UpdateStatus with error from screen "Status is not valid for the status set"
Question
case-management-framework
Service icon
Forge asset by OutSystems

HI:

    I am working on the case management framework, I created a new Status called "Opened" in CaseStatusConfiguration and I want to update the case status to "Opened"  (tried Case_CloseActivity or Case_UpdateStatus) and i received and error "Status is not valid for the status set"




Code.jpg
UserImage.jpg
Alexandre Yip

Hi Edmond, 

When you have created the new status please ensure that the guid is unique in the status list .

use this site to generate a new guid. 

 https://www.guidgenerator.com/

Did u try to use the static without converting to identifier?

Hope that it helps you 

UserImage.jpg
Scott Welch

Hi Edmond,

I encountered a similar problem.

I assume that you checked the bootstrap is loading your Case Definition and Case Statues. 

Here's what I discovered: the case status had not been associated with the proper Case Definition. You may want to check the CaseStatus table in the CM_CaseDefinition_CS and see if this is true.

UserImage.jpg
Frank Guarino

This solution worked for me.

I was similarly stuck, and resorted to trying different setups than what was listed here: Create a case management app - OutSystems 11 Documentation, i.e. remediating with OS-CMFR-GEN-00036


But there are tables outside of your bare minimum dependencies, such as CaseStatus. CaseStatus is not necessarily needed to import from CM_CaseDefinition_CS, but CaseStatus definitely does still contain info about your app even though you don't import it.


Ya, once I noticed the ID of the CaseStatus had pointed to the wrong CaseDefinition, that resolved my issue by doing an update statement.


Thank you.

UserImage.jpg
Nikita P

Hi Edmond,

Below are three things you can try to fix this error:

1. Please check the status from the case status configuration entity to see if the one you are trying to update is there.

2. If you recently added the status chk for GUID.

3. Finally, run the timer once.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.