Link to Excel document in site throws "Document with same name already open"


I have an Excel document stored in a document library in SP2010.  I provided a link to the document in a CEWP on a page.  When clicking the link on the page, Excel throws the erorr "Two documents with the same name cannot be opened" error. 
When clicking the link in the document library, the Excel workbook opens fine.  When hovering over both links, the URL in the status bar is identical.  Here is the link in the page:
<span style="width:120px; padding-right:50px;">
<a class="ms-addnew" href="https://mydomain.com/sys/groups/ermcg/RA/Shared%20Documents/RA1.xlsm">
<img src="https://mydomain.com/sys/groups/ermcg/RA/SiteAssets/excelsmall.jpg" style="border:none;vertical-align:middle;"></img>&nbsp;Download to Excel</a>
</span>
Thanks in advance,

Hi jd_hancock,
The scenario is not reproduced in my environment.
I used Fiddler to check whether there are differences between them to download the file, it seems the same and the file also successfully opened in the Content Editor Web Part.
I would suggest you to use the same way to check whether the download process is the same, also, type the url directly in the address bar, whether the document can be opened as expected?
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support

Similar Messages

  • Previews does not actually "replace" if document with same name is open.

    I am using FMP 9.0--When I "save records as PDF"....
    IF I have a pdf open in Preview with the same name,
    Preview offers to "save as",
    tells me I have one w/the same name and asks if I want to replace...
    I say YES....and
    ONLY the older version is saved.
    (I happen to be troubleshooting a script so the name is "toss.pdf"--several times. If the previous toss.pdf is not open it works as anticipated. Otherwise I do not actually "replace" the older one as preview leads me to believe.)
    I have not tried this on a non-intel machine, so I don't know if it's Intel specific--or if it's just me...:-).
    Not a huge problem, but it seems that if it is an issue it could use a fix..

    Hi,
    Thank you for posting in Windows Server Forum.
    By default it will automatically update the RemoteApp and Desktop Connections but if in any particular case it’s not happening then for a try you can restart the server and check the result again.  In addition you can try running below command and check
    the result. 
    Start-Process rundll32 -ArgumentList "tsworkspace,TaskUpdateWorkspaces2
    More information:
    Powershell to update "RemoteApp and Desktop Connections"
    If a task is registered using the Administrators group for the security context of the task, then you must also make sure the Run with highest privileges check box is checked if you want to run the task. Please check “Task
    Security Context” for more details.
    Hope it helps!
    Thanks,
    Dharmesh

  • Error while uploading document with same name in Document library

    Hi,
    Whenever I try to upload document with same name in Document library it throws an error. I know its a default behavior but is there any way so that I can upload documents with same name or can we append some unique id with title of the document?
    Please suggest.
    Thanks

    No, unfortunately this is not possible. SharePoint treats the file name as the primary key identifier for a document so if you try to upload a second document with the same name it will assume this is a new version of the file. If you have versioning enabled
    on the document library, it will add this as a new version. If not, it will overwrite the original file with the new one.
    If you need two documents with the same name, you will have to either place them in different folders within a document library or in different document libraries.
    http://stackoverflow.com/questions/11894968/uploading-documents-with-same-name-to-sharepoint-2010
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • [JS CS3] Frontmost document/selection when other with same name?

    I have a few scripts used to perform various operations on the current selection in InDesign. Under normal circumstances these work fine, but I can't seem to reliably get the frontmost document/selection when there is another document open with the same name. Most references to the document and every reference to the selection I have tried so far will simply lead to the document which was most recently opened (and has the same name).
    app.activeDocument.fullName always return the path to the most recently opened document of the same name, but app.documents[0].fullName will return the correct path. Trying to get the selection though will always return the selection of the most recently opened document of the same name, regardless of whether I try app.selection, app.activeDocument.selection or app.documents[0].selection. I have also tried with getElements()[0] appended to the document reference but it makes no difference.
    My primary environment is still CS3 and the problem appears to be that it only references documents by name. Brief testing with CS5 indicates this has been solved by Adobe, presumably because it now refers to documents using an id by default. Haven't tried CS4 but since its document object does not have an id property I'd assume it will behave the same as CS3. Is there any way around this, or is the best I can do to detect the issue (a simple app.activeDocument != app.documents[0] comparison seems to work reliably) and refuse to run if encountered?

    Welll...chances are the selected item will not be a valid ID in both documents of the same name. (I don't think ID's are globally unique, so that's not a guarantee -- but it's something you can check and only give an error if it happens to be that there is a collison).
    So, get the transaction specifier of the selection:
    app.activeWindow.selection[0].toSpecifier()
    Result: /document[@name="u1.indd"]//text-frame[@id=211]
    Then, iterate over app.documents to find the indexes of the documents with that name.
    In my test, of course it is just zero and one.
    Then, try to resolve the specifiers against those documents:
    resolve("/document[0]//text-frame[@id=211]")
    Result: [object TextFrame]
    resolve("/document[1]//text-frame[@id=211]")
    Error: Object is invalid
    Since only doc 0 has a textFrame with id 211, you know it's doc 0 and you have a valid specifier.
    I chose to adjust the specifier by hand, because I think that's probably the most general. The other choice would be to call app.documents[0].textFrames.itemByID(211), but then you would need to map "text-frame" to "textFrames" and that seems annoying and errorprone.

  • Is there a good way to automate changing existing links to external PDFs to instead be to PDF attachments with same names?

    Greetings!
    Can anyone tell me a good way to automate changing a "main" PDF's existing hyperlinks to external PDFs to instead be links to PDF attachments to the main PDF (the attached PDFs to have the same filenames as the external PDFs) ?
    Format of current link in main PDF:
    Go to a page in another document
    File: C:\\path\filename.pdf
    Destination name: P:1
    When link is manually changed to link to a PDF that has been attached to the main PDF:
    Go to a page in another document
    File: PDF attachment
    Page: 1
    Zoom level: Fit page
    The new PDF link does not list the PDF attachment filename in the link.
    The main PDF (the one that has the links that I would like to automatically change) is generated with the hyperlinks to other PDFs from Adobe FrameMaker 11.  In FrameMaker11, we added special marker text "openpage filename.pdf:1" that is "automatically" changed to be hyperlinks to external PDFs when the main PDF is created (postscript file is processed) by Adobe Acrobat Pro 11.
    My first choice is to be able to change the format of the special marker text in Adobe FrameMaker source file, but I have not found way to specify a link to be to a PDF attachment with a certain filename.
    However, I would also really like the option of running a batch file on a main PDF to change the links there.
    Has anyone tried using that Adobe ExtendScript ToolKit CS6 to do this? That is, a script that could automatically modify the hyperlinks in a PDF to link to PDF attachments rather than external PDFs, or else modify the unprocessed links while they are still in Postscript file format, or else modify the marker text in FrameMaker to instead of creating a link to a PDF in the same directory as the main PDF being processed, to create a link to a PDF attachment files?
    Thank you,
    Judith Wallace
    [email protected]

    FrameMaker's Hypertext feature has no ability to "link" to an attachment on/in a target PDF.
    PDFs sourced from FM can have named destinations set in the FM authoring files such that a link from file01.fm to the specified named destination in file01.fm will be functional in the PDFs created from the FM files.
    Then, of course, there's the dynamics possible by use o FM Books. But that's the grist for the mills at the FM user-2-user forum.
    RE: Scripting - PDF scripting is via Acrobat JavaScript. That something still of and by Adobe although it may migrate to an ISO Standard (or be rolled up in a future ISO 32000).
    So, to the point - look to Acrobat JavaScript for scripting.
    Be well...

  • Picture Library : upload image with same name overwrite the image in thumbmail or WebVersion view but not the actual image link points to the old image

    Hello,
    I am facing a wired issue with Picture Libraries in SharePoint.
    We created a custom field and added it to UserInfo list, the column based on custom field lets user upload their personal images to a Picture Library with the name <User ID>.<Image Extension> e.g. 1.jpg where UserID is internal Listitem ID of the UserInfo list and set its URL to the field value which we use to display the image on our custom user profile and some other WebParts.
    If the user uploads a different image, it will overwrite the existing one it keeping the same name.
    The field worked perfectly with sites using widows Based authentication, but as we move the field to sites with form based authentication we find that the field is able to upload the image properly first time but on each successive upload, although a new image gets uploaded with the name userid.imagextension and is shown in the allitems.aspx page in the thumbnail view and in the picture preview on the dispform.aspx page, but the link next to the name field and the image shown on clicking the preview points to the old image.
    To put it other way
    https://<Web URL>/Picture%20Library/_w/Upload_jpg.jpg
    https://<Web Url>/Picture%20Library/_t/Upload_jpg.jpg
    Would show the updated image
    but the actual URL
    https://<Web Url>/Picture%20Library/Upload.jpg 
    points to the old image
    what’s even more strange is that even after deleting the image the url still shows the old image at
    https://<Web Url>/Picture%20Library/Upload.jpg 
    I confirmed the same by actually repeating the same exercise on a picture Library in the User Interface
    Uploading an image say upload.jpeg in the picture library using SharePoint interface.
    Then uploading a different jpeg image keeping the same name upload.jpeg again in the picture library.
    In allitems.aspx thumbnail view and on dispform.aspx page preview filed image now show the newly uploaded image but when you click the preview image or click the link in the name field value it takes you back to the old image.
    I have seen this issue on environment where we have enabled form based authentication and the issue is not seen on another server where we have wss with windows based authentication.
    Has anyone noticed such behavior and is there any workaround to that!
    Thanks & Regards
    Saurabh Rustagi

    All,
    I had the same issue. 
    In my case, Blob Cache was enabled for the web application in which the image issue was occuring.
    I cleared blob cache, and after doing a hard refresh of my browser, the correct image was then displayed.
    To clear blob cache, do the following:
    Navigate to:   
    http://yourwebapp:port/yoursite/_layouts/objectcachesettings.aspx
    Select:  "Object Cache Flush"  and  "Force all servers in the farm to flush their object cache" check boxes
    Click the OK button
    Hope this helps.

  • Append XML elements with same name in an XML document

    Hi,
    I am using Oracle9i XMLDB utilities to modify an XML document stored in the database. I have a sample XML document like this in the database:
    <Person>
    <Address ID="1"> </Address>
    </Person>
    My task is to include a second <Address> element with a different attribute so that my XML document will become
    <Person>
    <Address ID="1"> </Address>
    <Address ID="2"> </Address>
    </Person>
    After creating the second element, I am using the function xmldom.appendChild() or xmldom.insertBefore() but they remove the first <Address> element and replace it with the second one. This is not what I want since I want both <Address> elements to be present.
    Could anyone please advise.
    Thanks.
    A. Dennis

    Please post your question [url http://forums.oracle.com/forums/forum.jsp?forum=154]here for quick response.
    thank you.
    Regards,
    Anupama
    [url http://otn.oracle.com/sample_code/]OTN Sample Code

  • Acrobat X Pro won't save document b/c it thinks a file is already open, but it isn't

    I get an error message when I try to save a pdf. It says that it couldn't save the file because it is already open, but there's no other pdf file open.
    What is causing Acrobat to think that more than one file is open when there is only one file open?

    No, I'm running Windows XP.
    The only thing open is Acrobat and the explorer window box that appears when you want to save a file.
    It appears to me that Acrobat is still accessing data from a file that was previously open but is no longer open.
    How do I make it so that Acrobat sees only the file(s) that are actually open and not files that have been closed?
    My only way to work around this problem is to completely close Acrobat and then relaunch it in order to do what I need to do. Very inefficient.

  • Unable to Access Web Site (with same name) outside of Local Network

    Hi everyone,
    I have my web site (and some other services) hosted outside of my network by my hosting provider, but handle all other items using OS X Server on my network (i.e. Wiki and so forth).
    The problem is now that I am unable to access my website at www.mydomain.com from within the network. I have external DNS set up for www.mydomain.com to point to my website, while mydomain.com points to my OS X Server (static IP address). Internally in OS X Server's DNS settings this used to work when I had www.mydomain.com resolving to the IP address of my web host, in addition to the default domain settings that OS X had set up. For some reason this is no longer working, and I am unable to figure out why.
    Using latest version of OS X Server 3.0.2.
    Any help is greatly appreciated. Thanks!
    Update: this ended up being a redirect issue on the web host. I added another subdomain that was hosted externally, and it worked fine. For some reason my web host is redirecting www.mydomain.com to domain.com.

    I am in Texas and cannot get to that site either. Do you know for sure the site is up and working? It could just be down (for days, a site I support was down for almost 4 full days a few weeks ago due to a virus problem).
    This may (again, may) be your problem: I see you have a173.48.x.x (you really should x-out the last two octets of your IP address for privacy reasons), I am on a 173.74.x.x address; I know some people have had problems with getting to some sites now that they have a 173.x.x.x address. I think Verizon obtained addresses in that range and some of the addresses apparently previously belonged to spammers or some malicious folks.Some sites (web sites, intermeidate routers, etc.) blocked those addresses, and may not have updated their filters to remove the block on those addresses because they don't know that Verizon now owns them. If this is the problem, eventually those filters will get updated and you will be able to access the site, but this could be a fairly long time.
    If you know how to contact that site I suggest you email them about the problem. You can also try turning off your router overnight and when you turn it back on the next day you may find that you have a different address (one that doesn't start with 173) that will allow you to get to the site.
    I don't think there is much Verizon can do to help, it is not their site that is blocking your address (at least I don't think it is).
    Hope this helps.
    Justin
    Verizon FiOS TV, Internet, and phone
    IMG 1.6.2, Build 08.58
    Keller, TX 76248

  • After opening firefox to a site and then close to go to another site i get a message "Firefox already open have to close previous site or restart compter"

    When I open Firefox and go to a site and then close to go to another site it will not let me open the site. a message tells me Firefox is already running and have to close previous site or restart my computer. Only way to continue is to restart computer
    Also have 500 Internal Server Error

    When I open Firefox and go to a site and then close to go to another site it will not let me open the site. a message tells me Firefox is already running and have to close previous site or restart my computer. Only way to continue is to restart computer
    Also have 500 Internal Server Error

  • After saving a file using Excel 2010 in the My Documents folder, it cannot be found using the open button in Excel 2010

    When certain files are saved using Excel 2010 to the My Documents folder, they cannot be found by using the Open button within Excel 2010.  But the file is always found using My Computer and following the path to My Documents.  What is
    even odder is that if I do a "Save As" within Excel and rename the file to the same name but with a "!" at the beginning of the name, it will then show up in the Excel Open window.  There doesn't seem to be a distinct pattern as to
    when the file can or cannot be displayed by the Excel Open button.
    I am using Windows 7 64bit along with Office 2010 64bit.  Windows has current service packs and updates.  There are perhaps 200 - 400 Excel files in the My documents folder. Some of them are .XLS and some are .XLSX.
    William Fearn

    Hi,
    Do you mean that you can't find the Excel file when you click Excel->Open->My Documents folder? 
    Do you use the other folder path to test?
    Dose the issue occur in other Office suits (Word, Power Point)?
    Do you get some error message, like "Windows cannot find 'FilePath\FileName', Make sure you typed the name correctly, and then try again."?
    Please try the following methods:
    Method1:
    1. Go to the registry. Click START, and in the RUN command line type REGEDIT and hit ENTER or click OK.
    2. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
    3. Double click on the (Default) instance over to the right. Right now this probably says something like:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    Change this value to:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    4. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command
    Again, double click the (Default) entry to the right and change
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    to
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    Note : Please backup the registry key before you modify.
    Method2:
    Click the File tab, and then click Options.
    Click Advanced, scroll down to the General
    section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the
    General area.
    Thanks
    George Zhao
    Forum Support
     Come back and mark the replies as answers if they help and unmark them if they provide no help.
     If you have any feedback on our support, please click "[email protected]"

  • Links break on complex imported AI documents in new AI document

    I'm creating a series of mapsheets for various projects in Illustrator. Rather than recreating a base map for each mapsheet, I've created tiles with various features such as shoreline, rivers, lakes, contours and even hillshade rendering that can be co-joined in a second document. This allows me to create a larger scale or smaller scale map and still keep the overlaying places names and geographic features to the same scale. In some cases as many as 8-10 tiles might be necessary for a single document, but in most cases it is 1-4 tiles. My issue: starting with CS4 the links for the tiles would break on import. So in the links panel I would get a blank square with no name associated. In addition, the quality of the tile when imported in the document is imperfect. The scale of features is off and elements are missing. I upgraded to CC and this problem persists. The only solution is to save the AI tile as a TIFF in Photoshop and import it as art, but this removes the ability to upgrade the tile, as the background mapsheets are constantly being improved and corrected. If imported as an AI mapsheet, the amended tile can flow automatically through all documents when opened. If a TIFF file, the TIFF has to constantly be changed to reflect the improved tile. So basically the whole project is only hold pending resolving this issue. Thanks for any help.

    Thanks the screnshot was very helpful. Looks like you are placing .ai files. Open those original .ai files you are linking to and use these settings.
    For most jobs I prefer to turn off PDf compatible and include linked images. You may prefer to work that way while in the design/editing phase, as you files will be much smaller and quicker.
    Also try using .psd instead of .tif. The .psd format goes through more testing since Adobe owns and is responsible for that and the inherit nonlossy compression makes your files smaller. Tif also has LZW which is nonlossy, but you risk more of a chance to experience problems.

  • Need site url instead of computer name in link sent by email using sharepoint designer workflow

    Hello,
    We are sending email to view item of a document library using below syntax :  [%Current Item:Created By%] on
    [%Current
    Item:Modified%].
    When trying to click from inbox , it is displaying link :
    http://servername/sites/site1/doclib/abc.xml   where as site name has been given as
    http://test.com
    So we need to display as  http://test.com/sites/doclib/abc.xml.
    So if we migrate this site to another server with same name, so wont make any issue about workflow.
    Please guide.
    Thanking in advance.
    Regards,
    Jayashri

    the built-in emails from SharePoint (alerts, etc) build the URL using the Default Zone in the webapp's AAMs... sounds like you just need to update the AAMs to the DNS names that you *want* to use.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • View the versions of document from share point document library using code.

    HI
    i want to develop a web application (asp.net) from
    1) users will browse and view documents saved in document library by passing a documents DocumentID as parameter 
    to  sharepoint 2010 web application.
    2)also that  document has versions and how users  will view required versions, if user  will upload document to document library
    it will create new version and if user will same document with same name it over-right as new version.
    and how user will view the old version 
    adil

    Replay:
    From your description, my understanding is that you want to develop a web application to view document history versions of SharePoint 2010.
    You could accomplish your requirement by using Client Object Model, please refer to this article:
    https://msdn.microsoft.com/en-us/library/office/ee857094(v=office.14).aspx.
    You could refer to this code below:
    namespace clientOM
    class Program
    static void Main(string[] args)
    ClientContext clientContext = new ClientContext("siteUrl");
    Web site = clientContext.Web;
    clientContext.Load(site);
    List list = site.Lists.GetByTitle("Documents");
    clientContext.Load(list);
    clientContext.ExecuteQuery();
    CamlQuery query = new CamlQuery();
    query.ViewXml = "<View/>";
    ListItemCollection allContacts = list.GetItems(query);
    clientContext.Load(allContacts);
    clientContext.ExecuteQuery();
    FileCollection allFile = list.RootFolder.Files;
    clientContext.Load(allFile);
    clientContext.ExecuteQuery();
    foreach (File file in allFile)
    string version = file.UIVersionLabel;
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    foreach (FileVersion hisVersion in versions)
    string hisversion = hisVersion.VersionLabel;
    Best Regards
    Vincent Han
    TechNet Community Support

  • [CS3][JS] Uniquely identifying documents with common names - possible?

    Hi!
    Is there no way to refer directly to a document in app.documents when there are several documents with the same name open at the same time (located in different folders)?
    I have tried to assign unique labels to the documents when opening them, but have not succeeded in referring to documents by their labels, only by name - and the name not being unique, I get just one document reference (the first).
    I also tried using the documents.itemByRange function, supposedly returning an array of all documents in the range defined by the parameters sent to the function. However, sending in the same name in the "from" and "to" parameters, returned only one document:
    app.documents.itemByRange('test.indd', 'test.indd').getElements().length
    Result: 1
    //(I would have expected to get both of them)
    // Referring directly by the name:
    app.documents.item('test.indd').getElements().length
    Result: 1
    // Checking the name of the documents by their indexes:
    app.documents.item(0).name
    Result: test.indd
    app.documents.item(1).name
    Result: test.indd
    Do you really have to loop through all open documents and check their fullName to be able to uniquely identify a document if the names are not unique?
    Kind regards,
    Andreas Jansson

    Hi Dave,
    Make that three or four... ;)
    Kris at Rorohiko created a method to get unique references to two
    different documents with the same name. It's usable if you have the free
    APID ToolAssistant version 1.0.44 or higher. (it doesn't need to be
    licensed...)
    Here's an excerpt from the reference manual:
    The get doc GUID function is used as follows:
    guid =
    app.callExtension(0x90B6C,10008,document);
    This function returns a GUID (Globally Unique Identifier) for a
    document. This is a string of the form
    {nnnnnnnn-nnnn-nnnnnnnnnnnnnnnnnnnn}
    where all 'n' stand for a hexadecimal digit.
    These GUID allow you to work with same-name documents that
    are concurrently open without getting tangled in the confusion
    that occurs when using resolve calls.
    As long as a document is not moved from its original location on
    disk, it will keep the same GUID. Two documents with the same
    name but different paths will have different GUID.
    Opening, closing, (re)saving to the same location will NOT
    change the GUID.
    Moving a document to another location will change the GUID.
    The find open doc by GUID function is used as follows:
    doc = app.callExtension(0x90B6C,10009,guid);
    This function retrieves a reference to an already open document
    based on its GUID string.
    These GUID strings are unique and persistent and allow
    persistent references to same-name documents without resolvelike
    issues (but the documents are meant to be 'unmovable' i.e.
    they cannot be renamed or moved to another folder). Once the
    document is open, it can be retrieved via its GUID.
    HTH,
    Harbs

Maybe you are looking for

  • Search on interactive report

    is there anyway to search hidden columns? I've got a 'Comments' column that I don't need to have display, yet want the user to be able to search on it. Thanks in advance... Sorry everyone - I see I've got two posts of this same question - my bad - Mo

  • Different exchange rate type M in different company codes

    Dear all, I am facing the following very inconvenience problem: I am an SAP consultant and has ALWAYS set up exchangre rate type M, the same rate used for all company codes in the Group. My new customer wants to have different exhange rates for ALL c

  • Survey Link Not Working

    Experts: I created Survey in 'CRM_SURVEY_SUITE' for marketing. I could able to generate the the URL. But when try to test the URL, it opens up  blank webpage (no survey). Any suggestions Thanks

  • Automator Issue

    I'm currently encoding my CD collection and have directed the encodes into a particular folder called "Lossless Encodes". I've tried setting up a folder action using "Copy Finder Items" that sends files from the "Lossless Encodes" folder on my laptop

  • Reducing noise in camera raw images

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f5548d97812e28a69a90- 7ffb.html