Error while programmatically adding a document to SharePoint document library

Hello everyone,
I have created a custom content type and modified the document template to use the quick parts inside the template.
I have a document library which uses the custom content type. 
I have a button inside a custom application page(created using visual studio). On click of this button I want to create a new document inside the document library using the custom content type and update other columns in the content type. I am able to create
the document, but I get the below error when I open the document.
public static void UpdateAndCreateFile(SPWeb web)
try
web.AllowUnsafeUpdates = true;
string sList = "My Document Library";
string sContentType = "My Custom Document";
SPList list = web.Lists[sList];
// this always uses root folder
SPFolder folder = web.Folders[sList];
SPFileCollection fcol = folder.Files;
// find the template url and open
string sTemplate =
list.ContentTypes[sContentType].DocumentTemplateUrl;
SPFile spf = web.GetFile(sTemplate);
byte[] binFile = spf.OpenBinary();
// Url for file to be created
string destFile = fcol.Folder.Url + "/" + "test2.docx";
// create the document and get SPFile/SPItem for
// new document
SPFile addedFile = fcol.Add(destFile, binFile, true);
SPItem newItem = addedFile.Item;
newItem["ContentType"] = sContentType;
newItem.Update();
addedFile.Update();
web.AllowUnsafeUpdates = false;
catch (Exception ex)
// handle exception here
The above code gives the same issue when I use the 'Document' content type instead of the "My Custom Document" content type. 
The document looks/opens fine when I create it from the browser.
Please let me know if you have any suggestions. Thanks.

I could not figure out a proper solution, but here is what I did to get around the issue.
I created a document using the document template and saved it to the library(same doc library) and named it as Sample.docx
In my code, every time I had to create a document, I would just copy the Sample.docx file to the library, but make sure I rename the file when I copy it.
Then I can use the url of the file I saved through my code and get the list item and update the other properties/columns of the content type
Below is the code to use an existing file and create a new file
public static void UpdateAndCreateFile(SPWeb web)
try
web.AllowUnsafeUpdates = true;
string sList = "My Documents";
SPList list = web.Lists[sList];
// this always uses root folder
SPFolder folder = web.Folders[sList];
SPFileCollection fcol = folder.Files;
SPFile file = fcol[sList + "/Sample.docx"] ;
file.CopyTo(sList + "/" + "test1.docx", true);
web.AllowUnsafeUpdates = false;
catch (Exception ex)
Thanks.

Similar Messages

  • Create a new document in Sharepoint Document Library/OneDrive on iPad/Safari

    Hi,
    My users are having trouble creating a new document from OneDrive in Safari on their iPads. The screen goes grey like its going to show the popup to select the new file type, but the popup never comes up. If they clear their cache, it works for exactly 1
    time and then goes back to this behavior. I'm not exactly sure if it worked before and/or when it stopped working. The iPad I have tested was at the latest 8.2 version of IOS and my Sharepoint farm is an On-Prem install of 2013 with SP1 mark2. My WAC farm
    is also 2013 SP1.
    Any suggestions?
    Thanks,
    Matt

    Hi,
    I understand you are suffering the issue when create a document in Sharepoint Document Library/OneDrive on  iPad.
    According to the official article
    https://technet.microsoft.com/en-us/library/fp161353.aspx?f=255&MSPPError=-2147217396, the version of your iOS should be in the supported list. I guess the issue may start after you installed an update, and if there is any other version (low versions)
    of iPads in your company, please use a different version device to test the issue.
    Meanwhile, to determine whether the issue is related to your SharePoint environment, I suggest you just to register an Office 365 trail account, and test the issue with SharePoint Online. In case the same issue happens with SharePoint Online, the issue should
    be related to your client device, and my next suggestion is to contact support of your device manufacture.
    Once you need any help from SharePoint end, please don’t hesitate to come back, and we are always happy to support you.
    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]

  • Links in Word Documents to SharePoint documents

    Our SharePoint site contains Word documents with links to other documents stored in SharePoint.
    When the users open a Word document stored in SharePoint, and then create a link, the users select the files in the "Current Folder" which is the SharePoint Network Drive.  In this case the path is
    \\rcssportal.co.riverside.ca.us\DavWWWRoot\sites\teammate\
    When users then open the Word document, and select a link, they receive a "Cannot open the specified file" pop up. 
    If users do one of the following though, after being authenticated all the links will start working:
    1. In the document library, select "Open with Explorer"
    2. Map a Network Drive to
    \\rcssportal.co.riverside.ca.us\DavWWWRoot\sites\teammate\

    Hi,
    According to your post, my understanding is that you wanted to link in Word Documents to SharePoint documents.
    I try to reproduce the issue, however, I can open the Linked Word Document in the SharePoint Network Drive.
    Please make sure you create Network Drive correctly. For more information, you can refer to:
    Using SharePoint Document Library as a Network Drive
    If the issues still exist, I recommend to select "Open with Explorer" to open the document.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Getting an error while copying pdf file into RMS enabled document library using copyTo() method

    In SharePoint 2010, I am trying to copy pdf file programmatically from a non-RMS protected document library into RMS protected library using copyTo() method.
    But I am getting an error while doing so. it gives error as mentioned below -
    This library does not accept files of the given type. You must either upload a
    new, unprotected file that supports rights management or re-upload a document
    that was previously downloaded from this library.
    Please suggest some solution.
    Thanks,

    Are You sure that you have give 'PDF' in caps in your program? and check whether you are getting all the datas before calling the method.
    in my program, i have used like this and it is working fine for me,
    I am getting PDF content from the form...
    DATA  ls_formoutput     TYPE fpformoutput.
      DATA  pdf_content        TYPE solix_tab.
      DATA  lp_pdf_size        TYPE so_obj_len.
    DATA  lv_mail_title      TYPE so_obj_des.
    *Attach the PDF .
          lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).
          pdf_content = cl_document_bcs=>xstring_to_solix(
              ip_xstring = ls_formoutput-pdf ).
          document->add_attachment(
            i_attachment_type     = 'PDF'
            i_att_content_hex     = pdf_content
            i_attachment_size     = lp_pdf_size
            i_attachment_subject  = lv_mail_title ) .

  • Error while uninstalling and then re installing sharepoint 2013 on same server(windows server 2012)

    Hi All,
    I have installed SharePoint 2013 prerequisites successfully on windows server 2012. While installing SharePoint 2013, system struck on for several minutes. I have restart my system manually. Later I then installed prerequisites which showed a successful
    lessage. But When I try to install SharePoint 2013. I am getting the following error:
    trial editions and lincensed editions of SharePoint, Project Server, and Office Web apps products may not be installed on the same server.
    I am unable to find solution for this issue. what is the solution for this?
    Thanks in Advance..
    Prem Kumar

    To be honest, the quickest thing you could do (and what I would do regardless) is re-build the server (re-install Windows).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Ssrs sharepoint 2013 error: "A delivery error has occurred ...not a sharepoint document library..."

    Greetings SSRS/SharePoint experts,
    SharePoint 2013 with SSRS - Creating a subscription to a report that is in SharePoint
    I'm trying to create a subscription to publish a report to a sharepoint document library.
    I've configured all the settings and on clicking OK get the following error:
    "A delivery error has occurred. ---> Microsoft.ReportingSerives.Diagnostics.Utilities.DeliveryErrorException: A delivery error has occurred. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidExtensionParameter: One of the extension
    parameters is not valid for the following reason: The delivery path is either not a SharePoint Document Library Folder or does not exist in the Share Point farm."
    SQL Server Developer Edition 2012 SP1
    SharePoint 2013 Standard
    Just wondering if anyone has a solution.
    I've tried changing the proxy settings as per this post
    http://social.technet.microsoft.com/Forums/en-US/19817dc7-6725-40d8-befa-1b94099a71bd/sql-server-2012-reporting-services-in-sharepoint-2013-integrated-mode-dilivery-extension
    Workaround is to not use a sharepoint document library but write the report to a windows file share (this works but is not optimal).
    Hoping someone at Microsoft or an expert will come back with something.
    Kind regards
    Gio

    Hi,
    Can you check the SharePoint ULS log located at : C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS, and look at the log there when the error occurs?
    You can also check the Application Event Log on the SQL Server to see if there are any additional errors.
    Tracy Cai
    TechNet Community Support

  • Error while creating J1IJ w.r.t Delivery document

    Dear All,
    I am getting an error while creating an outgoing excise invoice for a Depot Transaction.I have an OBD with one line item and the PGI has been done for the same .While going into the J1IJ screen w.r.t to the delivery no .Here for the same OBD i am getting 2 line items i.e one with a zero qty and the other with actual delivery qty .I couldnt figure out this error can anyone help me on this error.
    Regards,
    Vivek.k

    Verify the determination of Storage  Location & Warehouse  and also
    Refer SAP Notes
    833748 &  497287

  • Upload Multiple documents in SharePoint document Library not working

    Hi All,
            I have folder on my desktop which consists of nested folders and files(Total 11 files) .And when I select "Upload multiple files" option to upload documents and drag the folder from the desktop in pop-up window .
             The sharepoint document library uploads only 1 file among all the nested folders from 11 files.Can any one help me how can I solve this
    Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqali Mohammad .

    Hi,
    I understand you encountered the issue when use "Upload Multiple Documents" to Drag Files and Folders to upload window.
    When you say "The sharepoint document library uploads only 1 file among all the nested folders from 11 files", do you mean you have drag all files and folders to the window, while only 1 file is uploaded sucessfully? Or you cannot find all expected
    folders and files?
    Please manually open "Windows Explorer" to locate files and drag files from "Windows Explorer", instead of using the "Open window"
    opened by "Browse for files instead" as below:
    Regards,
    Rebecca Tu
    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]

  • How to display the thumbnail view of the documents in Sharepoint Document Library

    Is there a way that we can have the thumbnail view of the documents that are uploaded in SharePoint Document Library. We have thumbnail feature in Picture Library but can we have the same in Document Library too. Documents includes Words,Excel,PDF.
    Any Suggestions Please 

    Hey Mike,
    Good post, I'd be curious to see if anyone has used the GD Picture SDK with SharePoint, maybe there would be some sample code.
    Hey Kukdai,
    Developing your own solution would potentially provide a better way to accomplish your task, but before setting out on that long road you may want to try the simple customization, it's less time consuming and it will help gauge your customer's interest and
    support.
    Also, there is a wealth of open source code for SharePoint available on CodePlex, you might want to check that out as well.  Here is the linK:
    http://www.codeplex.com/
    Also, here is an interesting project to consider for your task:
    http://enhancedpicture.codeplex.com/
    I hope that helps!
    Tom Molskow SharePoint Architect - If I solved the issue please propose my reply as the answer - Thanks!

  • Ms Office Document On SharePoint 2010 library does not Open and stays on downloading

    Ms office documents on a sharePoint 2010 library does not open in client and stays on
    downloading... and never opens. This hapeens to Documents more than 2 or 3 Mb. That would be great if u cuold help me, Thanks
     

    Hi,
    This is a quick note to let you know that I am trying to involve someone familiar with this topic to further look at this issue.
    Max Meng
    TechNet Community Support

  • Run macros on all word documents inside sharepoint document library

    Hi,
    i want to run macros on all word documents which resides inside sharepoint document library.
    please help me.

    hi
    macroses are running in opened Word document process memory. In Sharepoint code is running in IIS process, so you probably have to rethink your requirements and see how you may do the same actions not by macroses, but e.g. by event receivers.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • SharePoint 2013 - getting an error while clicking on the ellipsis of a document in a Document Library

    I have a standard out-of-the-box Document Library. versioning/checkin/out is enabled. There are a few extra columns added to the library. There is this a weird random behavior when clicking on the ellipsis (...) button on a document. Sometimes it will display
    the context menu and sometimes it will give me this error:
    TypeError: Unable to get property 'FileLeafRef' of undefined or null referenceTypeError: Unable to get property 'ItemType' of undefined or null referenceTypeError: Unable to get property 'ID' of undefined or null reference
    Sometimes a refresh will fix it. Sometimes it won't. It's all pretty random.
    Anyone have this issue or have any ideas on how to solve it?

    Hi
    "TypeError: Unable to get property 'FileLeafRef' of undefined or null reference"
    You can find some alternatives here (none of which have I tried or am I recommending):
    http://alternativeto.net/software/hotspot-shield/
    I'd still suggest ensuring you are running the latest version and contacting the vendor
    "TypeError: Unable to get property 'ItemType' of undefined or null reference"
    please try to test the site using IE Compatibility View, compare the result.
    Also, try to reset IE , compare the result.
    Here is a similar posts for your reference:
    http://social.technet.microsoft.com/Forums/en-US/6efe0564-7df9-4812-b08b-a9d36e3c257b/typeerror?forum=w8itprogeneral
    TypeError: Unable to get property 'ID' of undefined or null reference
    http://community.microstrategy.com/t5/Web/TN204030-TypeError-Unable-to-get-property-id-of-undefined-or/ta-p/204030
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Error while running February 2014 CU for SharePoint 2010 Foundation: The expected version of the product was not found on the system

    I ran SP2 and SP2 for Language Pack successfully before.
    Here is how it looks:
    Product
    Version
    Status
    Language Pack for SharePoint   Foundation 2010 - Portuguese/Português (Brasil)
    Installed
    Microsoft SharePoint Foundation 2010 1046   Lang Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft SharePoint Foundation 2010 1046   Lang Pack Core
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Language Pack for SharePoint,   Project Server and Office Web Apps 2010 - Portuguese/Português (Brasil)
    Installed
    Microsoft Access Services Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Document Lifecycle Components   Portuguese (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Hotfix for Microsoft Office Server   (KB2512800)
    14.0.5138.5000
    Installed
    Microsoft Excel Services Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Excel Web App Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft InfoPath Form Services   Portuguese (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (Portuguese   (Brazil)) 2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Web Apps Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Web Apps Proof   (Portuguese (Brazil)) 2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Web Apps Shared Coms   Portuguese (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft OMUI Portuguese (Brazil)   Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Project Server Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Search Server 2010 Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Hotfix for Microsoft Office Server   (KB2475878)
    14.0.5135.5000
    Installed
    Microsoft Shared Coms Portuguese (Brazil)   Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft SharePoint Foundation 2010 1046   Lang Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft SharePoint Portal Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Slide Library Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Visio Services Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Web Analytics Portuguese   (Brazil) Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Word Server Portuguese (Brazil)   Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft XMUI Portuguese (Brazil)   Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   2010 Server Language Pack (KB2687462) 64-Bit Edition
    14.0.7015.1000
    Installed
    PerformancePoint Services in SharePoint   1046 Language Pack
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft SharePoint   Foundation 2010
    Installed
    Microsoft SharePoint Foundation 2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft SharePoint Foundation 2010 1033   Lang Pack
    14.0.4763.1000
    Installed
    Hotfix for Microsoft SharePoint   Foundation 2010 (KB2512804)
    14.0.5138.5000
    Installed
    Microsoft SharePoint Foundation 2010 Core
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft® Search Server 2010   Express
    Installed
    Microsoft Office Server Proof (Arabic)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (English)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (French)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (German)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (Russian)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Office Server Proof (Spanish)   2010
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Search Server 2010 Core
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Search Server 2010 English   Language Pack
    14.0.4763.1000
    Installed
    Hotfix for Microsoft Office Server   (KB2475878)
    14.0.5135.5000
    Installed
    Microsoft Search Server 2010 Express
    14.0.4763.1000
    Installed
    Microsoft Shared Components
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Shared Coms English Language   Pack
    14.0.4763.1000
    Installed
    Microsoft SharePoint Foundation 2010 1033   Lang Pack
    14.0.4763.1000
    Installed
    Hotfix for Microsoft SharePoint   Foundation 2010 (KB2512804)
    14.0.5138.5000
    Installed
    Microsoft SharePoint Foundation 2010 Core
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    Microsoft Web Analytics English Language   Pack
    14.0.4763.1000
    Installed
    Microsoft Web Analytics Web Front End   Components
    14.0.7015.1000
    Installed
    Service Pack 2 for Microsoft   SharePoint 2010 (KB2687453) 64-Bit Edition
    14.0.7015.1000
    Installed
    However when I try to run February CU or December CU I get the error:
    The expected version of the product was not found on the system
    it's possible that I messed up because
    I think I installed a SharePoint Server Service Pack 2 in a SharePoint Foundation Farm.
    these are the files I ran:
    1 - SP2 pt-br
    oserversp2010-kb2687453-fullfile-x64-pt-br
    2 - SP2 for Language Pack pt-br:
    oslpksp2010-kb2687462-fullfile-x64-pt-br
    3 - ran configuration wizard (had na error message the first time and success in the second try)
    4 - December CU or February CU:
    Download SharePoint Foundation 2010 February 2014 CU
    The expected version of the product was not found on the system
    In the first step I think I should have installed
    wsssp2010-kb2687464-fullfile-x64-pt-br
    Now I try to runthis and I get:
    The update is already installed on the system.
    Hopefully this is a QA Environment but it would be a pain to start over.
    Any suggestion?
    Thanks
    J.Clua

    Hi,
    Here are all errors logged:
    [OWSTIMER]   [SPContentDatabaseSequence] [ERROR] [3/11/2014 5:10:18 PM]: Found a missing   feature Id = [81606c80-44b3-47c9-8c24-136bdeb07d64]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: The feature with Id   81606c80-44b3-47c9-8c24-136bdeb07d64 is referenced in the database   [WSS_Content_Sites_01], but is not installed
    on the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: Found a missing feature Id =   [4b6e8a49-765d-47a1-92f8-91f61d07bbed]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: The feature with Id   4b6e8a49-765d-47a1-92f8-91f61d07bbed is referenced in the database   [WSS_Content_Sites_01], but is not installed
    on the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: Found a missing feature Id =   [af6d9aec-7c38-4dda-997f-cc1ddbb87c92]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: The feature with Id   af6d9aec-7c38-4dda-997f-cc1ddbb87c92 is referenced in the database   [WSS_Content_Sites_01], but is not installed
    on the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: Found a missing feature Id =   [00bfea71-dbd7-4f72-b8cb-da7ac0440130]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:10:18 PM]: The feature with Id   00bfea71-dbd7-4f72-b8cb-da7ac0440130 is referenced in the database   [WSS_Content_Sites_01], but is not installed
    on the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:16:17 PM]: Found a missing feature Id =   [5daabc0d-5714-4b95-9238-95d58704bc11], Name = [Blog Rating], Description =   [This feature allows visitors
    to rate blog posts], Install Location = [Blog   Rating]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:16:17 PM]: The feature with Id   5daabc0d-5714-4b95-9238-95d58704bc11 is referenced in the database   [WSS_Content_AcademiaTI], but is not installed
    on the current farm. The   missing feature may cause upgrade to fail. Please install any solution which   contains the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:23:56 PM]: Found a missing feature Id =   [af6d9aec-7c38-4dda-997f-cc1ddbb87c92]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:23:56 PM]: The feature with Id   af6d9aec-7c38-4dda-997f-cc1ddbb87c92 is referenced in the database   [WSS_Content_GlobalIT], but is not installed
    on the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [DEBUG] [3/11/2014 5:25:49 PM]: Retrieving site definition for language   1046...
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:50 PM]: Found 21 web(s) using missing web template   75801 (lcid: 1046) in ContentDatabase WSS_Content_EXP.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:50 PM]: The site definitions with Id 75801 is   referenced in the database [WSS_Content_EXP], but is not installed on the   current farm. The
    missing site definition may cause upgrade to fail. Please   install any solution which contains the site definition and restart upgrade   if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:50 PM]: Found 1 web(s) using missing web template   75802 (lcid: 1033) in ContentDatabase WSS_Content_EXP.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:50 PM]: The site definitions with Id 75802 is   referenced in the database [WSS_Content_EXP], but is not installed on the   current farm. The
    missing site definition may cause upgrade to fail. Please   install any solution which contains the site definition and restart upgrade   if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:53 PM]: Found a missing feature Id =   [75a0fea7-2d1e-451a-b445-16bc346d7d8e]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:53 PM]: The feature with Id   75a0fea7-2d1e-451a-b445-16bc346d7d8e is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:53 PM]: Found a missing feature Id =   [75a0fea7-5f69-4282-83ae-22808c0fbfd9]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:53 PM]: The feature with Id   75a0fea7-5f69-4282-83ae-22808c0fbfd9 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:53 PM]: Found a missing feature Id =   [75a0fea7-6e3f-4d4a-8f78-245bda567b60]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-6e3f-4d4a-8f78-245bda567b60 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [75a0fea7-040e-4abb-b94b-32f1e7572840]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-040e-4abb-b94b-32f1e7572840 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [75a0fea7-b5a0-47d5-90e6-4b3205b02278]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-b5a0-47d5-90e6-4b3205b02278 is referenced in the database   [[OWSTIMER] [SPContentDatabaseSequence] [ERROR]
    [3/11/2014 5:25:54 PM]: Found   a missing feature Id = [75a0fea7-b5a0-47d5-90e6-4b3205b02278]], but is not   installed on the current farm. The missing feature may cause upgrade to fail.   Please install any solution which contains the feature
    and restart upgrade if   necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [f7b9c169-1418-41f3-888f-8ac436e17a0a]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   f7b9c169-1418-41f3-888f-8ac436e17a0a is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [75a0fea7-f13a-4670-8b69-97e90d05f7c8]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-f13a-4670-8b69-97e90d05f7c8 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [75a0fea7-377d-4b4f-b864-984379ed0f42]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-377d-4b4f-b864-984379ed0f42 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [75a0fea7-9d96-4f02-a800-a3512154efcd]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: The feature with Id   75a0fea7-9d96-4f02-a800-a3512154efcd is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:54 PM]: Found a missing feature Id =   [90cd055f-f21f-42c5-b3fe-bb67173583d4]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   90cd055f-f21f-42c5-b3fe-bb67173583d4 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [75a0fea7-0017-4993-85fe-c37971507bbc]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   75a0fea7-0017-4993-85fe-c37971507bbc is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [75a0fea7-fe65-41c3-a965-c5df83fb098b]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   75a0fea7-fe65-41c3-a965-c5df83fb098b is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [75a0fea7-7c51-4a75-92c1-cbaccb371622]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   75a0fea7-7c51-4a75-92c1-cbaccb371622 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [75a0fea7-b0ef-434e-90d6-ce997d970564]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   75a0fea7-b0ef-434e-90d6-ce997d970564 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [75a0fea7-37d2-484b-b362-dcff1538e2a4]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: The feature with Id   75a0fea7-37d2-484b-b362-dcff1538e2a4 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:55 PM]: Found a missing feature Id =   [49c44827-4747-4e89-999c-f199ad95cfa8]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:56 PM]: The feature with Id   49c44827-4747-4e89-999c-f199ad95cfa8 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:56 PM]: Found a missing feature Id =   [75a0fea7-42e8-4527-8313-f63c4c49a7e6]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:56 PM]: The feature with Id   75a0fea7-42e8-4527-8313-f63c4c49a7e6 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:56 PM]: Found a missing feature Id =   [75a0fea7-a4ce-4a83-867d-f6be0ffdd867]
    [OWSTIMER] [SPContentDatabaseSequence]   [ERROR] [3/11/2014 5:25:56 PM]: The feature with Id   75a0fea7-a4ce-4a83-867d-f6be0ffdd867 is referenced in the database   [WSS_Content_EXP], but is not installed on
    the current farm. The missing   feature may cause upgrade to fail. Please install any solution which contains   the feature and restart upgrade if necessary.
    [OWSTIMER] [SPSiteWssSequence] [ERROR]   [3/11/2014 5:32:40 PM]: Action 4.0.23.0 of   Microsoft.SharePoint.Upgrade.SPSiteWssSequence failed.
    [OWSTIMER] [SPSiteWssSequence] [ERROR]   [3/11/2014 5:32:40 PM]: Inner Exception: Já existe um campo com este nome.
    O nome especificado para este campo é   igual ao de outro campo da lista. Escolha outro nome e tente   novamente.<nativehr>0x81020013</nativehr><nativestack></nativestack>
    [OWSTIMER] [SPSiteWssSequence] [ERROR]   [3/11/2014 5:32:40 PM]:   
    at   Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateField(String   bstrUrl, String bstrListName, String bstrXML)
         at Microsoft.SharePoint.Library.SPRequest.UpdateField(String bstrUrl,   String bstrListName, String bstrXML)
    [OWSTIMER] [SPSiteWssSequence] [ERROR]   [3/11/2014 5:32:40 PM]: Exception: Já existe um campo com este nome.
    O nome especificado para este campo é   igual ao de outro campo da lista. Escolha outro nome e tente novamente.
    [OWSTIMER] [SPSiteWssSequence] [ERROR]   [3/11/2014 5:32:40 PM]:   
    at   Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:32:40 PM]: Upgrade [SPSite Url=http://sjkqa41:7779] failed.   Microsoft.SharePoint.Upgrade.SPSiteWssSequence has the ContinueOnFailiure bit   set. Moving
    on to the next object in sequence.
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:32:40 PM]: Inner Exception: Já existe um campo com este nome.
    O nome especificado para este campo é   igual ao de outro campo da lista. Escolha outro nome e tente novamente.
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:32:40 PM]:   
    at   Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
         at Microsoft.SharePoint.Library.SPRequest.UpdateField(String bstrUrl,   String bstrListName, String bstrXML)
         at Microsoft.SharePoint.SPField.UpdateCore(Boolean bToggleSealed)
         at Microsoft.SharePoint.SPFieldIndexCollection.IndexOneField(Object   field, Boolean bIndexed)
         at Microsoft.SharePoint.SPFieldIndexCollection.Add(SPField field)
         at   Microsoft.SharePoint.Upgrade.RestoreWorkflowAndDatasourceLibraryPermissions.Upgrade()
         at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:32:40 PM]: Exception: Action 4.0.23.0 of   Microsoft.SharePoint.Upgrade.SPSiteWssSequence failed.
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:32:40 PM]:   
    at   Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
         at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o,   Boolean bRecurse)
    [OWSTIMER] [SPUpgradeSession] [ERROR]   [3/11/2014 5:37:44 PM]: Upgrade Timer job is exiting due to exception:   Microsoft.SharePoint.Upgrade.SPUpgradeException: Upgrade completed with   errors. 
    Review the upgrade log file   located in C:\Program Files\Common Files\Microsoft Shared\Web Server   Extensions\14\LOGS\Upgrade-20140311-164603-307.log. 
    The number of errors and warnings is listed   at the end of the upgrade log file.
         at Microsoft.SharePoint.Upgrade.SPUpgradeSession.CheckPoint()
         at Microsoft.SharePoint.Upgrade.SPUpgradeSession.LogEnd()
         at   Microsoft.SharePoint.Administration.SPUpgradeJobDefinition.Execute(Guid   targetInstanceId)
    Despite all the erros, can I consider these farm updated in terms of SharePoint build?
    Thanks
    J.Clua

  • Error while filling set up table SD-Billing Documents - Perform Setup

    Hello friends,
    while filling set up table of SD-Billing Documents - Perform Setup
    i am getting error 'TSV_TNEW_PAGE_ALLOC_FAILED' . i am executing this job in background process . Please suggest me a solution .
    Regards
    Nilesh Vakil

    Hi,
    Try some other LO extractor in RSA3 to check if you get the same error.
    If you dont then it may not be system memory issue, check if thr is some user exit written for the extractor.The problem could be in the user exit whr the internal table may get overflown and lead to the page overfloen dump.
    If this is also not the case try reducing the packet size.
    Let me know if the issue is resolved.
    Regards,
    Ashwin

  • Error while using BAPI  to create Goods Receipt Document

    Hello All,
        While using the bapi BAPI_GOODSMVT_CREATE to create  Goods receipt document ,the following error is encountered:-
    Error Message:FOR OBJECT XABBELEGNR,NUMBER RANGE INTERVAL DOES NOT EXIST OM36.
    Do we need to create a number range object ??If yes,how and where to create ?
    Thanks,
    Deepti.

    Hi Deepti!
    There is only a valid interval missing, not the whole object.
    Maintenance can be done via transaction SNRO, enter your object XABBELEGNR in entry screen. (Alternatively use transaction OMJ6).
    Push button 'Number Ranges' and 'Change Intervals'. Here you can define an interval.
    Regards,
    Christian

Maybe you are looking for