Hi,
I need to delete a boolean atribute from FIM Portal.
It seems that firts I need to clear its values.
I tried a powerschell script to use the Import-Config but it fails (it succeeds with$true or $false but not with $null)
the ps error message is:
The web service client has encountered the following class of error: ValueViolatesDataTypeFormat
The specified attribute value is in a format that cannot be stored in the attribute.
The ps code is like this:
$importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
$importObject.ObjectType = "Person"
$importObject.SourceObjectIdentifier = $userObject.ResourceManagementObject.ObjectIdentifier
$importObject.TargetObjectIdentifier = $userObject.ResourceManagementObject.ObjectIdentifier
$importChange = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportChange
$importChange.Operation = 1
$importChange.AttributeName = "myattributeName"
$importChange.AttributeValue = $null
$importChange.FullyResolved = 1
$importChange.Locale = "Invariant"
$importObject.Changes = $importChange
$importObject | Import-FIMConfig
I succeed with MIMWAL update resource but since there are 200.000 resources to be affected the IIS seems to be hanged with memory at 99%.
What is the recomended way to clear the attribute on a such a big number of resources and why does it not succeeds in PS?
Many thanks?