Word 2013 COM automation fails to open file when offline

I'm getting a weird error the I'm guessing may be related to OneDrive integration in Word 2013.
I've got a Python script that uses COM Automation to get Word to open a .DOC/.DOCX file (the script should then paste something into the very first line, save the document, and close it).  When I'm online everything works great.  While
using Word 2010 everything worked great, online and offline.  
When I'm on the bus (and, therefore, offline - there's no WiFi/Clearwire/etc for my laptop) the script fails, and it fails specifically at the  line where I try to do the following:
wordapp.Documents.Open("path_To_File\file.doc");
The directory that contains the file is in OneDrive; it is marked as being "Available Offline".  
My guess is that when Word 2013 is not on a network it's having trouble with the OneDrive integration.  
I'd love any advice on either fixing this or what to look for next to better diagnose this problem.

Hi,
This issue more about Script, if you want more profession suggestion, please post it in TechNet Script Forum.
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
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. Thank you for your understanding.
Greta Ge CHN
TechNet Community Support

Similar Messages

  • 11GR2 2nodes CRSD ASM - Failed to open file in dirty mode

    Hi...
    we facing a problem with a two node 11gr2 cluster.
    Independently first started node one ore node two. The node that has start first starts normal.
    The second started node fail with error mess ......
    vi .../emcrsp.log
    2011-04-17 10:19:14.406: [  OCRASM][4090540208]ASM Error Stack : ORA-15077: could not locate ASM instance serving a required diskgroup
    2011-04-17 10:19:14.408: [  OCRASM][4090540208]proprasmo: kgfoCheckMount returned [7]
    2011-04-17 10:19:14.408: [  OCRASM][4090540208]proprasmo: The ASM instance is down
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprioo: Failed to open [+DGCONF]. Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprioo: No OCR/OLR devices are usable
    2011-04-17 10:19:14.416: [  OCRASM][4090540208]proprasmcl: asmhandle is NULL
    2011-04-17 10:19:14.416: [  OCRRAW][4090540208]proprinit: Could not open raw device
    2011-04-17 10:19:14.416: [  OCRASM][4090540208]proprasmcl: asmhandle is NULL
    2011-04-17 10:19:14.416: [ default][4090540208]a_init:7!: Backend init unsuccessful : [26]
    [   CLWAL][738463920]clsw_Initialize: OLR initlevel [30000]
    2011-04-17 10:19:15.272: [  OCRASM][3128352944]proprasmo: Failed to open file in dirty mode
    2011-04-17 10:19:15.272: [  OCRASM][3128352944]proprasmo: Error in open/create file in dg [DGCONF]
    [  OCRASM][3128352944]SLOS : SLOS: cat=8, opn=kgfolclcpi1, dep=402, loc=kgfokge
    The interlink is up and running.
    We try to recreate the OCR and Voting from daily backup without any result
    Does anyone has an idea ?
    Thanks *T
    Edited by: tbrinkmann on Apr 20, 2011 5:15 AM

    Hi Paul,
    yes the ASM is down.
    That was confusing me. If I shutdown the other node the +ASM can start and clustering com´s up normal.
    It looks like only one node can use voting or ocr....
    The behavior looks like the interlink is down buts is not ;:-(
    One node ( first com´s up) start normally and take all cluster resources ...scan .. the vips..
    And second node show this error mess..
    Thanks
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Windows 8 and ArchLinux dual-boot - Failed to open file: arch\boot\...

    Hey!
    I have a problem where I don't know how to configure the EFISTUB to boot ArchLinux along Windows 8. I have read the instructions on the wiki and tried for two days and the only thing I've come up with is copying some files into the /boot/efi/EFI/arch/ folder, and adding the entry into the UEFI boot menu. I can select it when Restarting Windows8 through the shift-restart thing and stuff but when it attempts to boot it says:
    Failed to open file: arch\boot\archiso.img
    I don't know how to set this up and fix it. I am so confused with everything right now due to the instructions on the wiki basically being "You can either do it this way, that way or any other way." but does not specifically expain how each works (at least so that I understand it fully) and what has to be done to complete these steps. Like, I need a complete tutorial from Start to Finish, to do this because I'm too nervous messing up my partitions. I have understood some parts thought and what I want is to be able to boot it from the EFISTUB instead of chain-booting like I usually do. I just don't know how to connect the entry in the list to the proper files to boot the system.
    What I have done:
    Installed the base system.
    Istalled grub in the base system but has not used grub to install on the /boot yet because I don't know if it is to be used if I'm supposed to use the EFISTUB (I was thinking efibootmgr would be enough)
    Tried to use efibootmgr to make the entry, but the entry does not work. (If this is how I should do it, can you explain which partition to target and what the different values would mean when answering?)
    I don't know which one is right, or if both shall be done (I guess Grub is used if I want to chain-load. I guess I can do it if it's the only way)
    Anyway, I hope you guys can answer me so I can fix this. Thanks

    What you're trying to do now is:
    EFI->kernel (EFI stub)
    This is appealingly direct, but it's tricky to get working. What the wiki now recommends is:
    EFI->gummiboot->kernel (EFI stub)
    ...or...
    EFI->GRUB->kernel
    These approaches are less direct, but they're easier to configure. The trouble is that both the EFI's built-in boot manager and the EFI stub loader are tricky to configure. For a newbie to get them both configured correctly on a first attempt at installing Arch is very difficult. Getting the EFI to launch gummiboot or GRUB is easier because these programs don't require the complex parameters that the EFI stub loader requires. Those parameters can instead be specified in the gummiboot or GRUB configuration file, which is easier to manage for quite a few reasons.
    If you want to pursue using the EFI stub loader directly, you certainly can. I've learned from experience, though, that it's not worth my time to try to help with users who want to do this. Using an intermediary program is easier to get working. IMHO, the direct approach has no real benefits except that it gives you bragging rights that you've done it. Your system won't boot any faster or more reliably in the more direct approach. (Well, technically it will be faster, by only by a matter of milliseconds, assuming you use a 0 timeout value in gummiboot.) In fact, it will be less reliable, because gummiboot, GRUB, and rEFInd all offer ways to adjust boot options on a boot-by-boot basis, which is very helpful when fixing problems. You can't do this with the direct approach.

  • MacVim - Persistent UI failed to open file file

    Hi,
    I have recently installed MacVim. Now, every time i start MacVim from the Terminal, I have this error message :
    Persistent UI failed to open file file://localhost/Users/Me/Library/Saved%20Application%20State/org.vim.MacVim.sa vedState/window_2.data: No such file or directory (2)
    I saw that the file file://localhost/Users/Me/Library/Saved%20Application%20State wad locked.
    How can I solve this problem?
    Any help would be appreciated. Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by zhai ping ([email protected]):
    I have uploaded the word documents by sql loader,but some documents succeeded,some failed
    why?
    1.create table
    create table wordtable(
    title varchar2(256) primary key ,
    content blob);
    2.load.ctl
    load data
    INFILE 'load.dat'
    INTO TABLE wordtable
    APPEND
    FIELDS TERMINATED BY ','
    (title,
    ext_fname FILLER CHAR(80),
    content LOBFILE(ext_fname) TERMINATED BY EOF)
    3.load.dat
    ND551,./doc/001.doc,
    ND552,./doc/002.doc,
    ND553,./doc/003.doc,
    ND554,./doc/004.doc,
    ND555,./doc/005.doc,
    ND556,./doc/006.doc,
    4.Use sqlloader to load the documents
    sqlldr userid=test/test control=load.ctl log=load.log
    <HR></BLOCKQUOTE>
    null

  • ASM to non-ASM database duplicate-ORA17503:ksfdopn:2 Failed to open file

    Hi,
    I am trying to duplicate an ASM database in to non-ASM database.
    Having trouble when trying to start the duplicate database, it is looking for the redologs which are there in the ASM diskgroup in the production database, but the duplication database is non-ASM,
    The database version is 10.2.0.4 on HP-UX 11.31
    ORA-00313: open failed for members of log group 11 of thread 1
    ORA-00312: online log 11 thread 1: '+DATADG/orcl/onlinelog/group_11.302.670427231'
    ORA-17503: ksfdopn:2 Failed to open file +DATADG/orcl/onlinelog/group_11.302.670427231
    ORA-15001: diskgroup "DATADG" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    Sun Aug 21 14:20:14 2011
    Errors in file /u01/app/oracle/admin/orcl/udump/orcl_ora_12482.trc:
    ORA-00367: checksum error in log file header
    ORA-00305: log 12 of thread 2 inconsistent; belongs to another database
    ORA-00312: online log 12 thread 2: '/oradbstg/oradata/orcl/redo01.log'
    Sun Aug 21 14:20:14 2011
    RESETLOGS after incomplete recovery UNTIL CHANGE 3632387878
    Resetting resetlogs activation ID 1179611173 (0x464f7025)
    Sun Aug 21 14:20:14 2011
    Errors in file /u01/app/oracle/admin/orcl/udump/orcl_ora_12482.trc:
    ORA-00313: open failed for members of log group 7 of thread 1
    ORA-00312: online log 7 thread 1: '+DATADG/orcl/onlinelog/group_7.298.670427121'
    ORA-17503: ksfdopn:2 Failed to open file +DATADG/orcl/onlinelog/group_7.298.670427121
    ORA-15001: diskgroup "DATADG" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    Sun Aug 21 14:20:14 2011
    Errors in file /u01/app/oracle/admin/orcl/udump/orcl_ora_12482.trc:
    ORA-00600: internal error code, arguments: [kgeade_is_0], [], [], [], [], [], [], []
    ORA-600 signalled during:  alter database open RESETLOGS...Any help would be appreciated.

    When you are performing this task , is the ASM diskgroup "DATADG" mounted or existed.. try to figure out that first whether the diskgroup is mounted/existed or not .. And also when incomplete recovery is performed oracle creates the online redolog files when you start the db with resetlogs..
    you can go through the following link :
    http://oracleinstance.blogspot.com/2010/08/duplicatecloneconvert-asm-file-system.html
    Cheers!

  • ERROR : failed to open file : ifrun60_dump_????

    dear every body,
    while working on oracle 6i form. when i click on any menu option
    some times i m facing this error and my application shut downs
    ERROR : failed to open file : ifrun60_dump_????
    some time it is ok but some it is creating trouble on same form
    what is the reason or how to come out of it
    Plz reply

    funny thing about OTN forums is : you can write AND read (it's not a WOM) !!!
    ERROR : failed to open file : ifrun60_dump_????
    ERROR : failed to open file : ifrun60_dump_????
    ERROR : failed to open file : ifrun60_dump_????

  • *ERROR: failed to open file " export directory path /ABAP/DATA/SAPSTR.LST

    Hello experts,
    I am doing system export.
    as per the system copy guide I follows all steps.
    when I tried for export preparation.
    I got following error in  "/tmp/sapinst_instdir/ERPEhP4/LM/COPY/DB6/EXP/CENTRAL/AS-ABAP/PREEXP/R3ldctlExport.log"
    ERROR: failed to open file "/db2/PRD/sapdata4/export_prd/ABAP/DATA/SAPSTR.LST"
    /db2/PRD/sapdata4/export_prd is my export directory.
    but I found that the "SAPSTR.LST" is not exist in the location.
    also I don't find any log regarding this error.
    how to resolve this? please guide.

    Hi Rupesh,
    In continuation of previous mail, there is keyboard problem hence spelling mistakes.
    Various possible solutions:
    Report SMIGR_CREATE_DDL has to be executed before starting export preparation.
    OR
    Download llatest kernel patch and apply them in /spmnt/<SID>/exe
    make sure download latest patch R3ldctl file and R3load from SAP Marketplace and apply them in to /sapmnt/<SID>/exe.
    Make sure export dump folder should be in local drives (in windows) or local filesystems i.e.do not  use network drives  (windows) or NFS (in case of unix).
    FInally check permission by using chmod 777 in exportdump folder in case of unix.
    Regards
    APR

  • When i down load a book on to my ebook reader i get a message saying "failed to open file"

    When I down load a book on to my ebook reader and try to open it I get a message saying "failed to open file"

    Restart your Mac and the scanner then try scanning.
    By the way, there's an alternative to using the Canon scanner software.
    Use the pre installed Image Capture app in your Applications folder instead >  Mac Basics: Using a scanner

  • ORA-17503: ksfdopn:2 Failed to open file +M0347_DG1/m0347/spfilem0347.ora ORA-15001

    ASM database version:11.2.0.3
    Getting below error in both alert logfile of ASM in two node cluster.
    ============
    Errors in file /u02/diag/asm/+asm/+ASM1/trace/+ASM1_ora_86521.trc:
    ORA-17503: ksfdopn:2 Failed to open file +M0347_DG1/m0347/spfilem0347.ora
    ORA-15001: diskgroup "M0347_DG1" does not exist or is not mounted
    Same thing is written in trace file as well.
    There is only one database P0347 is running and diskgroup M0347_DG1 was for other database M0347 which is discontinued so diskgroup M0347_DG1 was dropped.
    But why it is looking for spfilem0347.ora, please let me know how to rectify it.

    ORA-17503: ksfdopn:2 Failed to open file +M0347_DG1/m0347/spfilem0347.ora
    The database P0347 has nothing to do with the issue . right?
    Probally you don't removed database M0347 from OCR and CRS was trying to start database.
    Using $ORACLE_HOME of Database
    $ srvctl config database -d M0347
    If it's registered in OCR you should remove it.
    This command will remove database.
    $ srvctl remove database -d M0347
    Check if Diskgroup is registred.
    Using $ORACLE_HOME of GI
    $ srvctl config diskgroup -g M0347
    If registered in OCR you can remove it.
    $ srvctl remove diskgroup -g M0347

  • Aluratek Libre - "failed to open file"

    I have been using my Libre for over a year now with epubs from my public library with no problem. Yesterday I went to move some newly borrowed books over and was asked to authorize my device. So I did - not much choice really. Message says device authorized, I proceeded to move files. When I try to open them on Libre I get File failed to open message on all books from library. My books loaded through calibre work fine. Library books will open through ADE on PC (Windows) from LIbre. I have upgraded firmware on Libre, removed and reinstalled ADE on PC, removed and reauthorized Libre. Problem remains. I downloaded free ebook from Adobe - same issue. Non Adobe DRM files work fine. Can anyone shed some light on this for me?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by zhai ping ([email protected]):
    I have uploaded the word documents by sql loader,but some documents succeeded,some failed
    why?
    1.create table
    create table wordtable(
    title varchar2(256) primary key ,
    content blob);
    2.load.ctl
    load data
    INFILE 'load.dat'
    INTO TABLE wordtable
    APPEND
    FIELDS TERMINATED BY ','
    (title,
    ext_fname FILLER CHAR(80),
    content LOBFILE(ext_fname) TERMINATED BY EOF)
    3.load.dat
    ND551,./doc/001.doc,
    ND552,./doc/002.doc,
    ND553,./doc/003.doc,
    ND554,./doc/004.doc,
    ND555,./doc/005.doc,
    ND556,./doc/006.doc,
    4.Use sqlloader to load the documents
    sqlldr userid=test/test control=load.ctl log=load.log
    <HR></BLOCKQUOTE>
    null

  • Automator service to open file in app only works if app is closed

    For my work I frequently need to edit text files that have non-standard extensions (and many have no extension at all). So for convenience when browsing in Finder, I created a simple Automator service that opens selected files TextMate:
    It works but the problem is that it only works if TM is initially closed before running the service. If it's open when the service runs, the TM menu bar appears but the file doesn't open. If I close TM and re-run the service, the file opens. How should I modify the service so that it will work whether or not TM is initially open or closed? Thanks!

    Thanks! That works, but I had to keep the 'Get Selected Finder Items' as the first action.
    Both of these configurations open an empty TextMate window:

  • Help! Word for mac 2011 won't open files

    Hi,
    I wasn't able to find a suitable category to place this question under, but hope someone can help all the same.
    I have Word for Mac 2011 on my 2011 iMac. In the last couple of days, it has stopped opening files (by double-clicking on them, or by going to File > Open). Instead, I get an error message which reads:
    "Document name" uses a file type that is blocked from opening in this version
    (The message then continues with smaller print, telling me how this is for security reasons but that I should be able to use File > Open to access the file - which I can't).
    The only way I have found to open the files is by using File > Open and in the 'Enable' box choosing 'Recover Text from any file'. However, this is pretty unhelpful because I lose the file's logos and formatting.
    Note that this problem happens to all files regardless of which version of Word they were created on.
    Please help! I really need to access my Word docs...
    Thanks in advance.

    I am also suddenly having this problem.  It seemed to start after I upgraded to Lion.  I had Word 2003 until I upgraded to Word 2011 last year, so I don't have 2008 to go back to.  The documents it won't open are just blank.  They will open with Open Office.  This is just so annoying!  I thought it was a Lion incompatibility, but you are saying it is a Microsoft problem?

  • Visual Studio opening files when dragged and dropped in WPF app debugging session

    I'm working on a WPF app (using VS2013 CE) which is intended to manage media files (TV Shows, movies, etc) and as part of this I am enabling the user to drag and drop media files on to the running app (by adding AllowDrop="True" and PreviewDragEnter="Window_PreviewDragEnter"
    to my Window definition).
    The problem I have is that when I drag files onto the app in a debugging session Visual Studio then opens the file(s) when I stop debugging... this is seriously annoying as when I am testing with large media files (> 1GB) it just locks up VS for minutes
    at a time while it tries to open the file or files. When I run the app outside the debugger this does not happen - it's only when I'm in a VS debugging session.  The only way I can stop this happening is to kill VS completely from Task Manager then restart
    it - this is also very annoying but often I need to do this as it will freeze up for 5-10 minutes while it insists on loading the files in VS.
    I understand the app, whilst debugging, is running in the context of VS but why does VS then have to try to open the files when debugging is finished?   I have looked through the options but can't see anything to switch this off and no amount of searching
    has turned up anything - can anyone put me out of my misery with a solution to this annoying issue?

    Hello nzmike,
    Does Visual Studio behaves like the following image shows and just hangs when opening your media file?
    Do you have any other computer which installs Visual Studio? Can you reproduce this on it?
    In order to troubleshoot this issue I think we need to locate the root reason of your issue. The problem can related to the following:
    1. Your project is corrupt and VS then trys to load that file when debug finished.
    2. Your VS is corrupt and caused this problem.
    So please do something below:
    1. Try clean and rebuild your project.
    2. Switch to some other PCs and use VS and your project there, check if the problem can be reproduced.
    3. You can backup your VS setting and try some commands: devenv /resetsettings and devenv /resetuserdata
    Details about VS command:https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
    And based on th research of the above second step, if you can reproduce this issue on more than one PC, the problem is pending on your project and I need you to share a simple sample which can reproduce this issue. We will need to investigate the project
    in detail.
    Best regards,
    Barry
    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.

  • Photoshop enlarges all open files when I magnify a file. How can i get it to only magnify one file

    When I use the magnifying glass to enlarge my file in photoshop cs3, all of my open files magnify at the same time. I only want one of them to enlarge. This started happening when I bought a new Macbook pro and installed OSX10.6.5. Does anyone know how I can fix it so only the file I am working on enlarges? sometimes I want to compare a smaller file to a larger file and I can no longer do that in Photoshop.

    Hello Gtarka,
      There is an option on the Zoom tool to "Zoom All Windows". This is just a check mark in the tool options bar, next to the "Resize Windows To Fit" option, directly under the Menu bar. Simply deselect this option.
      Please, in the future, post such questions here:
    http://forums.adobe.com/community/photoshop/photoshop_macintosh
      This forum is for questions about Photoshop.com, the web site.
    -Brett

  • Error 'Unable to open file' when downloading SAP Query to Excel

    Hi all
    I'm running a SAP Query which is set to download straight to a spreadsheet (Pivot Table / Microsoft Excel).  Intermittently it does not work -  apparently at random (at least, I've can't recreate the error at will).
    It does one of the following:
    - Works ok, and creates the pivot table
    - Gives an Excel error message 'Unable to open file', then returns to the 'save the data in a spreadsheet' popup when enter is pressed on the error.
    - Does not issue error message, just goes to the 'save the data in a spreadsheet' popup.
    In the last two cases, the excel pivot table sheet is not created.
    Has anyone seen anything similar, or have any idea as to what is causing the problem?
    Any help gratefully received!
    Not urgent as I've found a way round -  further testing seems to show that I don't get the error is Excel is already open - but in the past I've run many SAP query downloads without needing to open Excel first.  I suppose it's possible that this is just something to do with the Excel setup at the user site
    Message was edited by:
            E Gregory

    Hi,
    Ensure that file name with same name and in same path should not be open while saving the data.
    Award if it helps.
    Jogdand M B

Maybe you are looking for

  • What's wrong with my ipod touch 4g?

    Hello, I am a student who is using MacBook Pro and iPod Touch 4G (32GB) To jump to the topic, my liquid crystal of my iPod is broken. No, it's better to say, CRASHED. I bought a new protecting film and case for my iPod, and i sticked and covered it.

  • How do I restore an old apple ID?

    I am trying to restore an old Apple ID that I had to stop using because the email address used to sign into it was hacked. I have lots of music that I purchased with that ID that I can no longer access. Any help out there?

  • Burning films to use in a DVD player

    Hi, I have bought several films & TV programes from iTunes for my ATV. Thay also show up on iTunes. Can I burn the MP4 download to a DVD to watch a DVD player. Regards, Jeff

  • Customizing bookmarks?

    I've many bookmarks. And, it takes me a long time to scroll down the long list. How can I customize my bookmark list so I segregate them into categories? Sort of a personal bookmark's 1,2,3 etc. And, be able to view those bookmark categories in the m

  • How can i purchase mountaion lion from windows pc

    i have a macbook air that a friend gave it to me. I want to make it reinstall mountain lion with my apple id, but i dont have purchase mountain lion. So what can i do? I can't purchase from macbook, because i don't have access to app store. Please he