search cancel

Bulk edit fails when trying to save with error: "Failed to load viewstate"

book

Article ID: 172676

calendar_today

Updated On:

Products

Asset Management Solution CMDB Solution

Issue/Introduction

The Bulk Edit option fails.

HTTP Request failed:
 /Altiris/AssetContractCommon/Wizards/CustomResourceItemEditor.aspx?itemActionGuid=cac82bc4-9aaa-4596-a27b-e41f3738799a


Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Environment

ITMS 8.0-8.1

Cause

The maximum cardinality for a Resource Association would be exceeded.

Resolution

The following query can be used to see the association that is set in a way that could cause this problem.  Once it is isolated change the cardinality or select unlimited as is appropriate for the association in question.

Select 
  rat.Guid,
  it.Name,
  rat.MaximumCardinality, 
  rat.MinimumCardinality 
from [dbo].[ResourceAssociationType] rat
  Join Item it on it.Guid = rat.Guid
where  rat.MinimumCardinality=0 
  and rat.MaximumCardinality !=-1 and it.Attributes =0
  and Name not like '%Workflow %'