This column cannot enforce unique values because this list or document library may contain items that are not viewable by all users.

The above error occurs when I place unique constraint on a column in a custom list. This error only occurs because the custom list has been configured to only allow creaters to view and edit their own list items.
I just can't see why that should prevent SP from placing a unique value constraint though.
One easy workaround would be to place the unique constraint on the SQL Server table that represents this list. However, in a hosted environment, it is not always possible to gain access to the backend server. What is more, I am uncomfortable with this
approach as it may break other parts of SP 2010.
Is there any other approach?

Hi,
If SharePoint were to enforce uniqueness on a column in a list where users are only allowed to see and edit list items that have created, then you could have a scenario where -
a. user1 tries to add a new item to the list which violates the uniqueness constraint
b. SharePoint reports an error
c. user1 gets to know that there is another item containing the same value in this list
d. this violates the security settings that you configured (each user should be allowed to only see the items that they have created). Now if you change the permissions settings to allow users to SEE all items, but only
edit items that they have created, this error disappears (obviously).
Now getting to the workaround you mentioned (creating a unique constraint on the SQL Server table). This is not going to be possible for numerous reasons -
a. Modifying (or for that matter, even performing SELECT operations on) the SQL Server tables is an unsupported operation and it will definetely break other things in SharePoint, not
to mention that you will lose all support options from Microsoft. However if you don't care about this, then it will still not be technically possible because...
1. SharePoint does not create a new SQL Server table for every list/library. 
2. If you did get around to enforcing a unique constraint in the one single table that SharePoint uses for all lists, then you will be enforcing this constraint on each and every list in all the sites and in all the site
collections that are assigned to that content database.
Please "Mark as Answer" if a post has answered your question or "Vote as Helpful" if it was helpful in some way. Here's
why

Similar Messages

  • HT204406 One of my playlists is "ineligible" because it supposedly contains items that are not songs.  I unchecked the boxes for those songs, and it's STILL unavailable.  Is there a fix for this?

    One of my playlists is marked "ineligible" because it supposedly contains items that are not music.  I went through the playlist and unchecked anything of the sort, and it still says it's ineligible.  Is there another way to fix this?

    I have tried all those things I even updated the software to the new iOS system and it still did fix my problem.
    What happened is that my garage band looks like it will open then it shuts down.
    I have lot of important things on my garage band and I'm afraid that if I uninstall it deleting it then reinstalling it all my work on it will be gone and I can't have that happen.
    Everyday I am hoping that when i go to open the app that is will work but it doesn't it gets ready to turn on then it shuts off , the app doesn't even open all the way and turns off.
    I really hope I don't have to erase it.
    It'll say it's ,lading my songs then it shuts down .
    If I waited for the App Store to come up with an update for garage band should I wait till then to update my app so it doesn't get damaged . I don't want to erase it and all my data get erased . I figured if I wait for an update then my garage band will reset itself but won't delete my data. I'm not sure if that will help. Is there anything you or anyone else might know that can help me with this matter ?
    Thank you
    Simachyahi

  • The iphone could be synced because computer is no longer authorized for purchased items  that are on this iphone

    the iphone could be synced because computer is no longer authorized for purchased items  that are on this iphone how to slove this

    I first called apple and they patched me to a technician who ran a test and determined that I had a virus. He gave me some price quotes and who to call. After my conversation with him, which I knew was BS btw, I immediatley called Geek Squad with whom my computer has a warranty through after they installed virus software on my new laptop (4 months old). I had a VERY long online session where they ran several virus test and found nothing. Although I was VERY happy that my computer didn't have a virus, I still had the problem of my itunes not working. After several hours, he made sure that all of my apps were down loaded, and then restored my iphone to factory settings, and sync my device. It worked perfectly and all and I mean ALL 240 apps were downloaded back onto my iphone along with my music and all of my tones. When asked why my itunes was acting in that manner the answer that I got was,"...apparently you had a correct file some where in itunes and everything had to be reset". Regardless, everything is back to normal and I don't have to get a new phone or delete itunes from my computer. Hope this helps!

  • IPad could not be Synced because it is no longer authorized for purchased items that are on iPad

    I recently purchased an IPAD AIR and synced ir with my comuter. 14 days later I try and SYNC it and I get a message " The IPAD could not be synced because this computer is no longe authorized for purchased items that are on this IPAD. The apple id's are the same and only 2 devices authorized. Meessage states to go to STORE and Authorize Computer. When I do I get a Message it is already authorized

    The problem appeared to be a Pending Request on the IPAD for the new ICLOUD option to share Keychain. I cleared that up and it appears that fixed the issue. Thanks for your help

  • Unable to Enforce Unique Values, Duplicate Values Exist

    I have list in SP 2010, it contains roughly 1000 items.  I would like to enforce unique values on the title field.  I started by cleaning up the list, ensuring that all items already had a unique value.  To help with this, I used the export
    to excel action, then highlight duplicates within Excel.  So as far as I can tell, there are no duplicates within that list column.
    However, when I try to enable the option to Enforce Unique Values, I receive the error that duplicate values exist within the field and must be removed.
    Steps I've taken so far to identify / resolve duplicate values:
    - Multiple exports to Excel from an unfiltered list view, then using highlight duplicates feature > no duplicates found
    - deleted ALL versions of every item from the list (except current), ensured they were completely removed by deleting from both site and site collection recycle bins
    - Using the SP Powershell console, grabbed all list items and exported all of the "Title" type fields (Item object Title, LinkTitle, LinkTitleNoMenu, etc) to a csv and ran that through excel duplicate checking as well. 
    Unless there's some rediculous hidden field value that MS expects anyone capable of attempting to enforce unique values on a list (which is simple enough for anyone to figure out - if it doesn't throw an error), then I've exhausted anything I can think
    of that might cause the list to report duplicate values for that field.
    While I wait to see if someone else has an idea, I'm also going to see what happens if I wipe the Crawl Index and start it from scratch.
    - Jon

    First, I create index for a column in list settings, it works fine no matter duplicate value exists or not;
    then I set enforce unique values in the field, after click OK, I get duplicate values error message.
    With SQL Server profiler, I find the call to proc_CheckIfExistingFieldHasDuplicateValues and the parameters. After reviewing this stored procedure in content database,
    I create the following script in SQL Server management studio:
    declare @siteid
    uniqueidentifier
    declare @webid
    uniqueidentifier
    declare @listid
    uniqueidentifier
    declare @fieldid
    uniqueidentifier
    set @siteid='F7C40DC9-E5D3-42D7-BE60-09B94FD67BEF'
    set @webid='17F02240-CE04-4487-B961-0482B30DDA84'
    set @listid='B349AF8D-7238-419D-B6C4-D88194A57EA7'
    set @fieldid='195A78AC-FC52-4212-A72B-D03144DC1E24'
    SELECT
    * FROM TVF_UserData_List(@ListId)
    AS U1 INNER
    MERGE JOIN
                NameValuePair_Latin1_General_CI_AS
    AS NVP1 WITH (INDEX=NameValuePair_Latin1_General_CI_AS_MatchUserData)
    ON NVP1.ListId
    = @ListId AND NVP1.ItemId
    = U1.tp_Id
    AND ((NVP1.Level
    = 1 AND U1.tp_DraftOwnerId
    IS NULL)
    OR NVP1.Level
    = 2)
    AND NOT((DATALENGTH(ISNULL(NVP1.Value,
    = 0)) AND U1.tp_Level
    = NVP1.Level
    AND U1.tp_IsCurrentVersion
    = CONVERT(bit, 1)
    AND U1.tp_CalculatedVersion
    = 0 AND U1.tp_RowOrdinal
    = 0 INNER
    MERGE JOIN
                NameValuePair_Latin1_General_CI_AS
    AS NVP2 WITH (INDEX=NameValuePair_Latin1_General_CI_AS_CI)
    ON NVP2.SiteId
    = @SiteId AND NVP2.ListId
    = @ListId AND NVP2.FieldId
    = @FieldId AND NVP2.Value
    = NVP1.Value
    AND NVP2.ItemId <> NVP1.ItemId
    CROSS APPLY TVF_UserData_ListItemLevelRow(NVP2.ListId, NVP2.ItemId,
    NVP2.Level, 0)
    AS U2 WHERE ((NVP2.Level
    = 1 AND U2.tp_DraftOwnerId
    IS NULL)
    OR NVP2.Level
    = 2)
    AND NOT((DATALENGTH(ISNULL(NVP2.Value,
    = 0))      
    I can find the duplicate list items based on the result returned by the query above.
    Note that you need to change the parameter values accordingly, and change the name of NameValuePair_Latin1_General1_CI_AS table based on the last parameter of the
    proc_CheckIfExistingFieldHasDuplicateValues stored procedure. You can review the code of this stored procedure by yourself.
    Note that direct operation on the content database in production environment is not supported, please do all these in test environment.

  • The type of this column cannot be changed because it is currently being indexed

    Hi,
    We have a custom library with some columns defined. This library we have saved as a template and then trying to create a library using the template. When we try creating the new library using the template we get the following error:
    The type of this column cannot be changed because it is currently being indexed.
    We are not trying to change any column type just creating a new library using the template. The existing library does have a couple of indexes specified. Removing a index that is applied on a column of choice data type (drop down selection) seems to work.
    However, would like to know why this is an issue with the index?
    Although this is perfectly supported. Checked, this does not happen when I try with a new library with a choice data type and index applied on that library, it creates the template and then a new library correctly. So, what's going wrong with my earlier
    library?

    Hi Croute,
    I had checked that thread earlier and tried the Managed Metadata Service Application solution. However does not help in my case. I still get the error.
    Also, just to cross-check we created a new library from scratch and added choice column and applied index on this column. Saved this as template and created a new library using this template. It works fine without the error. So not sure what is wrong with
    the earlier library and list template that gives the error
    The type of this column cannot be changed because it is currently being indexed.
    Also, note even after giving this error the library is created with all the columns and indexes. But we need to provide a reason for the error above.

  • HT1351 Whether or not I sync items on iTunes to my ipod, I cannot eject the ipod because a message keeps coming up and saying that my ipod cannot be ejected because it contains files that are being used by another application. How do I fix this?

    I just got an ipod classic 7th generation a couple days ago and I'm having a heck of a time with it. My latest problem is that with media on iTunes, I cannot eject the ipod because it says that it cannot be ejected because it contains files that are being used by another application. What application is this, and what do I do about it?

    Hi newipoduser,
    Here are some possible solutions:
    Do you use musicmatch jukebox on your computer? If you do, you have to go into task manager on windows and end process mim.exe. It interferes with disconnecting ext devices
    Empty your "trash/recycle bin."
    If that doesn't work, try quitting all your programs, especially music-type programs, basically things that look for mp3's etc.
    if that doesn't work, "log off" then "log on" and that should refresh/purge your OS system.
    Finally, you can restart your computer.
    Hope one of these helps!
    Cheers,
    GB

  • My Ipad displays a message: Not Enough Storage: This ipad cannot be backed up because there is not enough icloud storage available. You can manage  your storage in settings.... Ive tried closing and settings but it doesn´t work and cant do anything

    My Ipad 3erd Gen... si dsiplayin a message:
    "Not Enough Storage: this ipad cannot be backed up because there is noit enough iCloud storage available. you can manage yor setorage in settings"
    Ihave tride pushing either Close or Settings and it doesnt do anything, i cant shut down or push a command in setteings mode, the message appears to be frozen in the center of the screen!
    HELP!!!!!

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. HELP

    I have a problem with my itunes. I cannot transfer apps from the itunes to my iphone 4s. Any time I try to snyc itunes tells me "The iphone could not be synced because this computer is no longer authorized for purchased items that are on this iphone. To authorize this computer for items purchased from the itunes store, choose, Store > Authorize This Computer. But anytime I authorize it tells me you have authorized including this computer 2 out 5 computers. And if I try again the same story over and over again. But I have many apps on my itunes which I want to transfer. Please someone help me.

    Well Authorize the Computer...........

  • I cant open my ipad because of this saying "Not enough storage - this ipad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings."

    i need help! my ipad is having a problem~ i cant open my ipad because of this saying "Not enough storage -> this ipad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings." if i click the button close it wont close and if i click button settings it wont go to settings as well. What will i do? how can i fix it? here's the pic of it.. need your help anyone?

    Hi jasmin,
    Did you read what Demo wrote? He wasn't saying he had a problem. He was responding to the OP who had a problem, and was providing a solution. Follow what Demo said to do....
    Cheers,
    GB

  • Have a 4S and in the lock screen it is coming up with a screen (Not Enough Storage - This iphone cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings) it then has option close or settings.....bu

    I have a 4S and in the lock screen it is coming up with a screen (Not Enough Storage - This iphone cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings) it then has option close or settings.....but i am unable to click on either or turn off the phone. I have plugged it into itunes on the computer and manually backed it up but i cannot use my phone as i cant get past this message

    Welcome to the Apple Community.
    You might try a forced shutdown to begin with, hold down the top and home buttons together until the device shuts down, then restart it.

  • The following message appears when I try to turn on the iPad..."Not enough storage..this iPad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings." When I tap Close or Settings nothing happens

    The following message appears when I try to turn on the iPad..."Not enough storage..this iPad cannot be backed up because there is not enough iCloud storage available. You can manage your storage in settings." When I tap Close or Settings nothing happens

    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I keep getting an error message that reads: Not enough storage This iphone cannot be backed up because there is not enough icloud storage available. What does this mean? How do I fix it?

    I keep getting an error message that reads: Not enough storage This iphone cannot be backed up because there is not enough icloud storage available. What does this mean? How do I fix it?

    Try doing a hard reset:
    Press and hold both the Home button and the Sleep/wake button simultaneously for about 15 seconds and release when the Apple logo appears.
    After that: go to Settings - iCloud - Storage and backup - turn off the iCloud backup
    and backup with iTunes from now on
    More info on backing up: http://support.apple.com/kb/ht1766
    Or, if you prefer to keep backing up with iCloud, check out this article, it will help you understand how to manage the iCloud storage:
    http://support.apple.com/kb/ht4847

  • I got a message saying this ipad cannot be backed up because there is not enough icloud storage available but when i try to close it it didnt gone looks like it got hang

    i got a message saying this ipad cannot be backed up because there  is not enough icloud storage available but when i try to close it it didnt close its looks like get hang up

    Try this now.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • TS4009 my ipad wont log in it says this ipad  cannot be backed up because there is no enough icloud storage available. you can manage you storage in setting. but i cannot go to settings

    my ipad wont log in it says this ipad  cannot be backed up because there is no enough icloud storage available. you can manage you storage in setting. but i cannot go to settings.. and i can not turn it off and i can not log in

    If your iPad is frozen and unresponsive, reset it by holding the power and home buttons at the same time until you see the Apple logo, then release.

Maybe you are looking for