Error when saving a form "Custom state '' is not mapped to any state bucket."

Juan Miguel
Tera Expert

HI, I am getting this error when trying to save info in a pm_project form record:

Custom state '' is not mapped to any state bucket. Please contact System Administrator to verify the setup.

 

I have already checked these links but the error seem not to be related with dictionary or overrides, because only happen in some views:

 

The error only happens in new view created for that form: 

Old_view1 --> works OK

Old_view2 --> works OK 

New_view --> KO

 

And only for projects with pm_project_task related:

Project without tasks --> works OK

Project with tasks --> KO

2 ACCEPTED SOLUTIONS

Juan Miguel
Tera Expert

I already discover the error cause. 

 

The problem was I hide the status field in this new view, and there is some out of the box code in business rule searching for the Display Value of the field (business rule "Validate state mapped to bucket"), so it is needed to have the field in the view (and hide it later if necessary). 

 

SOLUTION: Add the 'state' field to the view. 

View solution in original post

Aiswaryak
Giga Expert

There is a business rule named "Validate state mapped to bucket" related to this issue. This business rule calls a Script Include named PlannedTaskStateUtil, which contains a list of buckets. If a state is causing the error, it means that the state’s backend value is not mapped to any bucket. To resolve this, add the backend value of the state to the state bucket in the Script Include. After doing this, the error message:

"Custom State on Project shows error when selected or saved with: 'Custom state "" is not mapped to any state bucket'"

will no longer appear.
refer the screenshort for adding value to the bucket


View solution in original post

2 REPLIES 2

Juan Miguel
Tera Expert

I already discover the error cause. 

 

The problem was I hide the status field in this new view, and there is some out of the box code in business rule searching for the Display Value of the field (business rule "Validate state mapped to bucket"), so it is needed to have the field in the view (and hide it later if necessary). 

 

SOLUTION: Add the 'state' field to the view. 

Aiswaryak
Giga Expert

There is a business rule named "Validate state mapped to bucket" related to this issue. This business rule calls a Script Include named PlannedTaskStateUtil, which contains a list of buckets. If a state is causing the error, it means that the state’s backend value is not mapped to any bucket. To resolve this, add the backend value of the state to the state bucket in the Script Include. After doing this, the error message:

"Custom State on Project shows error when selected or saved with: 'Custom state "" is not mapped to any state bucket'"

will no longer appear.
refer the screenshort for adding value to the bucket