Unable to upload document into SharePoint Library

Hi Guys,
I am unable to upload the document after updating the meda data field default values.
Error is
Error
The URL 'SharedDocuments/A - Copy (2).docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current
Web.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: a658472e-d608-4aaa-8f8f-04fedc9a2a0b
Date and Time: 4/24/2014 2:35:28 PM
Go
back to site
thanks,
Santhosh G.

Hi,
I had updated the default value of the managed metadata field using the below code.
After that, the library worked well without any issue, you can use the below code to check whether it works.
TaxonomySession taxonomySession = new TaxonomySession(site);
TermStore termStore=taxonomySession.TermStores["Managed Metadata Service"];
Group group=termStore.Groups["Site Collection - sp"];
TermSet termSet=group.TermSets["Test1"];
Term term=termSet.Terms["AA"];
SPList list = web.Lists.TryGetList("1");
TaxonomyField taxonomyField=list.Fields["MMS"] as TaxonomyField;
Console.WriteLine("Old Default Value:{0}", taxonomyField.DefaultValue);
taxonomyField.DefaultValue = "-1" + ";#" + term.Name + "|" + term.Id.ToString().ToLower();
taxonomyField.Update();
Console.WriteLine("New Default Value :{0}", taxonomyField.DefaultValue);
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • (409) Conflict Error while uploading the file into Sharepoint library

    Getting the below error while uploading the file into Sharepoint library.
    (409) Conflict. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl,
    Stream stream, String etag, Boolean overwriteIfExists
    I have used the below code:
    ClientOM.File.SaveBinaryDirect(clientContext, "/Shared%20Documents/NewDocument.pptx", memoryStream, true);
    Thanks in advance.

    May be issue is with path.
    https://server/ should be there instead of
    subsite path(https://server/path/path)
    in the client context
    Check the below link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fbb38b10-1127-48a6-a65f-0301edd766c4/the-remote-server-returned-an-error-409-conflict-error-while-uploading-files-to-sharepoint?forum=sharepointdevelopmentlegacy

  • Upload multiple documents to SharePoint library in parallel using c#

    Hi Team,
    We are trying to upload thousands of documents to SharePoint library programatically.I am able to achieve this sequentially . Please help me in achieving this parallely and improve the performance.
    Thanks in Advance.

    You can try new .net framework async/await feature as described at
    http://blogs.msdn.com/b/cdndevs/archive/2013/12/18/c-async-and-await-why-do-we-need-them-part-1.aspx. However, you need to limit your concurrent requests, you don't want to span 100 files upload in parallel.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How to upload data into Sharepoint?

    Hello Community
        Before you use RBS you have to either:
        1- Manually upload data into Sharepoint 2013 Server
        2- Use a migration tool. 
        But how do you "manually" upload data into Sharepoint 2013 Server and what is the
    recommended tool to use to upload data into Sharepoint 2013 Server
        Thank you
        Shabeaut

    Uploading manually just involves uploading data like you normally would to SharePoint. Drag-and-drop documents into the Document Libraries or use WebDAV to connect to the SharePoint site and copy that way.
    As for migration tools, there are plenty out there. ShareGate, Metavis, Metalogix, AvePoint and others have migration tools.
    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.

  • Can anyone help? am unable to upload photos into iphoto. have been doing it for a few years but will not allow it anymore. no error message comes up. has anyone had a similar experience?

    can anyone help? am unable to upload photos into iphoto. have been doing it for a few years but will not allow it anymore. no error message comes up. has anyone had a similar experience?

    What version of iPhoto? How are you trying?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Search text in document of sharepoint library

    I am trying to write a program which will fetch the word document from sharepoint library and check if a metadata(term set) e.g.
    "Movies" exists in the document or not. I need to know if there is any way I can read a document? Currently I get search to use interop assembly. I have to download the document on the server for that, Is there any other way in which I can read document
    from the library itself without downloading and check if the word "Movies" is present in it. Using Sharepoint 2013.

    hi
    the way you choose is too complicated: you will need to open the documents by yourself programmatically and analyze its content. Standard Sharepoint search crawler is already integrated with Office documents (and in 2013 version with pdf without additional
    configurations), i.e. when it crawls the content it checks not only documents names but also content inside these documents.
    So if you only need to display list of documents based on the search query, use OTB search. If you need to do something with the search results programmatically, you can make search queries programmatically and then process the returned items in the code
    (see e.g.
    Programmatically working with Keyword Search Queries in SharePoint 2013).
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • GuidedProcedure - how to move uploaded document into KM?

    Hello Anyone,
    could you please help me on how to get an uploaded Document into a specific Directory of the KnowledgeManagement?
    Currently I am trying to create a Process (Guided Procedure) which lets a User upload a Document (Callable Object->Misc->File Input), create a Folder in the KM, store this uploaded Document into that folder and adapt some folder-rights, configure discussions, etc..
    However, I can't find any programs/webdynpros/callableobjects which do these things? Any hints on standard, reusable "components" which may be used as Callable Objects to work with the KnowledgeManagementSystem?
    Thanks a lot,
    Kai

    Follow Up: is there any possibility to use existing iViews like CallableObjects, e.g. setting default parameters, chaining iViews, etc... ?

  • Can Contributors access Visio documents in SharePoint library

    Hi,
    Can site contributors view / edit Visio documents in SharePoint library?
    Please anyone help me on this.

    How can I do this :Also try visio
    /safe and deactivate any addons.
    Can you please give me detail steps?

  • Unable to upload document in KM Content

    Hi all,
             I am uploading documents into KM content by following path Folder> New> Upload. Previously it was working fine but today  the document is not getting uploaded and it is not giving any error message also.
           I followed the path Folder>New>Upload and provided the file name and path. After clicking upload, no message or pop-up is appearing and screen is navigating to KM root screen and the document is also not getting uploaded.
          Any suggestions why this is happening? Please suggest me
    Thanks & Regards
    Pavan

    Hi Pavan,<br>
    Few days back I face the same issue and the SAP note resolve the issue(we have windows as OS).<br>
    So check the following:<br>
    1) the variable "temp" and "tmp" must have the absolute path to the temporary folder( do not use% sign in the path).<br>
    2) If you are creating a seprate ttemporary folder as per note then in the environmental variable keep it's path first , then of oters.<br>
    3) try to give full Full Control on the temporary folder created.
    <br>
    Hope this may help.
    <br>
    _Vishal

  • I am using apple iPod-suffle model and I am unable to upload music into iPod and 3 lights(green,orange and red) keeps blinking for few seconds when I connect my iPod to my PC and after few seconds its turn to unresponce mode,Plz help to find out solution

    I am using apple iPod-suffle model,I am unable to upload music into iPod and 3 lights(green,orange and red) keeps blinking for few seconds when I connect my iPod to my PC and after few seconds its turn to unresponce mode,Plz help to find out solution.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Save document from word into sharepoint library does not work !

    Hi,
    I'm trying to resolve a problem that i have with word and my sharepoint website.
    Some of my users have to open and RDP session on a windows 2008 server and work from there. They open their session with their credential and they do everything they do in local on sharepoint using IE.
    BUT, we have always and ever had an issue on this server as they c'ant save a document (Word or Excel) from office. They have to upload it from sharepoint uising IE. In example, i want to save my document from word into the sharepoint document library I  have
    this error message :
    "Windows doesn't find (http://intranet.sharepoint.com/DocumentLibrary/). Check and retry".
    If I open my sharepoint site and i upload the document it works perfectly. Also if I open and edit an existing document from any library it will work with word. The problem seems to happen when i want to browse sharepoint from word for saving files...
    As this server is a windows 2008, IE version is 9 and the office version is the same as on all computers (Office 2010 SP2 32Bit)
    Any help would by appreciated
    Regards

    Hi,
    I understand you encountered the issue when save document from Office client application to SharePoint 2010 site.
    Is there any Proxy settings in networking side? Please bring up IE > Internet options > Connections > Lan settings. If so, please uncheck options in Proxy server and test the issue again.
    If you have deploy GPO to add SharePoint site into Trusted sites, please check if there is any other GP associated with trusted sites that might affect the issue. You could also remove it from Trusted sites via IE options and test the issue again.
    In addition, please provide more error message to help narrow down the issue, you could locate error information in Event log at least.
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • How do I upload scanned documents into SharePoint?

    Is there a way to automatically upload scanned documents from a scanner into SharePoint without the use of a third party tool? I was just thinking about this, but then couldn't figure out how the metadata piece of the scanned document would work. Has anyone
    implemented anything like this? Or is there a blog that can be recommended? I have not been able to find anything that could point me in the right direction.

    Hello,
    Several MFP manufacturers are releasing solutions for this. You should see what your reseller has to offer.
    Personally, I'd recommend you try Udocx. It's designed to include metadata, OCR etc when scanning to SharePoint folders. There's more information on www.udocx.com/SharePoint
    Cheers,
    Iris
    Iris vH

  • Drag and drop an email attachment into SharePoint Library

    Is it true that it is not possible to drag and drop a file attached to an email directly into a SharePoint Library?
    When I try I get the transparent effect and then an error message. Windows 7, Office 2013, SharePoint 2013.
    I would like to make sure it's not some configuration that can be changed.

    HI,not possible to directly drag and drop email from out look.You can save the mail as outlook template in drive and do drag and drop.please find the below links that explains functionality.
    http://expertsharepoint.blogspot.de/2013/12/how-to-upload-multiple-documents-in.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Import Documents into SharePoint 2013

    I am migrating to SharePoint from another system.I want to import my documents to a SharePoint document library. I know how to import into this library, but the problem is with user rights. I have to many documents to import so, the process has to be automatically.
    I have also the metadata for the documents. The old system allows me to export the user rights for every document in a file. It can be CSV, excel etc, so the file format is not a problem. Is there any way I can import these user rights into SharePoint?

    Not really, there's loads of examples on how to upload files and how to set properties but to put all that together to create a custom import process isn't that easy. It's also a potentially pretty steep learning curve if you're not familiar with PowerShell.
    If you search for PowerShell permissions and SharePoint you can get a good few examples. This thread has a few nuggets:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/349151cc-a941-48c5-bc37-9247297e6e8f/manage-item-permission-via-powershell

Maybe you are looking for