Error when uploading a document to SharePoint

When uploading a file into a document library using the copy service CopyIntoItems method, I get a "There is an error in XML document (6, 3763)" (numbers variable) when the file has illegal characters in the comments of the file properties.
e.g., "ø;". Removing the comments from the file properties fixes the problem.
I don't need the comments to get uploaded, so how do I copy the file and ignore the comments?

Hello,
I think you can't ignore file properties but you can clean them. Use FileInfo class to extract file properties then remove special char. You also need to make sure that there is no special char in file name as well.
Refer this link:
http://charlesemes.blogspot.sg/2011/08/moving-crm-attachments-to-sharepoint.html
http://sharepoint.stackexchange.com/questions/34953/uploading-files-to-sharepoint-containing-the-ampersand-character
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word"

     I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word".I am sure that document is not corrupted and
    all. something it showing the preview and sometimes it throwing this error. I hope this error is intermident. When clicking on the link also it throws this error but on refreshing it working fine. I dont know why it is happening. Please helpme  to resolve
    this issue. 

    Hi Waqas
    Thanks for your help with this. I had a look at both posts, the URL works fine from the WAC server and I am not using a System account to test docs.
    Also, this is a production site that is accessible over the Internet, so we are using https therefore the WOPIZone is external-https.
    Issue #3 in the above blog link does not reflect the same error I see on my servers.
    I also had a look at the information in this link: http://technet.microsoft.com/en-us/library/ff431687.aspx#oauth
    Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.
    If you added domains to the Allow List by using the
    New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run
    the Get-OfficeWebAppsHost cmdlet. To add a domain to the Allow List, use the
    New-OfficeWebAppsHost cmdlet.
    I have not added any domains to the Allow list so this did not help either. Should I add the domain?
    Any further help with this is much appreciated.
    Thanks again.
    Yoshi

  • Error message when uploading- but document still uploads

    Hi,
    Over the past few days I've gotten an error message when uploading a document to my SharePoint site (O365/ 2013). All the error message says is "Sorry, something went wrong. An unexpected error has occurred." The correlation ID is 379ed19c-706a-1000-a3f3-e1860141685e
    The strange part is that the document still uploads fine. So there's no obstruction of the workflow or anything, but something still changes in the back end. 
    Is this occurring to anybody else?

    The process of uploading a document involves a number of steps.  The upload may go fine, but fail when it tries to update metadata or check the document in.  You need to track down that correlation ID in the ULS logs to get the specific step that
    is failing.  Here's a Blog post on how to find the error in the log.
    http://habaneroconsulting.com/Blog/Posts/Get_the_Real_SharePoint_Error_using_the_ULS_Logs.aspx#.VHzsGTHF-6k
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • I keep getting an error when uploading documents

    I keep getting an error when uploading pages, keynote, or word documents into icloud.com. It won't tell me what type or error and it acts like it loads and gets all the way to the end of the bar and then says "error please try again." Please help!

    Have you tried a different web browser when submitting your proof of eligibility?

  • Getting error while uploading a document in a library

    Hi,
    I'm getting a weird error while uploading the document in the library. And I don't get it all the times but most of the times.
    It reads:
    The file <library name>/<file name> has been modified by i:0#.<user-id> on <datetime stamp>
    How to resolve this ? I have referred many articles on this one, but none helped.
    Thanks for your response in advance.
    Regards

    Hi Prajk,
    Based on your description, I recommend to check if there are any ItemAdded event receiver or workflows which are triggered when an item is created to update the document properties in the library.
    If there is any ItemAdded event receiver on the library, I recommend to wait for ItemAdded to finish before the ListFieldIterator control residing on EditForm.aspx loads (It’s the ListFieldIterator which displays the Item’s fields ).
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    If there is any workflow on the library, I recommend to add a Pause for Duration step at the beginning of the workflows.
    If above cannot work, please check ULS log for detailed error message.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Getting error while opening Excel document from SharePoint site

    Hello All,
    I am getting following error while opening Excel document from SharePoint site.
    This issue appears when we open Excel document from Windows>> Run using below mentioned command:
    Excel.exe "{File Name}"
    If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
    I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
    Thanks,
    Amit Bansal
    Amit Bansal http://www.oops4you.blogspot.com/

    Hi Amit Bansal,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues involve Excel application.
    According to the description, you got an error when you open the document form SharePoint site.
    Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
    SharePoint 2013 - General Discussions and Questions forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error when upload appraisal offline forms on portal

    We have use BAdI HRHAP00_OFFLINE to download and upload appraisal document on portal.
    The error message occurs when upload appraisal document and we cannot debugging in the BAdI,
    I think the error raise before BAdI processing.
    Please see error message below.
    Cloud you please how to solve this problem?

    Try taking a look at the OC4J_Portal logs at the time of the error, you could also try setting up the portal repository log to trace the error.

  • Error when uploading file

    Hi all,
    we just have upgraded our EREC system to Enhancement Package 4, and we have now lot's of issues when the candidates try to upload documents in their cockpit. Even if the type of document is ok or the file size is fine also, there is the following error message : Error when uploading; the file name is invalid, or the file is too big
    We have this error with lot's of web browser : IE6-IE7-IE8-Firefox 2.xx-Firefox 3.6-Safari 3 and 4-Chrome
    It is impossible to debug this error, there is no stop at the breakpoints.
    Did anyone have any suggestion ?
    Our system information :
      EREC 604 SP 5
      NW    701 SP 5
    Thanks in advance
    Dominique

    Hello Sai,
    we already put an external breakpoint on the first step of the method called by the button, but it does not stop on this breakpoint.
    It looks like the error message is generated by javascript or is in the cache, but it is not possible to find where.
    WD component : HRRCF_C_ATTACHMENTS_UI
    View : VW_ATTACHMENT_DETAIL
    Method : ONACTIONAPPLY
    Thanks for your help
    Dominique

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • No suitable driver error when upload a pdf

    We are going to develop our own packaging tool which can provide convenient service for   Adobe Content Server.
    Before we begin on this project, we use the java sample console program which is called UploadTest to find out
    how to interact with Adobe Content Server.
    However, when we use the  UploadTest jar tool to package a PDF to Adobe Content Server and send our request
    successfully, the server always response a error as below with “httpStatus:200 " and “contentType:application/vnd.adobe.adept+xml”:
    <error xmlns="http://ns.adobe.com/adept" data="E_PACK_DATABASE http://192.168.34.56:8080/packaging/Package
    No%20suitable%20driver"/>
    Other details:
    (1)I am in Guangzhou China now ,but the server is  in the charge of our USA Team in American.
    (2)The commandline we use:
    java -Xmx1024M -jar UploadTest-1_2.jar http://our website/packaging/Package PdfFilePath -pass password.
    Who can help me?Why do the error arise? Do I need some other steps to make? Waiting for help online .Thank you very much!

    Thank you for helping us to catch the error.
    2012/12/13 Jim_Lester <[email protected]>
       Re: no suitable driver error when upload a pdf  created by Jim_Lester<http://forums.adobe.com/people/Jim_Lester>in
    Adobe Content Server - View the full discussion<http://forums.adobe.com/message/4918463#4918463

  • I see only black screen windows when upload pdf documents in safari

    Hi. I see only black screen windows when upload pdf documents in Safari. Also in old version of Safari, and in old System. In some windows, i can save the document, only now i can see this, open from pdf reader. Thank for some info.

    Back up all data.
    In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    I've seen an unconfirmed report that the "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you might need to remove it as well, if applicable.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Experiencing "timed out" error when uploading podcast

    I am experiencing a "timed out" error when uploading a podcast to iTunes. Using PC. I've updated iTunes...

    - You really need to ask the Basis team to extend the maximum run time for background processes (30 mins is too short).
    - You can also try to reduce the run time by setting up BOM Buffering in configuration so if the same BOM is used again and again (in your case of delete and recreate planned order, yes), it will read from memory.
    - You should set the planning horizon and use NETPL (net change in planning horizon) in daily run.  So that the run will only find the relevant changes in order proposal up to certain days, thus reduce run time.
    - You should discuss with your BASIS team about the list of background job in the batch windows.  Specify time in such a way that the performance-critical job (i.e., MRP, reschedule sales order, certain customized report, etc.) doesn't run at the same time.
    - You can increase the number of parallel processes to issue several jobs to run MRP at the same time.
    Rgrds,

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • (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

Maybe you are looking for