Issue with site template that contains a document library with a lookup column to another list

I have a document library called Proposals with a lookup column in the same site called Document Categories (multiple values allowed).  It points to a list called document categories.  I have several sample documents in the Proposal Library that
contain valid document categories.  When I save the site as a template and instantiate it, everything is fine.  However, when I remove the sample documents from the Proposal library and rebuild the site template, I can't get the  template to
create another site.  I get an error Unable To Open Lookup List.
I don't understand why I can instantiate a site from the template when there's sample data, but not when the document library containing the lookup column is empty.
Does SharePoint 2010 site template support lookup columns?
Why would it make a difference if the library is empty?
Thanks

Hi,
According to your description, my understanding is that the error occurred when you created a site from the template with no files in the document library.
I tested the same scenario per your post, and I can create a site from the template with no files in the document library with no errors.
To solve this issue, I recommend to verify the things below:
Did you save the site as a template with Include Content checked? If yes, I recommend to test if it works when saving the site as a template with Include Content unchecked.
Test the same scenario with a new site to narrow the issue scope.
I also recommend to check the event log and ULS log to see if anything unexpected occurred.
To check event log, click the Start button and type “Event Viewer” in the Search box.
For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
You can check the ULS log by the methods here:
http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • 163;  There seems to be an issue with the template that the site is using as there is a code to replace the pricing.

    163;
    There seems to be an issue with the template that the site is using as there is a code to replace the pricing.
    <script>
    // Script to extract the currency and decimals from the price
    var price = "{tag_saleprice}";
    var priceWithoutCurrency = price.replace( /^\D+/g, '')
    var decimals = priceWithoutCurrency.substring(priceWithoutCurrency.length - 2, priceWithoutCurrency.length);
    var roundedPrice = priceWithoutCurrency.substring(0, priceWithoutCurrency.length - 3);
    $('.image-with-price.big span').html(roundedPrice+'<sup>'+decimals+'</sup>');

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • Weird issue with Site Template in O365

    Hi,
    I ran into a weird issue while working with Site Template in O365 last night.
    I created a sub-site in a Site Collection with some Site Columns, CT and Lists. Then I saved it as a Site Template so that it can be used for different sites. Then I created 3 different sub-sites using the template. All went good.
    After some time when I looked at the sites, something really irritating happened. I saw the first two sites were missing all the site columns and CT. And the latest third site had 3 copies of each Site Column and CT.  Though for the first two sites,
    all the CT, Site Columns were available at List level, but it wad just the reference. The Actual CT was not seen the site settings.
    This is the first time I saw this kind of issue. Not sure what is the reason for this.
    Any idea around this ?
    Thanks,
    Nutan
    Nutan Sharma

    Hi,
    According to your description, my understanding is that the error occurred when you created a site from the template with no files in the document library.
    I tested the same scenario per your post, and I can create a site from the template with no files in the document library with no errors.
    To solve this issue, I recommend to verify the things below:
    Did you save the site as a template with Include Content checked? If yes, I recommend to test if it works when saving the site as a template with Include Content unchecked.
    Test the same scenario with a new site to narrow the issue scope.
    I also recommend to check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • Corrupt document gets created in document library with document template using createlistitem workflowaction in visual studio workflow for office 365 solution

    Hi,
    My requirement is to create a document library associated to a custom content type with a document template associated. Also I need to create a document based on the template in this document library when a new item is created in another list by taking the
    reference ID of that new Item , I need to create the document with the name appended by ID. I need to do all this deployment using WSP.
    I have created document library with document template associated to content type by following instructions in below stated blog :http://blogs.msdn.com/b/chaks/archive/2011/05/19/deploying-a-document-template-file-in-content-type-in-a-office365-sandboxed-solution.aspx
    This works perfect for me.
    However, there are few observations, when going to Document Library > Library Settings > Advanced Settings > Document Template section - doesnt shows the Edit template link. When tried to look at the value for the document template using view source
    , it is giving me /Lists/MyDocsListInstance/Forms/template.dotx instead of the actual template file uploaded.
    Ignoring the above observation, when I am trying to create a sandbox based workflow in visual studio to create document in document library when new item is created in another list, I provide the ContentTypeID as the ID associated with the document library
    with template. 
    It creates the corrupt document at end of workflow. 
    I have tried using .docx instead of .dotx files for workflow as per solution provided in some of the post but it isnt resolving my issue.
    Any help is much appreciated.
    Regards,
    Krutika

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • Apply Information Rights Management to document library with edit permission to site admin or Member Group in O365

    Apply Information Rights Management to document library with edit permission to site admin or Member Group in O365.
    so that one or few limited users can update or edit documents in IRM applied document library

    Hi,
    Based on your description, my understanding is that you want to apply Information Rights Management to a document library.
    Here is a link about how to set up Information Rights Management (IRM) in SharePoint admin center, you can use as a reference:
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/set-up-information-rights-management-irm-in-sharepoint-admin-center-HA102895193.aspx
    Here is a link about how to apply Information Rights Management to a library, you can use as a reference:
    http://office.microsoft.com/en-us/sharepoint-help/apply-information-rights-management-to-a-list-or-library-HA102891460.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Create document library with 2 columns multitext and lookup.

    Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
    Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
    #To which site u want to create the list 
    $spWeb=Get-SPWeb -Identity http://xyz
    #List type or template 
    $spTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary 
    #Get all the lists to the listcollection
    $spListCollection=$spWeb.Lists
    #adding the new list to the list collection
    $spListCollection.Add("Student1","Student1",$spTemplate)
    #get the path of subsite and sitecollecion 
    $path = $spWeb.url.trim()
    #get the list to the list object
    $spList = $spWeb.Lists["Student1"]
    #adding the field type(Note) to the list
    $spFieldType = [Microsoft.SharePoint.SPFieldType]::Note
    $spList.Fields.Add("COMMENTS",$spFieldType,$false)
    $ParentList = $spWeb.Lists.item("Studentlist")
    $spList = $spWeb.Lists["Student1"]
    $spList.Fields.AddLookup("lookupcol",$ParentList.id,$true)
    $spChildListLookupField = $spList.Fields["lookupcol"]
    $spChildListLookupField.LookupField = $ParentList.Fields["ID"]
    $spChildListLookupField.Indexed = $true
    $spChildListLookupField.RelationshipDeleteBehavior = [Microsoft.SharePoint.SPRelationshipDeleteBehavior]::Restrict
    $spChildListLookupField.Update()
    $Views = $spList.Views["All Items"]
    $Views.ViewFields.Add("COMMENTS")
    $Views.ViewFields.Add("lookupcol")
    $Views.Update()
    $spWeb.Dispose()
    I am trying to create a document library with 2 coulmn types multitext and look up but i am getting the following error 
    I am getting erros - You cannot call a method on a null-valued expression - $spList.Fields.Add("COMMENTS",$spFieldType,$false)
    Cannot index into a null array.
    + $spChildListLookupField = $spList.Fields["lookupcol"]
     

    Hi,
    I used the PowerShell you offered to do a test in my SharePoint 2013 and I reproduced your issue. I solved it by doing a little change to the PowerShell which you offered.
    Because you create a document library, the default view of document library is "All Documents" rather than "All Items", just change 
    $Views = $spList.Views["All Items"]
    to
    $Views = $spList.Views["All Documents"]
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using Document Library with Baseline

    Hi there,
    I have a specific need with Sharepoint. I have a document library and I want to be able to mark with a tag or generate a baseline for my folders.
    I've already searched on the web, and there is someone doing it just coping and pasting every single file. Is that the better way to get this?
    Thanks,
    Tiago

    Hi Tiago,
    What did you mean "Using Document Library with Baseline" and "generate a baseline for my folders"?
    Did you mean that navigate the document library folders in treeview?
    Did you mean that search or filter multiple folders documents with the same tag (managed metadata column)?
    You may be able to use the "Navigation Hierarchies and Key Filters" for that specified SharePoint 2010 library, here is an article about metadata navigation settings you can check below,
    http://www.sharepointboost.com/blog/understand-and-configure-metadata-avigation-and-filtering/
    Thanks
    Daniel Yang
    TechNet Community Support

  • When I open iTunes on my Macbook Pro, I am now getting a small window that says "Checking iTunes Library" with a pinwheel. This goes on for 5-10 minutes before I am able to access iTunes. Help! How do I fix this?

    When I open iTunes on my Macbook Pro, I am now getting a small window that says "Checking iTunes Library" with a pinwheel. This goes on for 5-10 minutes before I am able to access iTunes. Help! How do I fix this?

    I have the same problem. It is only with tv shows and only with programs I have downloaded after the software update.
    Apple support sent me the above link too....but it doesn't solve the problem...my computer is authorized and the content is in my library and will play on my Mac air, but it will not sync the tv shows, it keeps saying my computer isn't authorized for it.
    No answers here, but you are definitely not alone with this issue.

  • Cannot a file to document library with column validation

    I have two problems
    Problem#1: I can not create a file from C# code, If document library has a text column with Sharepoint column validation.
    SharePoint throws exception if I invoke SPFileCollection.Add method.
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object punkFile, Int32 cbFile, Object punkFFM, PutFileOpt PutFileOpt, String
    bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, Byte partitionToCheck, Int64 fragmentIdToCheck, String bstrCsvPartitionsToDelete,
    String bstrLockIdMatch, String bstEtagToMatch, Int32 lockType, String lockId, Int32 minutes, Int32 fRefreshLock, Int32 bValidateReqFields, Guid gNewDocId, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage, String& pEtagReturn, Byte& piLevel,
    Int32& pbIgnoredReqProps) at Microsoft.SharePoint.SPFileCollection.AddStreamOrBytesInternal(String urlOfFile, Stream file, PutFileOpt fileOpt, String createdBy, String modifiedBy, Int32 createdByID, Int32 modifiedByID, DateTime timeCreated, DateTime timeLastModified,
    Object varProperties, String checkInComment, Stream formatMetadata, String lockIdMatch, String etagToMatch, SPLockType lockType, String lockId, TimeSpan lockTimeout, Boolean validateRequiredFields, SPVirusCheckStatus& virusCheckStatus, String& virusCheckMessage,
    String& etagNew, Boolean& ignoredRequiredProps) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, SPFileCollectionAddParameters parameters)
    If I remove column validation, I don't get that error.
    It would appear that the error is thrown internally in Sharepoint's Add API.
    Not quite sure how to proceed now.
    Problem#2: Even if I input a valid value in the column validation, the same error above is still thrown.
    Confused................
    [Update] Okay, I have found the reason for the exception (correct if I am wrong). Sharepoint File has metadata, and when I do the Add function, Sharepoint internally does a validation on the metadata and it will throw exception if not validated. That's why
    validation would fail even when I am inputting some valid data in my field (because I am not sending that valid data to the Add function through metadata properties).So, my question now is:
    Is it possible to prevent the validation on the metadata properties? Is there some APi for it?

    I was probably not clear in my thread.
    What I would want is for my code to upload the file to the server and then allow me to input my values for the metadata, THEN do the validation. Similar to how you upload a document to sharepoint library using the out-of-the-box webparts.
    But, right now in my code, this is not possible. Uploading the file using the Add API will just throw an error BEFORE even allowing me to input any values for my item/file metadata. So, I am trying to find a way to upload my file without the validation (pretty
    much like how microsoft does it in oob)
    Not sure if this is clear enough now

  • External data column as shared column in document library with document sets

    Hello,
    I'm using a document library with document sets. Within this document library i have a External data column called "Project"
    This column has it's columns:
    Project: Installatietype
    Project: Relatie
    Project: Object
    Project: Projectleider
    Project: Status_project
    I wan't to use the external data column as an shared column for my document set(s). But i can't figure out or this is possible.

    Hi,
    According to your description, my understanding is that you want to set the external data column as a shared column in document set content type.
    I tested the same scenario in my environment, and the external data column was not supported to be set as a shared column in document set.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/5488b777-1c18-4895-a264-27802b2cde27/document-set-shared-columns-and-bcs-data?forum=sharepointgeneralprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Batch uploading to a document library with content types

    Hi,
    I have a document library with two content types. Now I need to upload documents to this document library. However, if I have large number of files, then uploading through web UI is a pain as metadata will not be attached. How should I automate it  from
    my computer using powershell without relying on Administrator to run the powershell script. Or is there any other way to do it without using powershell? or  can powershell be run remotely from an end user computer?
    Note I am using SharePoint 2010.

    Hi,
    According to your post, my understanding is that you want to butch upload files to document library with content types.
    There are two good tools in CodePlex which can batch upload files with content types, you can have a look at them.
    DocMetaMan : Bulk document Upload and MetaData (Taxonomy) Setter
    SharePoint Multiple File Upload Script
    There are some third-party tools which can achieve the same scenario, you can refer to it.
    http://sharepoint.stackexchange.com/questions/74694/uploading-multiple-files-with-metadata
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • When I open iphoto I get an error message that says Your photo library is either in use by another application or has become unreadable,

    when I open iphoto I get an error message that says Your photo library is either in use by another application or has become unreadable, I have tried restarting computer and opening iphoto whilst holding down option and command key, but then I get the following message-Your photo library is damaged or unreadable and cannot be opened. Please restore from a backup.  Please can anyone help?

    Make a back up now. If you have any vaule in Your photos always have a back up.
    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    In Library Manager the Rebuild command is under the File menu. There's also an excellent Help available.
    Regards
    TD

  • My HP laptop with windows 8 won't recognize any library with home sharing; although the other computers do.

    My HP laptop with windows 8 won't recognize any library with home sharing; although the other computers do.
    I've tried activating and deactivating home sharing multiple times, any other reason why this is happening?
    Thanks

    A couple of other things you might like to try :-
    - Determine whether you are able to access the internet from anywhere else on your new PC (e.g. do Windows updates download ?  Can you access the Windows 8 store ? )   If the answer is no, then your problem doesn't lie with IE but with the actual wireless connection.  If the answer is yes, then continue as below.
    - Run IE from the desktop instead of the Start screen - probably won't make any difference, but worth a try.
    - Download a decent browser like Firefox or Chrome and try that - this will show whether the problem lies just with IE or not
    - As a general rule, don't do anything that PC World tell you to do, lol !
    As gg30340 says, this does sound very much like it MAY be a problem with firewall settings - if you're running Norton Antivirus then I believe that will be providing the firewall service, rather than the inbuilt Windows firewall. 
    One thing you don't need to worry about - Windows 8 is a perfectly good OS and works just as well as Windows 7 did.  I'm using it now !

  • Issue with New Document in a document library with multiple content types

    Hi,
    I have a created a custom list definition based on a document library. I added 3 content types in this list, one is a document set (lets call it DOCSET), the two others are content types inheriting from Document (DOCA and DOCB).
    I deployed the list definition with a site scoped feature and the list instance with a web scoped feature. After activating the two features, the list is created and the content types are present in the list.
    When I click in the New Document button and choose either the DOCA or DOCB content type, a Word document opens and the DOCA content type is always associated to this Word document.
    With SharePoint Manager 2013 I saw that the template.dotx document was not in the Forms/DOCA or Forms/DOCB folder.
    So I decided to remove all the content types from the list definition and add them by code with the ListAdded event receiver. I used list.ContentTypes.Add to add the content types to the list.
    With this method the templates are correctly copied from the template.dotx in the RootFolder/Forms folder of my list. These templates have the rights content type id, but the New Document button still does not work properly.
    So I looked at the Content Types inside my library and saw that the DocumentTemplateUrl linked to the RootFolder/Forms/template.dotx and not the RootFolder/Forms/DOCA/template.dotx or RootFolder/Forms/DOCB/template.dotx.
    I debugged my code to look closer and see that right after the list.ContentTypes.Add, the DocumentTemplateUrl is correclty set but when my EventReceiver finishes, the DocumentTemplateUrl get back to the RootFolder/Forms/template.dotx.
    Have you any idea why this is not working ?
    Regards

    Hi,
    Per my understanding, there is an issue about the DOCA and DOCB content types which inherits from Document Content Type in your custom list definition.
    By default, if there is a custom content type inherits the OOTB Document Content Type, it will also inherits the template.dotx file from the OOTB Document Content Type.
    The template URL of a custom content type which inherits the OOTB Document Content Type:
    If you want to specify different templates for different content types, the code demo below would be helpful:
    http://www.learningsharepoint.com/2010/07/14/programmatically-create-a-new-content-type-in-sharepoint-2010/
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for