Without seeing all the code that is inserting the new record, this would be difficult to see whats going on. Since you are using the “static” methods DeclareItemAsRecord/UndeclareItemAsRecord. You might just be running into a simple duplicate record scenario. // Check for the existence of the record first if (Records.IsRecord(spListItem)) Records.UndeclareItemAsRecord(spListItem); // Then do your declare Records.DeclareAsRecord(spListItem); If this works you will at least you will know that it was an existing record issue and you can adapted your code accordingly.
Check:https://www.google.co.in/search?biw=1366&bih=655&noj=1&sclient=psy-ab&q=how+to+share%2Fupload+project+in+sharepoint&btnG=[^]
To learn all there is to know. I know I'll be disappointed one day, but I've made a good start, and the eventual disappointment is likely to be brief. -Roger Wright
The setsiteuseraccountdirectorypath operation allows the user's directory path to be set to a specific OU in the same domain. After the directory path is set to a site collection, the People Picker control will only search under that particular OU.