- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 03:34 AM - edited 12-28-2022 03:37 AM
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:
- https://www.servicenow.com/community/spm-forum/custom-state-quot-closed-cancelled-quot-is-not-mapped...
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720080
- https://www.servicenow.com/community/spm-forum/cancelled-state-in-project-task-form-not-mapping-to-s...
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
Solved! Go to Solution.
- Labels:
-
Workflow
- 2,192 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2022 03:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2022 03:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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