Migrating Resource Plans on a Demand

mikereaves
Tera Expert

My org is planning & testing the migration to Next Generation Resource Management. 

We've observed a few Demand record with 25'ish Resource Plans w/ Resource Type: Group resource, State: Allocated.  There were cost plans related to the demands as well.  When the UI Action : Migrate Resource plans is clicked, the Resource Plan - Resource Type value changes to Attribute, but 0 Resource Assignments are created.

Any comments, hints, nudges would be greatly appreciated.

1 REPLY 1

Shahjay
Mega Guru

Hi @mikereaves ,

The Resource Type changing to Attribute is expected. Resource plans don't go away as records. They sit behind resource assignments, so the migration repoints your existing plans instead of replacing them. The part that's failing is the assignment creation, which finishes in the background after you click the link.

Before chasing config, I'd confirm the assignments really don't exist rather than just not showing. Once a demand has attribute-based plans, the Resource Plans related list hides itself. The Resource Assignments related list isn't always on the demand form view, and it won't show at all if sn_pw.enable_resource_planning (Project Workspace scope) isn't true. Someone in another thread, working on a project, found their migrated assignments under the Top task relationship rather than Task: https://www.servicenow.com/community/spm-forum/migrating-from-resource-plans-to-resource-assignments...

The quickest check is sn_plng_att_core_resource_assignment.list, filtered where Task or Top task is your demand.

If there's genuinely nothing there, this is the order I'd work through:

  1. Go to All > Strategic Planning > Planning Attributes and confirm Group is enabled for resource management. Enabling it for capacity planning switches that on too. The migration builds assignments from the primary attributes enabled for Resource Management (Group, Skill, Role). I haven't confirmed this is what produces zero records, but it's the first config item I'd rule out for Group-resource plans.
  2. Check the system logs for the few minutes after you clicked the link. The type changed but nothing got created, so the run didn't complete as one unit. Look for a script error or an aborted insert.
  3. Look for customisations on sn_plng_att_core_resource_assignment, resource_allocation and cost_plan. Before-insert business rules are the main suspect, since setAbortAction(true) would give you exactly this result with no obvious error. Check data policies too. ACLs are less likely, because a normal server-side GlideRecord insert doesn't evaluate them. If you have automation that generates labor cost plans from assignments, turn it off during migration or you'll end up with duplicates.
  4. Make sure Project Workspace and Resource Management Workspace are on current store versions. RMW 5.4.0 fixed assignments migrated from demands with no dates not loading. If you're checking in RMW and those demands have no dates, that's worth ruling out.

One catch: on the demands you've already run, the related link should not come back. Its visibility check treats any plan with Resource Type = Attribute as already migrated. Fix the cause, then test on a different demand with one or two Group-resource Allocated plans, logged in as admin, so you can watch it end to end.

I also wouldn't flip resource_type back with a background script. The migration rebuilds allocations, so first check whether the original resource_allocation records on those plans still exist. If they're gone, a clone refresh is cleaner than hand-patching.

Before the next batch, export the plans, allocations and cost plans for your test demands. Planned costs move to new attribute-based cost plans while actuals stay on the originals, so you'll want something to reconcile against.

If none of that turns anything up, I'd raise a case with Support and include a demand number and the log extract. It would also help to know your family release and your Project Workspace and RMW versions.