Microsoft KB Archive/281622

= Cannot Flow Null Multi-Valued Attributes to Connected Directory =

Article ID: 281622

Article Last Modified on 5/28/2003

-

APPLIES TO


 * Microsoft Metadirectory Services 2.2 Service Pack 1
 * Microsoft Metadirectory Services 2.2 Service Pack 1

-



This article was previously published under Q281622



SYMPTOMS
The Management Agent may not flow a null multi-valued attribute out to the connected directory. If the attribute is a single-valued attribute, the null value successfully flows out to the connected directory. This problem is seen when a multi-valued attribute in MMS is deleted so that the value is null.



CAUSE
The output templates uses the $multivalued function to correctly format the text in the outgoing (create) file, for example: ($multi_valued(&quot;0&quot;,$userCertificate;base64,&quot;-userCertificate;base64: &quot;)) The function requires a value to process and will not work with a null value.



RESOLUTION
To work around this problem:  Remove the existing simple or advanced attribute flow rules for this attribute.  Type the following into the advanced attribute flow script, replacing userCertificate with the name of the target attribute:Advanced flowscript Modification:

replace $cd.userCertificate = $mv.userCertificate with: IF $EXIST($cd.userCertificate) = T THEN IF $EXIST($mv.userCertificate) = F THEN ###################################################            # even though this attribute does not appear in the # output template, a &quot;cd&quot; assignment *must* be made # to force the creation of the create file ################################################### $v_userCertificate=-userCertificate: $cd.userCertificate = $null ELSE $cd.userCertificate = $mv.userCertificate ENDIF ELSE ##################################################        # the connected directory did *not* have the # attribute the last time that we ran a discovery ################################################## $cd.userCertificate = $mv.userCertificate ENDIF   Modify the EXPORT template Add/Mod with: ($multi_valued(&quot;0&quot;,$userCertificate;base64,&quot;-userCertificate;base64: &quot;)) ($v_userCertificate) 
 * 1) the attribute existed in the connected directory the last
 * 2)  time that we ran a discovery
 * 1)  time that we ran a discovery
 * 1) the metaverse value has been cleared so send a
 * 2) NULL to the connected directory
 * 1) NULL to the connected directory



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: zoomit via ma zscript genlogs interix

Keywords: kbbug kbenv KB281622

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.