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.

Similar Messages

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Power view error while opening excel fine in SharePoint 2010

    I am getting an error while opening an excel file:
    "The following features
    are not supported in the browser and might not display or might display only partially: 
    • Comments, Shapes, or other
    objects 
    Some features, such as external
    data queries, display cached data which can only be refreshed in the client version of Excel."
    Is this issue browser
    related or SharePoint related?

    Hiya,
    it depends what that file contains. There are a lot of new features for Excel, Excel services in the newer versions of SharePoint and SQL server. So it really depends on which of these features your using in your excel file.
    What version is your SharePoint and SQL server(database services) and SQL Reporting?
    There is a pretty specific article for that error message relating to PowerPivot.
    https://msdn.microsoft.com/en-us/library/ff487973.aspx
    And some additional information on Excel services
    http://blogs.office.com/2005/12/01/excel-services-part-12-unsupported-features/

  • Error While opening Excel documents in browser

    Hi All,
              I have few documents in my SharePoint 2010 and most
    of them are excel documents.When the users are opening the excel work book in browser i am facing the error as below.Can any one help me how can I over come from this issue
    Thanks,
    Quality Communication Provides
    Quality Work.
    Sid

    Hello,
    I assume that you have Excel installed in your computer.
    So, I think that this error is a problem with your Internet Explorer configuration. 
    Try to open them with IE 32 bits.
    Hope this helps.

  • Getting error while opening document in SharePoint 2010

    Hi,
    I got the below error while opening a document in SharePoint library.
    "The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document."
    Please help me to resolve.
    Krishnasandeep

    Hi,
    According to your post, my understanding is that you got the error while opening a document in SharePoint library.
    The issue can occur when you have several different versions of Office installed on the same computer and you have
    several different versions of the OWSSUPP DLL available which are not registered correctly.
    To resolve this issue you should disable Microsoft SharePoint Foundation Support in any other version of Office installed on the machine and then repair Office.
    For more information: you can refer to:
    You get an error message when you open an Office file from SharePoint on a computer on which you installed more than one version of Office
    In addition, please ensure that you are using Internet Explorer (32 bit) not the Internet Explorer (64-bit).
    Please Verify the “Sharepoint OpenDocuments Class” addon is installed and enabled. If it is not reinstall Office.
    Please refer to:
    Solved: The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document.
    And, if the Office tools can’t install correctly will also cause the error.
    Here is a thread about this issue, you can check it. The replies include most of the possible reasons and gave the solutions.
    http://social.msdn.microsoft.com/Forums/en-US/06a4943a-5150-44c5-ae6b-3354c85396f5/the-document-could-not-be-opened-for-editing-a-microsoft-sharepoint-foundation-compatible
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Getting error while opening transactions in a perticular queue

    Hi All,
    we had been experiencing this error for some days now. When we try to open any transactions in this queue we end up getting the below error:
    "Access denied.
    You may not have access to perform this task on the chosen person
    or your session has timed out. (Try to log into the system again.)
    I have complte access to this - so that should be an issue. When i try to open a transaction it is long time to process and then i end up with this error.
    I heard in other post to minimise the search attributes for this and i did the same but it worked for some time and then again i am getting the same error.
    Please suggest how to get rid of this. This is right now happening only to one single queue.

    Hi,
    According to your post, my understanding is that you got the error while opening a document in SharePoint library.
    The issue can occur when you have several different versions of Office installed on the same computer and you have
    several different versions of the OWSSUPP DLL available which are not registered correctly.
    To resolve this issue you should disable Microsoft SharePoint Foundation Support in any other version of Office installed on the machine and then repair Office.
    For more information: you can refer to:
    You get an error message when you open an Office file from SharePoint on a computer on which you installed more than one version of Office
    In addition, please ensure that you are using Internet Explorer (32 bit) not the Internet Explorer (64-bit).
    Please Verify the “Sharepoint OpenDocuments Class” addon is installed and enabled. If it is not reinstall Office.
    Please refer to:
    Solved: The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document.
    And, if the Office tools can’t install correctly will also cause the error.
    Here is a thread about this issue, you can check it. The replies include most of the possible reasons and gave the solutions.
    http://social.msdn.microsoft.com/Forums/en-US/06a4943a-5150-44c5-ae6b-3354c85396f5/the-document-could-not-be-opened-for-editing-a-microsoft-sharepoint-foundation-compatible
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Cannot open document from SharePoint site

    Hi All,
    Randomly, I got this error when I trying to open a document from SharePoint sites like 'https://sharepoint.partners.extranet.***.com/'. When issue happend, all document cannot be opened from this
    site. Here is the Error message snapshot:
    'sorry, we cannot open 'https://..... ' because the server isn't responding'
    Notes:
    1) The issue only happend to this site and it's children sites.
    2) If you click the button 'Try Again', the issue will be fixed, but later (several hours/days), the same issue happend again.
    3) When issue happenend, other accounts can still open the files. The same account can open docs as well from other machines. But the issue is not related to this account and this machine because I can repro the issue from other machines.
    The issue happend more than 1 year, if you can share something insight that will very helpful. Thank you!

    Hi,
    Please add the URL of the SharePoint site to the list of trusted sites in your browser and check if that helps.
    Cheers,
    Daniel
    Daniel Bugday
    Microsoft Community Answerer, Member of Microsoft Extended Expert Team, MCT, MCTS/MCPD SharePoint 2007/2010, SQL MCDBA, MCSE
    Blog: SharePoint By Bugday
    Contact:
    Please remember to mark your question as "answered" if this solves your problem

  • Error while opening office document

    Hello Gurus!
    I try to use word intergation in WebIC (CRM 5.0). In "Create lead" trunsaction (CL_CRM_IC_ABOXSAMPLE_CR_LEAD class) I have Attachment tab. When I click "Create document with template" buton I get "Error while opening office document" error. In IE settings ActiveX is on. What should I do to make it work?
    Best regards,
    Artur.

    Hello Artur,
    Try this Note:
    Note 606745 - CRM Content Management: Document does not open
    It's not exactly for that issue but it may help.
    Good Luck
    Eli Steklov
    Please Reward Points if it Helped

  • Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications

    Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications        
    One of our Managers encounters the error 'A problem occurred while accessing the Office document cache.  Do you want to repair this problem?'
    Then When he says yes it give a warning that the cache will be backed up and replaced
    Then it says 'A new office document Cache has been created...'
    Then it loads this cache with an error
    Then After all that the next time he tries to open the document it says  is encountered "Sorry, we couldn't open 'URL."
    We have Reinstalled office 2013 on the users PC repaired the cache numerous times
    Followed -  http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
    Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
    Repair installed office 2010 and office 2013 again
    The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
    And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
    Office 365 said
    Reply by Rachel Zhang MSFT Support
    Hi Alex,
    From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
    the support engineers will help you with the issues about Office client:
    Microsoft Office Community:
    http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
    Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
    Microsoft Office Community:  
    Feel free to sign in to the Office community and click to post the question with the relevant information.
    Office team said
    Hello Alex,
    Thank you for posting your query in Microsoft Office Community.

    Check if other excel works fine
    Do you have any script\macro in excel file
    Check if all application pool on all servers are running
    both office and IE should be same build (64 or 32 bit)
    what is the error message in ULS log and Event viewer
    If this helped you resolve your issue, please mark it Answered

  • 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

  • "An error occurred sending the command to the application" When trying to open excel document from outlook 2007

    Error message "An error occurred sending the command to the application" When trying to open excel document from outlook 2007.
    OS: Windows Server 2008 R2
    If I save the document then it opens fine, messing with default file associations does not resolve this problem, I've googled for ir it and some suggest unticking compatibility mode or "run as admin" for excel application, neither is selected in my case.
    Outlook is configured to run as remote application from remoteApp server, this error is only occurring for one user, for others excel documents open just fine.

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can Create a trusted location follow these steps
    Click the Microsoft Office Button , and then click Excel Options.
    Click Trust Center, click Trust Center Settings, and then click
    Trusted Locations.
    If you want to create a trusted location that is not local to your computer, select the Allow trusted locations on my network (not recommended) check
    box.
    Click Add new location.
     IMPORTANT   We recommended that you don't make your entire
    Documents or My Documents folder a trusted location. Doing so creates a larger target for a hacker to potentially exploit and increases your security risk. Create a subfolder within Documents or My Documents, and make only that folder a trusted location.
    In the Path box, type the name of the folder that you want to use as a trusted location, or click Browse to
    locate the folder.
    If you want to include subfolders as trusted locations, select the
    Subfolders of this location are also trusted check box.
    In the Description box, type what you want to describe the purpose of the trusted location.
    Click OK.
    More detailed information you can refer to this link:
    http://office.microsoft.com/en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM12
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHN
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Can't open Excel files from Sharepoint 2013

    I am having an issue with opening Excel files from SharePoint 2013. If I click on an excel file it comes up with the error below.
    If I click Try again I get the message below also:
    If I try to open Word or PDF files they open correctly in the appropriate client and I have the option of checking them out and editing them. Any ideas why this would only be happening to Excel files?
    Thanks,
    Shaun

    Hi Shaun,
    I understand that the Excel files cannot be opened from SharePoint in Microsoft Excel.
    Can these files be viewed in the browser?
    I recommend to download a copy of the files with issue and then open them in Excel to see if the issue still occurs.
    If above cannot work, I recommend to repair Office.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Heap space error while creating XML document from Resultset

    I am getting Heap space error while creating XML document from Resultset.
    It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
    I am already using -Xms32m -Xmx1024m
    Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
    here is my code:
    stmt = conn.prepareStatement(sql);
    result = stmt.executeQuery();
    result.setFetchSize(999);
    Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
    JDBCUtil.write(doc, fileName);
    public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
        throws ParserConfigurationException, SQLException {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.newDocument();
            Element results = doc.createElement("sims");
            results.setAttribute("bank", bankId);
            results.setAttribute("record_type", "HEADER");
            results.setAttribute("file_type", interfaceFileType);
            results.setAttribute("version", version);
            doc.appendChild(results);
            ResultSetMetaData rsmd = rs.getMetaData();
            int colCount = rsmd.getColumnCount();
            String columnName="";
            Object value;
            while (rs.next()) {
                Element row = doc.createElement("rec");
                results.appendChild(row);
                for (int i = 1; i <= colCount; i++) {
                    columnName = rsmd.getColumnLabel(i);
                    value = rs.getObject(i);
                    Element node = doc.createElement(columnName);
                    if(value != null)
                        node.appendChild(doc.createTextNode(value.toString()));
                    else
                        node.appendChild(doc.createTextNode(""));
                    row.appendChild(node);
            return doc;
    public static void write(Document document, String filename) {
            //long start = System.currentTimeMillis();
            // lets write to a file
            OutputFormat format = new OutputFormat(document); // Serialize DOM
            format.setIndent(2);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            try {
                FileWriter writer = new FileWriter(filename);
                BufferedWriter buf = new BufferedWriter(writer);
                XMLSerializer FileSerial = new XMLSerializer(writer, format);
                FileSerial.asDOMSerializer(); // As a DOM Serializer
                FileSerial.serialize(document);
                writer.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            //long end = System.currentTimeMillis();
            //System.err.println("W3C File write time :" + (end - start) + "  " + filename);
        }

    you can increase your heap size..... try setting this as your environment variable.....
    variable: JAVA_OPTS
    value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

  • Getting error while opening Enterprise project type (EPT)

    Hello All,
    In Project Server 2013, I am getting error while opening any Enterprise project type (EPT) from EPT page or when I am trying ot create any new EPT. How can I troublshoot this, please help.
    Thanks in advance

    I searched ULS logs and got the below error details.
    Exception occured in method 'Workflow.ReadWorkflows' System.Data.NoNullAllowedException: Column 'WORKFLOW_ASSOCIATION_NAME' does not allow nulls.     at System.Data.DataColumn.CheckNullable(DataRow row)     at System.Data.DataColumn.CheckColumnConstraint(DataRow
    row, DataRowAction action)     at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)     at System.Data.DataTable.SetNewRecordWorker(DataRow row,
    Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)     at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID,
    Int32 pos, Boolean fireEvent)     at System.Data.DataTable....
    Let me know your advise on this.

  • 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

Maybe you are looking for