Hello,
I was following the instruction found here in the questions to do a resource swap mapped to a service definition node.
var assignRequest = new Library.Solutions.SRM.Model.AssignProfilesAndResources.AssignResourceRequest
{
TargetNodeLabel = "L-Band Matrix Input",
NewResourceId = lBandInputResource.GUID,
};
When I run: serviceReservationInstance.AssignResources(engine, assignRequest);
The exception I get is the following
serviceReservationInstance.AssignResources(engine, assignRequest);
The resource GUID (6c77642...) provided matches the one I want to assign to the reservation.
Any suggestions on how to fix this?
Hi Benjamin,
Please check if the resource you provide supports the same capabilities and/or capacities as the resource that is currently assigned in the booking.
If so, can you please share the booking log file? Will help pointing what caused the reservation to go to quarantine.
AssignResource was working, but overridden profile parameters needed to be initialized:
var assignRequest = new AssignResourceRequest
{
TargetNodeLabel = “L-Band Matrix Input”,
NewResourceId = lBandInputResource.ID,
ByReference = false,
};
assignRequest.OverriddenParameters.AddRange(lbandInputFunction.Parameters);