Duplication in SharePoint<p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt">I Have to restrict user to enter Item If Title Already Exist. By Default SharePoint only restrict Only The Row Duplication. Any one Help me on this?</span></p> <p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt"> </span></p> <p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt">Thanks in Advance</span></p> <hr size="1" align="left" width="25%">Sharepoint© 2009 Microsoft Corporation. All rights reserved.Mon, 15 Jun 2009 14:04:21 Z21a5cab0-711e-4d98-bdf8-ece1db411df0http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#21a5cab0-711e-4d98-bdf8-ece1db411df0http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#21a5cab0-711e-4d98-bdf8-ece1db411df0Manoj Kumar Phttp://social.technet.microsoft.com/Profile/en-US/?user=Manoj%20Kumar%20PDuplication in SharePoint<p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt">I Have to restrict user to enter Item If Title Already Exist. By Default SharePoint only restrict Only The Row Duplication. Any one Help me on this?</span></p> <p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt"> </span></p> <p style="margin:0in 0in 10pt"><span style="line-height:115%;font-family:'Verdana','sans-serif';font-size:9pt">Thanks in Advance</span></p> <hr size="1" align="left" width="25%">SharepointFri, 03 Oct 2008 14:14:51 Z2008-10-03T14:14:51Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#b2c6bb58-1242-470a-a5b0-8db3c2187804http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#b2c6bb58-1242-470a-a5b0-8db3c2187804Michael Nemtsev [MVP]http://social.technet.microsoft.com/Profile/en-US/?user=Michael%20Nemtsev%20%5bMVP%5dDuplication in SharePointCould you explain in more details what are you doing and what's wrong?! <hr size="1" align="left" width="25%">Visual C# MVP | <a href="http://msmvps.com/blogs/laflour/">My SharePoint blog </a>Fri, 03 Oct 2008 14:32:59 Z2008-10-03T14:32:59Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#4ec54750-4521-4d39-ad7a-5632110fe46chttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#4ec54750-4521-4d39-ad7a-5632110fe46cJamil Haddadinhttp://social.technet.microsoft.com/Profile/en-US/?user=Jamil%20HaddadinDuplication in SharePoint sharepoint doesnt take care of duplications out of the box, you can easily do it by object model where you can cancel all the new / Editted items that contains a title used in on of the old items.<br>Sun, 05 Oct 2008 10:09:17 Z2008-10-05T10:09:17Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#1ac77de2-5071-4008-b530-ca648e1ca420http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#1ac77de2-5071-4008-b530-ca648e1ca420burlohttp://social.technet.microsoft.com/Profile/en-US/?user=burloDuplication in SharePoint Write an list item event handler (<a href="http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html">http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html</a>) that overrides the ItemAdding method. In this method you want to check if the title exists (i.e use a CAML query not a foreach loop, its more efficient) if it does not exist then add it, other wise cancel the action and display a message to the user.Mon, 06 Oct 2008 02:20:41 Z2008-10-06T02:20:41Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#f16f788f-a631-460b-b49c-07322b1ec879http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#f16f788f-a631-460b-b49c-07322b1ec879Jamil Haddadinhttp://social.technet.microsoft.com/Profile/en-US/?user=Jamil%20HaddadinDuplication in SharePoint There is a tool on <a href="http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502">http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502</a>  called &quot;Uniuq Column policy Feature&quot;, download it  (*.wsp file) then install it on your server using the following command:<br><br><br>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&gt;<font style="background-color:#ff0000">stsadm -o addsolution -filename &quot;C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp&quot;<br></font><br>then go to <strong>Central Administration</strong>&gt;<strong>Operations</strong>&gt; <strong>Solution management</strong>, you will find a solution called <strong>uniquecolumnpolicy.wsp</strong>, go and deploy it.<br><br>Then go to your <strong>document library or list</strong>&gt; <strong>Settings</strong>&gt; <strong>docuemnt library settings</strong>&gt;<strong>Information management policy settings</strong> &gt; Select <strong>Define a Policy</strong>, you will find &quot;<strong>Unique Column Policy</strong>&quot; then check the &quot;<strong>Unique Column Policy</strong>&quot; box  next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.<br><br><br>Cheers<br> Tue, 07 Oct 2008 07:07:46 Z2008-10-07T07:07:46Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#758345a7-a2b1-422e-84b2-977d8e2d5d71http://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#758345a7-a2b1-422e-84b2-977d8e2d5d71Manoj Kumar Phttp://social.technet.microsoft.com/Profile/en-US/?user=Manoj%20Kumar%20PDuplication in SharePoint Thank you Jamil<br><br>I am going to try this tool.<br><hr size="1" align="left" width="25%">SharepointTue, 07 Oct 2008 09:12:50 Z2008-10-07T09:12:50Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#28f34e55-160d-4c89-a882-fb644a84a12ahttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#28f34e55-160d-4c89-a882-fb644a84a12aManoj Kumar Phttp://social.technet.microsoft.com/Profile/en-US/?user=Manoj%20Kumar%20PDuplication in SharePoint Thank you Jamil,<br><br>That Solution Works for Me<br><br>How ever it is For Single Column Constrains<br><br>Is there any option for Multiple columns constraints<br><br>Thanks in advance<br><br>Manojkumar P<br><br><hr size="1" align="left" width="25%">SharepointTue, 07 Oct 2008 11:24:35 Z2008-10-07T11:24:35Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#45150694-d65f-4d95-9ec1-5869f5078d7chttp://social.technet.microsoft.com/Forums/en-US/sharepointcollaboration/thread/21a5cab0-711e-4d98-bdf8-ece1db411df0#45150694-d65f-4d95-9ec1-5869f5078d7cptrivehttp://social.technet.microsoft.com/Profile/en-US/?user=ptriveDuplication in SharePoint<blockquote> There is a tool on <a href="http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502">http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502</a>  called &quot;Uniuq Column policy Feature&quot;, download it  (*.wsp file) then install it on your server using the following command:<br/><br/><br/>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&gt;<span style="background-color:#ff0000">stsadm -o addsolution -filename &quot;C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp&quot;<br/></span><br/>then go to <strong>Central Administration</strong>&gt;<strong>Operations</strong>&gt; <strong>Solution management</strong>, you will find a solution called <strong>uniquecolumnpolicy.wsp</strong>, go and deploy it.<br/><br/>Then go to your <strong>document library or list</strong>&gt; <strong>Settings</strong>&gt; <strong>docuemnt library settings</strong>&gt;<strong>Information management policy settings</strong> &gt; Select <strong>Define a Policy</strong>, you will find &quot;<strong>Unique Column Policy</strong>&quot; then check the &quot;<strong>Unique Column Policy</strong>&quot; box  next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.<br/><br/><br/>Cheers<br/> </blockquote> <br/>Thank you Jamil,<br/><br/>Is there any option available to avoid duplicate entried in column (multilines)?<br/>Do we need to srite any event handler for work breaker or something like that ?<br/><br/>Regards<br/>PramodMon, 15 Jun 2009 14:04:19 Z2009-06-15T14:04:19Z