Task job step details pages doesn't load: "The request task instance could not be loaded. It may not yet be replicated to this NS"

book

Article ID: 157711

calendar_today

Updated On:

Products

Task Server

Issue/Introduction

When running a task, the NS console task details show "The request task instance could not be loaded. It may not yet be replicated to this NS"

The request task instance could not be loaded. It may not yet be replicated to this NS

Cause

This is not a replication problem.  The forwarding NS information doesn't match the owner NS for these agents.  Run the following SQL to see if the forwarding records are out of sync with the owner NS. 

if not exists

(

select *

from HierarchyNode hn

join vThisNS vns on vns.Guid = hn.ParentGuid

)

 

begin

select COUNT (DISTINCT c.Guid)

from vRM_Computer c

join ItemNSSource ins on ins.ItemGuid = c.Guid

join OriginNSSourceNS onsn on onsn.Id = ins.OriginNSSourceNSId

join ForwardServer fs on fs.Guid = onsn.OriginNSGuid

join ForwardServer fs2 on fs2.Guid = onsn.SourceNSGuid

where (fs.Name <> fs2.Name or fs.Web <> fs2.Web)

end

else

begin

select 0

end

Resolution

Fix the forwarding keys to match the owner NS. 

If this is a child NS and resources are not being replicated down, this query can be used to reset the source NS to the child.

 

declare @LocalNSId as int

set @LocalNSId = (select ins.Id

from OriginNSSourceNS ins

join vThisNS t on t.Guid = ins.OriginNSGuid

and ins.SourceNSGuid = t.Guid)

update ItemNSSource

set OriginNSSourceNSId = @LocalNSId

Where ItemGuid in

(
select ins.ItemGuid

from vRM_Computer_Item c
join vComputerResource vcr on vcr.Guid = c.Guid

and vcr.IsManaged = 1

join ItemNSSource ins on ins.ItemGuid = c.Guid

join OriginNSSourceNS onsn on onsn.Id = ins.OriginNSSourceNSId

join ForwardServer fs on fs.Guid = onsn.OriginNSGuid

join ForwardServer fs2 on fs2.Guid = onsn.SourceNSGuid

where fs.Guid <> fs2.Guid
)


Applies To

SMP 7.1 SP2