1
Vote

Unhandled Exception: System.ArgumentNullException: Value cannot be null.

description

Hi All,

At our installation the DRYRUN works.. but the LIVE run gives the following error:


D:\Install>UserProfileSync.exe -url https://site.com -ssp http://sharedservices.site.com/ssp/admin -c
Opening User Information List on "https://site.com"

Opening SharePoint Services on "http://sharedservices.site.com/ssp/admin"
User: 33000131
Updating "PreferredName", old: "Doe, John", new: "John, Doe"
Updating "PictureURL", old: "https://site.com/ProfilePictures/33000131.jpg,
https://site.com:443/ProfilePictures/33000131.jpg",
new: "https://site.com:443/ProfilePictures/33000131.jpg"

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
at Microsoft.SharePoint.SPFieldUrl.GetValidatedUrlValue(Object value)
at Microsoft.SharePoint.SPFieldUrl.GetValidatedString(Object value)
at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, SPF
ield field, Boolean protectFields)
at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, Boo
lean protectFields)
at Microsoft.SharePoint.SPListItem.set_Item(String fieldName, Object value)
at UserProfileSync.Program.Main(String[] args)


Can someone help me?

comments

Niekoesj wrote Mar 19, 2015 at 4:19 PM

It seems it everytime goes wrong on the "Picture URL" update..

chrisco84 wrote Nov 26, 2015 at 10:17 AM

Hi Niekoesj,

I had this issue too.
The issue seems to be around the Picture Url as you suggest.
I added a try catch around the update line at the end of the source, rebulit and it worked fine.
Do you want me to send the updated source to you?
I realise it was a while ago you posted this, but let me know if you need it and I can send it on.

Thanks,
Chris