SP2013 User Properties / Mapping a Property via Export to a custom AD Attribute

Good afternoon community,

i hope someone of you guys can gimme some advice.

I have a custom AD Attribute which was created by our Admins view Years ago which we need for our Usermanagement Software. So now i wanna map a SP2013 Userproperty with Export syncdirection to that custom AD Attribute. When i try that via the Central UI i get Message "an Error occured", when i try it via Powershell i get the Error

Exception calling "AddNewExportMapping" with "3" argument(s): "cdAttribute does not match the MV attribute"
At C:\Temp\UserProfile\UserProfilePropertiesForMatchPointRunAsFarmAdmin.ps1:394 char:21
+ $PropertyMapping.AddNewExportMapping($userprofiletype, $Shar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException

The Import syncdirection does work with the same parameters.

Is there a Problem with adding an export sync mapping to a custom AD Attribute or maybe does our Admin have to modify the custom Attribute?

thx for your help in adv

February 13th, 2015 3:38pm

Good afternoon community,

i hope someone of you guys can gimme some advice.

I have a custom AD Attribute which was created by our Admins view Years ago which we need for our Usermanagement Software. So now i wanna map a SP2013 Userproperty with Export syncdirection to that custom AD Attribute. When i try that via the Central UI i get Message "an Error occured", when i try it via Powershell i get the Error

Exception calling "AddNewExportMapping" with "3" argument(s): "cdAttribute does not match the MV attribute"
At C:\Temp\UserProfile\UserProfilePropertiesForMatchPointRunAsFarmAdmin.ps1:394 char:21
+ $PropertyMapping.AddNewExportMapping($userprofiletype, $Shar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException

The Import syncdirection does work with the same parameters.

Is there a Problem with adding an export sync mapping to a custom AD Attribute or maybe does our Admin have to modify the custom Attribute?

thx for your help in adv

Free Windows Admin Tool Kit Click here and download it now
February 13th, 2015 3:42pm

Good morning Victoria and thx for your answer,

i tried to create a new user property with the same type and got the same error in the UI when trying to safe the new export mapping

"An error occurred when creating a property."

Its hard to search the ULS log for a detailed error message without a correlation id.

i have to mention that i tried to add an export mapping to core AD Attributes. With them i had no Problems adding the Export Mapping, it just messes up with the custom AD Attribute. 
I asked our Admin to check what type the Attribute has and got the following screenshot.



The only thing i could found in the ULS was

(the userprofile

02/18/2015 09:46:00.19 OWSTIMER.EXE (0x0B2C)                   0x31D4 SharePoint Portal Server       User Profiles                 b3w8 High     User Profile Application: SynchronizeMIIS encounters an exception: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Server.UserProfiles.UserProfileImportJob.<>c__DisplayClass2.<IsTimerJobRunning>b__1()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at Microsoft.Office.Server.UserProfiles.UserProfileImportJob.IsTimerJobRunning(UserProfileApplicationJob timerJob)     at Microsoft.Office.Server.... a5e0ea9c-959c-e086-1940-8d3a3fd60b3f
02/18/2015 09:46:00.19* OWSTIMER.EXE (0x0B2C)                   0x31D4 SharePoint Portal Server       User Profiles                 b3w8 High     ...Administration.UserProfileApplication.SynchronizeMIIS()     at Microsoft.Office.Server.Administration.ILMProfileSynchronizationJob.Execute() a5e0ea9c-959c-e086-1940-8d3a3fd60b3f

02/18/2015 09:46:07.60 w3wp.exe (0x29EC)                       0x0D20 SharePoint Portal Server       User Profiles                 d0lh Medium   EditProprty::_BuilDSMappingList threw exception : System.IO.InvalidDataException: Found invalid data while decoding.     at Microsoft.Office.Server.UserProfiles.Synchronization.DSMLAttribute.get_Syntax()     at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.EditProperty._BuildDSMappingList(SortedList& attributes, Hashtable& propertyDefinitions, Boolean& fHasImports, Boolean& fHasExports, Boolean& fHasImportFromSelectedConnection) a3e0ea9c-358e-e086-1940-838bfa021eac
02/18/2015 09:46:07.60 w3wp.exe (0x29EC)                       0x0D20 SharePoint Portal Server       User Profiles                 d0lh Medium   EditProprty::_BuilDSMappingList threw exception : System.IO.InvalidDataException: Found invalid data while decoding.     at Microsoft.Office.Server.UserProfiles.Synchronization.DSMLAttribute.get_Syntax()     at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.EditProperty._BuildDSMappingList(SortedList& attributes, Hashtable& propertyDefinitions, Boolean& fHasImports, Boolean& fHasExports, Boolean& fHasImportFromSelectedConnection) a3e0ea9c-358e-e086-1940-838bfa021eac
02/18/2015 09:46:07.60 w3wp.exe (0x29EC)                       0x0D20 SharePoint Portal Server       User Profiles                 d0lh Medium   EditProprty::_BuilDSMappingList threw exception : System.IO.InvalidDataException: Found invalid data while decoding.     at Microsoft.Office.Server.UserProfiles.Synchronization.DSMLAttribute.get_Syntax()     at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.EditProperty._BuildDSMappingList(SortedList& attributes, Hashtable& propertyDefinitions, Boolean& fHasImports, Boolean& fHasExports, Boolean& fHasImportFromSelectedConnection) a3e0ea9c-358e-e086-1940-838bfa021eac
02/18/2015 09:46:07.60 w3wp.exe (0x29EC)                       0x0D20 SharePoint Portal Server       User Profiles                 d0lh Medium   EditProprty::_BuilDSMappingList threw exception : System.IO.InvalidDataException: Found invalid data while decoding.     at Microsoft.Office.Server.UserProfiles.Synchronization.DSMLAttribute.get_Syntax()     at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.EditProperty._BuildDSMappingList(SortedList& attributes, Hashtable& propertyDefinitions, Boolean& fHasImports, Boolean& fHasExports, Boolean& fHasImportFromSelectedConnection) a3e0ea9c-358e-e086-1940-838bfa021eac

 



  • Edited by ManniJB 2 hours 59 minutes ago
February 18th, 2015 3:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics