none
FIM $importChange - Set boolean Attribute to $null RRS feed

  • Question

  • Hi,

    I need to be able to set a "Person" custom attribute to NULL 

    I'm using a psscript to act on a collection of users.

    I can set the custom boolean attribute to $true or $false but I always have error if I try to set it to $null

    The code detail is like this:

    $importChange.AttributeName = “myAttributename”
    $importChange.AttributeValue = $null

    The error is the following:

    Error = The web service client has encountered the following class of error: ValueViolatesDataTypeFormat
    Details: AttributeName: myAttributename 
    AttributeValue: 
    Additional Text Details: The specified attribute value is in a format that cannot be stored in the attribute.

    Any ideas?

    Thanks,

    JD

    Sunday, June 23, 2019 9:22 PM

Answers

  • Hi,

    It's FIM 2010 R2.

    I was able to do it with MIMWAL "update resource", but I would really like to be able to do it with powershell.

    I'll try your recomendation

    Thanks,

    JD 

    • Marked as answer by junidev Sunday, July 21, 2019 4:21 PM
    Monday, June 24, 2019 8:02 AM

All replies

  • Hi,

    What version of MIM are you on? In more recent versions, boolean usually only support true/false.

    Also, I'd recommend LithNet Powershell over the standard one.

    Br,

    Leo


    Did my post help? Please use "Mark as answer" or "Propose as answer". Thank you!

    Monday, June 24, 2019 6:58 AM
  • Hi,

    It's FIM 2010 R2.

    I was able to do it with MIMWAL "update resource", but I would really like to be able to do it with powershell.

    I'll try your recomendation

    Thanks,

    JD 

    • Marked as answer by junidev Sunday, July 21, 2019 4:21 PM
    Monday, June 24, 2019 8:02 AM