locked
Microsoft.MetadirectoryServices.AttributeNotPresentException: Trying to add new attributes to connector space RRS feed

  • Question

  • HI,

     

       I have a working instance of MIIS with Sun one and AD MA. I am trying to add a new attribute to the AD MA. I did the following :

     

    1) Opened the AD MA and selected the appropriate attribute and configured the export attribute flow with a rule extension.

     

    But if I try to use that attribute in the rules extension I am geting the following dll exception :

     

    Microsoft.MetadirectoryServices.AttributeNotPresentException: Attribute "nTSecurityDescriptor" is not present.
       at Microsoft.MetadirectoryServices.Impl.AttributeImpl.get_Value()
       at Mms_ManagementAgent_AD_MAExtension.MAExtensionObject.MapAttributesForExport(String FlowRuleName, MVEntry mventry, CSEntry csentry)

     

    This happens for any new attribute that I try to add.  Can you please inform me what I am missing ?

     

    Thank you for your time.

     

     

    Thursday, January 17, 2008 8:49 PM

Answers

  • You are trying to access an attribute value that is not present – this is what the error message indicates. The affected metaverse object doesn’t have a value for the nTSecurityDescriptor attribute.

     

    The error is related to the metaverse object, since the exception is thrown by MapAttributesForExport.

     

    You need to add an IsPresent evaluation around your nTSecurityDescriptor attribute flow. Something like “If Not IsPresent(“nTSecurityDescriptor”) Then Exit Sub”.

     

    If you think there should be a value in the metaverse, you should also determine why the attribute value has not been populated.

     

     

    Cheers,

    Markus

     

    ///////////////////////////////////////////////////////////////////////
    Markus Vilcinskas

    Technical Writer
    Microsoft Identity Integration Server
    mailto:markvi@microsoft.com.NO_SPAM

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/copyright.htm
    ///////////////////////////////////////////////////////////////////////

     

    Friday, January 18, 2008 3:11 PM
    Moderator

All replies

  • You are missing an IsPresent check for your attributes.

     

    Something like this:

    If mventry("middleName").IsPresent Then

                    DNName = mventry("middleName").Value + " " + DNName

    End If

     

     

     

    Cheers,

    Markus

     

    ///////////////////////////////////////////////////////////////////////
    Markus Vilcinskas

    Technical Writer
    Microsoft Identity Integration Server
    mailto:markvi@microsoft.com.NO_SPAM

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/copyright.htm
    ///////////////////////////////////////////////////////////////////////

     

     

     

    Friday, January 18, 2008 12:13 AM
    Moderator
  • HI,

     

        I do not have this code for any of the existing attributes, So can you please tell me why I should add this for every new attribute that I want to add to AD connector space.

     

    Also I think the error that I get indicates that the attribute is not present in AD connector spcae(csentry) and not mventry.

     

    Thanks,

     

    Friday, January 18, 2008 2:43 PM
  • You are trying to access an attribute value that is not present – this is what the error message indicates. The affected metaverse object doesn’t have a value for the nTSecurityDescriptor attribute.

     

    The error is related to the metaverse object, since the exception is thrown by MapAttributesForExport.

     

    You need to add an IsPresent evaluation around your nTSecurityDescriptor attribute flow. Something like “If Not IsPresent(“nTSecurityDescriptor”) Then Exit Sub”.

     

    If you think there should be a value in the metaverse, you should also determine why the attribute value has not been populated.

     

     

    Cheers,

    Markus

     

    ///////////////////////////////////////////////////////////////////////
    Markus Vilcinskas

    Technical Writer
    Microsoft Identity Integration Server
    mailto:markvi@microsoft.com.NO_SPAM

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/copyright.htm
    ///////////////////////////////////////////////////////////////////////

     

    Friday, January 18, 2008 3:11 PM
    Moderator
  • HI ,

     

      I am sorry I forgot to mention that I am getting this error in the following function :

     

    MapAttributesForExport

     

    Thanks,

     

    Friday, January 18, 2008 3:12 PM
  • Yep, this is what the error message indicates…

     

     

    Cheers,

    Markus

     

    ///////////////////////////////////////////////////////////////////////
    Markus Vilcinskas

    Technical Writer
    Microsoft Identity Integration Server
    mailto:markvi@microsoft.com.NO_SPAM

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/copyright.htm
    ///////////////////////////////////////////////////////////////////////

     

    Friday, January 18, 2008 3:39 PM
    Moderator
  • HI Mark,

     

       Thank you for pointing me to the right direction.

     

    Thanks,

     

    Friday, January 18, 2008 5:01 PM