WORKAROUND: "A document with the name 'vnd.ms-excel' is already open"

I'm posting this in the hope that it might help someone else (or that someone else might suggest a better solution)...
I'm using the technique described in the Integrating Oracle Reports in Oracle Forms Services Applications white paper. Basically, this means using RUN_REPORT_OBJECT to generate a report, and then navigating to a URL of the form...
http://<host>/reports/rwservlet/getjobid<n>?server=<name>...to show it.
I had the requirement that some reports (with DESFORMAT=DELIMITEDDATA) needed to open in Excel, so for these reports I added the MIMETYPE command to the URL, so that it was of the form:
http://<host>/reports/rwservlet/getjobid<n>?server=<name>&mimetype=application/vnd.ms-excelThis appeared to work, but only for one report at a time. I could generate one report this way, and when I navigated to its URL, the report would be displayed by Microsoft Excel within a new browser window as expected. However, if I left the browser window open, then generated a second report and navigated to its URL, a new, empty browser window was displayed, but a "Microsoft Excel" message box appeared with the following message:
A document with the name 'vnd.ms-excel' is already open. You cannot open two documents with the same name, even if the documents are in different folders.
To open the second document, either close the document that's currently open, or rename one of the documents.
When I chose OK (the only button), the message box closed, but the new browser window remained empty.
If Excel was already running to begin with, the message box was obscured behind other windows, and the new browser window remained empty and appeared to never finish loading (because it was waiting for a response from the message box). The message box only appeared if I explicitly navigated to Excel (for example, using the taskbar). When I chose OK, a "File Download" dialog appeared, followed by a message box that reported the following:
Microsoft Excel for Windows has encountered a problem and needs to close. We are sorry for the inconvenience.
When I closed this message box, Excel shut down.
I could not find this documented anywhere, but it appears as if Excel interprets the text after the last "/" in the URL as the file name. In my case, this was the same text every time (specifically "vnd.ms-excel"), which caused problems because Excel does not allow you to open two files with the same name.
My workaround was simply to add the "JOBNAME=/<n>" command (where <n> is the job ID) to make the text after the last "/" unique (at least in my case). In other words, by using a URL of the form...
http://<host>/reports/rwservlet/getjobid<n>?server=<name>&mimetype=application/vnd.ms-excel&jobname=/<n>...I was able to avoid the problem. For example, for job ID 123, the URL would be...
http://<host>/reports/rwservlet/getjobid123?server=<name>&mimetype=application/vnd.ms-excel&jobname=/123...and Excel would interpret the file name as "123".
Hope this helps.

Thanks for posting, this solution worked!

Similar Messages

  • Smart View/Excel A document with the name 'HsTBar.xla' is already open

    I got this error message when starting Excel. The following fixed it:
    1. Deleted shortcuts to HsTBar.xla in Documents and Setting
    2. Disabled Smart View in Hyperion > About
    3. Unchecked Hyperion Smart View for Office in Tools > Addins
    4. Quit Excel
    5. Started Excel
    6. Enable Smart View Hyperion > About
    I do not know exactly what fixed the problem as the error has not reoccured but hopefully this will help someone.

    Thanks for posting, this solution worked!

  • SharePoint 2007 Content deployment Error: 'A folder with the name already exists.

    Hi, In SharePoint 2007 one Content deployment job is failed with below error:
    Content deployment job 'Remote import job for job with sourceID = some id' failed.The exception thrown was 'Microsoft.SharePoint.SPException' : 'A folder with the name PublishingImages/AEI-2014/Blue already exists.'
    From last 3 days I am getting this error and previously this Job was running without any Error.
    In Import Log file getting message: "FatalError: A folder with the name PublishingImages/sg-2015/yellow already exists."
    Please tell me how to resolve the issue.

    Hello,
    It seems same folder exist in destination server that's why job is failing. You need to check destination server and remove the same name/GUID from site then try again.
    See this technet for more info: (see "Conflicting content on source and destination" section)
    http://technet.microsoft.com/en-us/library/dd795107%28v=office.12%29.aspx
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
    Meta data information can be written easily in Bridge in the Meta File Workspace.

  • Minumum and Maximum pointsize in the active document with font name

    hi
    How to find the font with point size in active document and how to get the minimum point size and maximum point size used in the active document with font name
    Thanks in Advance.

    Okay, that does look good (without testing it). Does it do its job?
    I think it can be made a bit more efficiently by not running over all text frames, but rather over all stories in the document -- a small change, the rest can stay the same.
    You can also try turning the gathering of used data around. It appears you are now pushing every item immediately into your array, then weed out duplicates. (For my thoughts on the latter, see below!) It might be quicker and more memory-efficient to scan your present array to see if the new item is already in there, and only push when it's not. (Bonus points for a binary tree implementation -- the fastest possible way! But a linear search on the entire array, or on a sorted array and bailing out if you go "past" the current item, may be fast enough.)
    (On Weeding out duplicates; you might want to skip this, as it won't be necessary for the above:)
    Your function UniteSame sorts out and removes duplicates by comparing every item to every other one; then it sorts the array. An alternative can be to
    1. Sort the array
    2. Create a new empty one
    3. Push an item of the original onto the new one.
    4. Skip items of the original list while they are the same as the bottom one of the new list.
    5. Until you run out of items.

  • Cannot backup my files / copy my files and folders due to error message " The operation can't be completed because an item with the name ".DS_Store" already exists. "

    Hi Apple community!
    I have a [rather worrying] problem.
    When I try to copy all my files from my documents on my mac [or the entire documents folder] into an external drive, I get this error message
    " The operation can’t be completed because an item with the name “.DS_Store” already exists. "
    I am not given an option to skip this file or anything else.
    But I simply cannot complete the operation!
    I have tried deleting a few of the .ds_store files, [both in the original and in the destinations]
    but no success.
    The same thing keeps happening.
    At first, this was just happening when I was trying to backup to my dropbox folder [the one on my mac's harddrive, which gets synced to the cloud],
    but then I tried to back up my documents to my external hard drive, and I realized it is giving me the same error message.
    So effectively, it seems I cannot backup my files anywhere!
    Any help or advice would be greatly appreciated.
    Thank you.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

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

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

  • Could not retrieve the document with the passed obsolete token.

    Hi,
    Issue is with the specific report not able to execute when the query is cancelled and getting an error when you are cancelling an already executing query.
    Receiving an error message during running one of our report in the
    following way:
    - Run the Webi report
    - Select the value for 8 prompts
    - Click on cancel
    - try to re-run by clicking on re-fresh and receive an error message.
    The error message is the following:
    "Could not retrieve the document with the passed obsolete token (Error: RWI 00323) (Error: INF)"
    Till now we have made the following changes:
    This might be caused by a storage token that identifies a document state, which is no longer available in the storage tokens stack.
    In the webi.properties file, increased the value of storage tokens stack size.
    1. Edit the webi.properties file found in the following location:
    u2022 <Installed dir>\program files\businessobjects\BOenterprise115\Web services\en\dsws_webservice_boe\data\asemble\dsewsBobjJava\src\WEB-INF\classes\webi.properties.
    2. Add or change the following variables:
    u2022 WID_FAILOVER_SIZE (This sets the maximum number of tokens to keep in memory. It is 10 by default.)
    u2022 WID_STORAGE_TOKEN_STACK_SIZE (this sets the maximum number of tokens stored on disk. It is 10 by default.)
    u2022     Deleted cookies.
    u2022     Add  the Java Runtime Parameter value from following path:
    Start - > Control Panel-> Java -> Java Applet Runtime Settings
    Click on View.
    Add the Java runtime Parameter value: Xmx200.
    It is not a machine specific issue however it is intermittent.
    Please advice.
    Regards,
    Pradnya Kokil

    Hi Pradnya,
    Following solutions might help you to resolve the issue.
    Solution1:
    To achieve optimum performance, the developer should limit the number of new windows that can be opened using the OpenDocument function, particularly if using it within the drill function.
    If you must open a new window each time, you can increase the number of document instances available on the system by modifying parameters in the webi.properties file:
    1. On the Business Objects server, navigate to the following directory:
    C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\classes
    2. Open the webi.properties file using a text editor.
    3. Uncomment the FAILOVER_SIZE=10 line by removing the # from the beginning of the line.
    4. After FAILOVER_SIZE, add the following:
    STORAGE_TOKEN_STACK_SIZE=40
    5. Save the file.
    6. Restart the application server
    Solution2:
    Do not use Control Key + N or File New from Browser for invoking new instance of Browser
    Avoid opening Infoview by Hyperlinks.
    Alternatively, by setting logontoken.enabled property in web.xml for desktop.war, will stop users allowing using old token
    Locate web.xml file in desktop.war file deployed on your application server
    Locate the following string in web.xml:<param-name>logontoken.enabled</param-name>
    Change the <param-value> for logontoken.enabled from true to false (forexample, <param-value>false</param-value>)
    Save and close the file
    Restart the web application server to apply the changes
    Regards,
    Sarbhjeet Kaur

  • 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

  • TextEdit: how save document with new name?

    I tryed in many ways to save modified document with new name with TextEdit but no one works for me.

    Use TextEdit > File > Duplicate.
    For this example, my original document is named Lorem.rtf. I open it with TextEdit, and then Duplicate it. A new TextEdit document window appears. Its default name is Untitled (Lorem copy). If you pass your pointer near the right parenthesis, a downward pointing triangle appears. Click that and the Name field has Lorem Copy preselected. Press the delete key to erase this name, and enter the new name — followed by a return to set it.

  • I want to see a number with the name when one of my contacts calling me.., i just see his name...i am from egypt there is a problem with a country

    i want to see a number with the name when one of my contacts calling me.., i just see his name...i am from egypt there is a problem with a country

    If someone who is listed in your contacts calls you, you will only see their name. This has nothing to do with the fact you're in Egypt. The only workaround I can see for this is to put the person's number in the name section of the contacts. In other words, put their first and last name in the first name section and their phone number in the last name section.

  • Issue in printing the batch document with the T-code COPI

    Issue in printing the batch document with the T-code COPI.
    So Batch document is not printing not printing.
    Kindly help.

    I would suggest to read this blog as a starting point: Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers
    then rephrase and enhance your question with some facts because in the moment it is not at all sufficient enough for anybody to help you further on your particular issue.
    I am even in doubt that you posted this issue in the right forum, has this PP transaction really something to do with ABAP Connectivity. Check the space overview page of ABAP Connectivity , under the picture you can read what this space is about.

  • How do I search for a song with the name I typed on my iPhone?

    I run into this a lot and it is extremely frustrating. I want to find a song like "Menuetti", but the search results end up with hundreds of variations of "Menuetto". Even though I know Menuetti is there somewhere, I can't find the song I am looking for because there is so much garbage returned. Is there any way to get the iTunes store to return the few songs with the name I asked for rather than the hundreds with the name I did not?

    You can choose what it searches and where

  • Error message "The operation can't be completed because an item with the name .DS_Store already exists"

    Major headaches with copying files and folders between drives. I constantly (and I mean constantly) have to resort to copying files across in small batches (fewer than 10 works best) because anytime I try to copy lots of files and folders from my mac to an external hard drive (or from one external HD to a second external HD), I ALWAYS get the error message  "The operation can't be completed because an item with the name .DS_Store already exists".
    The files and folders are all Mac-generated, so hint or trace of foreign OSs in the mix.
    All file types are susceptible
    the HDs are all Mac OS X formatted, no foreign file formats involved
    the HDs are all journal-enabled, OS X extended formats
    have looked on here for previous posts, past suggestion was to disable creation of DS_Store files - not really a solution and realistically, defeats the purpose of their creation
    any ideas anyone?
    would appreciate any thoughts or sugestions, this has got me beat
    the context is that I have a lot of image files that I am copying (trying to...) new external 3TB drives for backup and the job appears endless if I have to do this in batches of 10 or so..!
    many thanks for any suggestions

    This is definitively a nuisance. When copying large amounts of files between volumes  try opening a terminal window and use use ditto. You need to type the directory paths of the source and the destination volume. When it starts ditto just coupes and optionally overwrites anything on the destination. You can get a verbose mode where it lists all activities.
    gunnars-mac-mini-i7:Volumes gunnar$ man ditto
    NAME
         ditto -- copy directory hierarchies, create and extract archives
    SYNOPSIS
         ditto [-v] [-V] [-X] [<options>] src ... dst_directory
         ditto [-v] [-V] [<options>] src_file dst_file
         ditto -c [-z | -j | -k] [-v] [-V] [-X] [<options>] src dst_archive
         ditto -x [-z | -j | -k] [-v] [-V] [<options>] src_archive ... dst_directory
         ditto -h | --help

Maybe you are looking for

  • Report message

    Can some one provide me the basic steps/ code to get a message when there are no transactions when a custom gl report is run. I need the date Header message saying there are no documents. Thanks Krishna

  • Regarding partner profiles

    Hi, How to use the partner types LI and KU in WE20 transaction. Thanks&Regards Giridhar Karnam

  • Setting background color for a region

    Hi, I am using apex 4.0. I am trying to set a background color to the report region and i tried different options and did not work for me. Can someone help me with this one in setting up a background color inside a region. Thanks, Rik Edited by: Rik2

  • Errors in implementation project

    hi experts, I am new to implementation project. we r implementing to a big client, i need to know the recent advances of possible errors that may occur during my project. So, plz kindly try to help with handing documents related to the erros. so i ma

  • Error when posting GI to consigned delivery

    Hi guys, I am trying to post good issue to conisgnment order type KE (consignment issue) and getting the following error; Can somebody please help; Special Stock  not supported (check your entry) M7 146 Thanks