Activex Excel Automation: the Missing Handle

Once upon a time there was a piece of legacy code, working well.  It would open Excel workbooks, add data, and make it look nice.
Then one fateful day, the old code creaked and groaned, and it doesn't work the same way it used to when it was fresher and younger.
Now when the code runs, an excel 2007 reference is not closed somewhere, causing the excel.exe process to remain open after the code has finished execution.
With great care, I have extracted all the extraneous code from the process, so that only a few base functions remain; yet the problem persists!  For your convenience, I have flattened it all onto the same vi pane (the old code is rather modular)!  Apologies for any extraneous wire bends =)
My questions are threefold:
What changed that caused this code to stop working? 
Is there a better way to find and close activex references than staring intently at the wires?
Is there, dear reader, perhaps a blatent error in the old code?
Attachments:
Fun with references.png ‏59 KB

I"ve moved all the CR's to the end of the VI.  The problem persists.  Look at the examples? Are you toying with me?
Attachments:
test.vi ‏16 KB

Similar Messages

  • Excel automation

    Hello,
    I am trying to use the ActiveX Excel Automation server.  I have gotten TestStand to run the excel application, however, when I try to create a new workbook I get the following error:
    "Create New Object" in automation call failed.
    Class not registered
    One possible reason for this error is that the server might be an in-process 64-bit COM server. TestStand is a 32-bit process and Windows does not allow a mixture of 32-bit and 64-bit code within the same process. TestStand can create objects from an out-of-process 64-bit COM server directly, but for in-process 64-bit COM servers you must create the object in an external 64-bit process and pass it into TestStand using an out-of-process server or a DLLSurrogate.
    I have attached the sequence file I have been using.
    Solved!
    Go to Solution.
    Attachments:
    Excel Test.seq ‏6 KB

    Hello mcooblal,
    I took a look at your sequence file and you are not correctly accessing the workbook class. First you need to get a reference to the workbooks property which returns a reference to the workbooks property. Then using the workbooks reference you can then get the workbooks class which has a method for adding workbooks.
    Here is a good sequence example that references these steps:
    http://zone.ni.com/devzone/cda/epd/p/id/5318
    Ian M.
    National Instruments

  • Missing handles fluid grid layout dreamweaver cc

    I have seen the other postings to correct the problem with resolving the missing handles with a div in dreamweaver cc BUT it is not working when I try it.
    very frustrating... when you set up the initial design the boxes are there to resize, move up, hide divs BUT once you save the design and return to the page, they are missing.
    HOw are you to design a web site in one sitting.. bit ridiculous!
    Please help with this issue!
    Donna

    Did you manually edit any of the FluidGrid CSS code?  It's very temperamental and prone to failures if you  tamper with it.    I always advise people to use a separate external style sheet for content styles. 
    Nancy O.

  • Excel Automation Closing

    Hello,
    I have developed a VI (based on ActiveX) that writes to a spreadsheet with some formatting. Past posts on this forum were very helpful in getting me at this point and Kudos to members who have posted VIs, LLBs, and created a thread just for Excel automation.
    I've one question related to Excel application closing:
    Currently, I am doing a clean close of all references in my VI for report generation using ActiveX. If I am viewing any open workbooks in excel when my VI is running then it closes all open xls/xlsx files when the "Excel Automation Close" is executed.
    My question is: Is it possible to somehow not close instance of Excel application that was not created/opened through LabVIEW?
    Thanks.

    Hello,
    Using the System Exec VI, I am able to get the Process ID of Excel application instance. However, to use the workbook node, Application refnum is required.
    Is there a way to get to the Application refnum using the process ID?
    For now, I have figured out a way to avoid any Excel workbook closing with Automation close. Wiring True to Open New Instance in Open Automation seems to do the trick.
    Thanks.

  • Excel Automation in C# - Excel process won´t quit

    Hi there,
    I´m using Excel automation with C#. When closing Excel, the Excel.exe process still remains in the Task Manager. I´ve tried all the topics that can be found, but Excel won´t quit. When I make Excel visible and close it myself, then the process will stop.
    But when I call the Quit() method, it keeps running.
    Here is my code:
    Excel.Application oExcel = new Excel.Application();
    oExcel.Visible = true;
    Excel.Workbooks oWorkbooks = oExcel.Workbooks;
    string Pfad = "C:\test.xlsx";
    Excel.Workbook oWorkbook = oWorkbooks.Open(Pfad);
    Excel.Worksheet oSheet = oWorkbook.Sheets[1];
    oSheet.Cells[1, 1] = "Test";
    oSheet.SaveAs("C:\test.xlsx");
    GC.Collect();
    GC.WaitForPendingFinalizers();
    Marshal.FinalReleaseComObject(oSheet);
    oWorkbook.Close();
    Marshal.FinalReleaseComObject(oWorkbook);
    oExcel.Workbooks.Close();
    Marshal.FinalReleaseComObject(oWorkbooks);
    oExcel.Application.Quit();
    Marshal.FinalReleaseComObject(oExcel);
    oExcel = null;
    Thanks for any help!

    Sorry I didn't catch the problem sooner.  No need to do any of the marshal stuff or the releases.  they are not necessary.  when you modify the workbook excel won't normally close without the user being prompted if they want to save changes. 
    So simply end you code like this
    If you don't want to save changes
    boolean savechanges = false;
    oWorkbook.Close(savechanges, Type.Missing, Type.Missing);
                    oWorkbook = null;
                    oExcel.Quit();                
                    oExcel
    = null;
    Or this if yo do want to save changes
    boolean savechanges = true;
    oWorkbook.Close(savechanges, Type.Missing, Type.Missing);
                    oWorkbook = null;
                    oExcel.Quit();                
                    oExcel
    = null;
    jdweng

  • Problem with Excel automation refnum

    While presenting ActiveX functions to students, I ran into an unexpected problem : only half of the PCs were able to work with Excel after the initial basic steps :
    place an automation refnum on the front panel
    right-click the automation refnum, then select ActiveX class, then select browse
    find Microsoft Excel objects library and select application
    connect an Automation open function
    etc...
    What happened is that an error 3005 (Automation Open: Object specified is not creatable in ... ) was generated on half the machines, while everything was running smoothly on the others.
    A workaround was to grab a working automation refnum control from the examples shipped with LabVIEW. The icon appears different and has a black arrow instead of the purple one got from the refnums palette. But even with this refnum, the problem could be reproduced when the activeX class was changed forth and back !
    All the systems (Windows XP- LV 8.2) and machines were identical, configured initially from the same disk image.
    Do you an idea of what's going on there ? Do you know where I  can get the black-arrowed automation refnum ?
    Message Edité par chilly charly le 12-08-2006 05:32 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏3 KB

    Bump...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • ActiveX Excel Prevent Open File While Writting

    I'm having some of the same problems with Excel and ActiveX found here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=254019&view=by_date_ascending&page=1
    The last post from the above link gives an acceptable workaround (not ideal, but hey, what can you do?) to preventing the user from closing Excel when files are being written to with ActiveX through LabVIEW (since a user can open an Excel file while LV is writting to Excel files with ActiveX and all the files will share the same Excel application, instead of Excel opening a seperate application like one would hope).
    My question for this post: In the previous post Ben had a problem with the user opening a different Excel file than those being written to. My VI opens an exisiting Excel file (test.xls) and writes to it. If the user opens test.xls while LV is still writting test.xls, it will throw an error. Note that the error is not thrown if test.xls is open before the VI starts writting to it, only if the user opens it while its being written to by LV.
    Any ideas on how to lock the file so the user can't open it while it is being used by LV?
    Michael

    Thanks thols. Thats a great solution, I actually had tried it but gave it up since the user could close out of "their" Excel (closing the reference), then open a new spreadsheet which would open in "my" Excel (if done while my subVI was still writing to Excel). At the time, this was a possible scenario for my program, and since I was writing so slowly had happened. I just sped up the writing of the Excel file (I had all the data to write, but was writing with "Set Cell Value.vi", which wrote one cell at a time; instead I wrote whole ranges of data). If Excel was already open, I would set interactive to false and have my spreadsheet minimized while writing to it. If Excel wasn't open, I would just make it invisible. Since I cut the time down to about a second, this worked for my application.
    Michael

  • Report and Alert don't executed in the error handler with a JMS proxy service

    Hi,
    I'm working with OSB 11.1.1.4.0 and I'm facing a problem with the error handler of my JMS proxy service.
    My error handler contains two main elements :
    - a Report action
    - an Alert with a JMS destination defined
    When the business service failed the message remain in the queue. It's the expected behavior.
    The problem is :
    - the report is missing
    - the alert is raised but missing in the JMS destination defined in the Alert setting.
    I've noticed if I add a Reply with Failure or Success, Report and Alert are successfully executed.
    Unfortunately the message don't remain in the JMS queue.
    What can I do in order to have my report/alert done and the JMS transaction rollback in order to keep the message in the queue ?
    I've already met this problem in the past with alsb v3 and my solution was to add Service Callout in the error handler in order to externalize these actions.
    This solution is not convenient and I hope another solution is possible.

    Inventorying workgroups can be difficult, especially when it comes to remote access and network security. Because workgroups are not centrally managed, some of the items discussed in this
    wiki article on preparing your workgroup environment may require you to visit each machine individually.
    For non-domain credentials, you do not use the <systemname>\<user> format, you simply enter the user name. Regarding how to enter the credentials, if you have an account that uses the same username and password on all machines and is an administrator
    on all of those machines, then you can enter that in the All computers credentials page of the wizard. You can also do this if they are different user names. However, if some machines have an account with the same user name, such as Administrator,
    but different passwords on each machine, you will need to use the Manually enter computer names discovery method, and then enter the information for each group or each machine.
    As you can tell, workgroup environments can quickly negate any benefit that the agentless inventory nature of MAP provides.
    Please remember to click "Mark as Answer" on the post that helps you, and to click
    "Unmark as Answer" if a marked post does not actually answer your question. Please
    VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread.

  • How to find out the missing records

    Dear all,
    I feel that there is some Inconsistent records between R/3 and the extracted records BI for the data source 2LIS_03_BF. some of the records may not be updated through delta.. Is this possible? as we have created  Zkey figures to capture the diffrent unit of measure's quantity from the table MSEGO2 and updated to IC_c03 cube.
    Can any one tell me how to go about the missed records..where to find them.. and how to extract them.
    Poits will be assigned
    Regards
    venu

    hi,
    inventory scenario is difficult to handle as this have non cumulative key figures which can be viewed at the repors.
    extreme care is required while compression and intila loads and their compression.
    run the report or ask the user to run the report and sort out the missing records.
    chk out the document and chk if the procedure done by you is correct.
    inventory management
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Ramesh

  • Win 7 "Default Programs" does not include MS Office 2007 Programs, the missing Programs are missing ICONs as well

    I installed Windows 7 in an upgrade from Windows XP.  As part of the process MS gave me a URL to download a Office 2007 Pro I could activate with the license key I owned.  I got similar URLs for Visio Professional and Project Professional. 
    Downloaded, installed, activated, started the programs.
    From the beginning some of the icons were missing.  Like the icons for Word, Excel, Access, Outlook, Power Point, Publisher, Visio, and of course Project.  I tried most of the answers in this forum, that didn't sound like guesswork, and none of
    them solved either problem.  There must be at least 65 guesses to fix the icon problem, but none with the missing Default Programs problem.
    The programs related to the missing "Default Programs" still work, they startup when you select the related document.  If I check "Associate a File Type or Protocol with a Specific Program" the missing Office 2007 programs are listed
    there, associated with the designated programs, but are missing icons.
    I make it a habit not to pay a vendor for a product so that I can have the privilege of fixing the vendor's problems.   Google tells me these are well known problems.  The only thing missing is the answer.  I won't ever use MS chat or telephone,
    because all they do is tell me why they can't help and transfer me elsewhere.
    Does anyone have a REAL answer please?

    To restore office icons you could try this method
    http://transitionmarketing.wordpress.com/2013/01/16/restoring-microsoft-office-icons/
    I had the same problem with Office 2010 programs not showing in "Set Your Default Programs". No other "fixes" (including repair) worked. Found this thread:
    http://www.sevenforums.com/microsoft-office/222503-office-2010-not-listed-default-programs.html
    and used it as a guide. When you look at this key
    HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications
    you will see a list of software pointing to another HKEY_LOCAL_MACHINE registry key. For example, my Word program was showing up as "Word.Application.14" and pointing to Software\Clients\Word Processing\Microsoft Word\Capabilities
    (In contrast, PastorMike's fix in the link above advocates making a new entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0\Word\Capabilities. However, OneNote did appear in my "Set Your Default Programs" and it - and the other Office programs
    - were listed under ..\Software\Clients\... and not ...\Software\Microsoft\...)
    So at this point I went my own way (although maybe PastorMike's fix would also work).
    The difference between OneNote and the other programs was the existence of values for "ApplicationName"  and "ApplicationDescription" in HKEY_LOCAL_MACHINE\Software\Clients\Word Processing\Microsoft Word\Capabilities. Also, for OneNote
    there was a "FileAssociations" sub-key that was missing from the other programs.
    It is setting the values for ApplicationName and ApplicationDescription which cause the program to show up in the list in the left pane of "Set Your Default Programs". And it is the file associations in the FileAssociations key that allows resetting
    associations en masse when they are snaffled by another program.
    Below is the reg file I added for Word 2010. (i used similar for the other programs) After doing this, Word appeared after reopening "Set Default Programs" - no reboot required
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Word Processing\Microsoft Word\Capabilities]
    "ApplicationDescription"="Create and edit professional-looking documents such as letters, papers, reports, and booklets by using Microsoft Word."
    "ApplicationName"="Microsoft Word 2010"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Word Processing\Microsoft Word\Capabilities\FileAssociations]
    ".doc"="Word.Document.8"
    ".dochtml"="wordhtmlfile"
    ".docm"="Word.DocumentMacroEnabled.12"
    ".docmhtml"="wordmhtmlfile"
    ".docx"="Word.Document.12"
    ".docxml"="wordxmlfile"
    ".dot"="Word.Template.8"
    ".dothtml"="wordhtmltemplate"
    ".dotm"="Word.TemplateMacroEnabled.12"
    ".dotx"="Word.Template.12"
    ".htm"="wordhtmlfile"
    ".html"="wordhtmlfile"
    ".odt"="Word.OpenDocumentText.12"
    ".rtf"="Word.RTF.8"
    ".wbk"="Word.Backup.8"
    ".wiz"="Word.Wizard.8"
    ".wll"="Word.Addin.8"
    By using my ramblings and the link provided above you may be able fix the problem you are having with Office 2007. However, I am unsure of how to find the necessary file associations for Office 2007 except by trawling through your registry for the filetypes
    listed in the link above and the values for them in HKEY_CLASSES_ROOT.

  • Using vlookup btwn worksheets when using ActiveX Excel

    I am having problems using the vlookup function in Excel.  It works fine if I have the lookup table on the same worksheet that's already open in LabVIEW.  I first open an excel file that I use as a template.  I copy the header and formula information from that file into an activeX container containing an Excel worksheet.  I then allow the analyst to enter data into the ActiveX Excel spreadsheet.  Meanwhile, I create a log template by creating a text file with headers.  When the analyst is done entering data on the front panel, they click on the Update/Print Label button.  This appends their data (a range of cells) to the text file (which is then formatted and saved using report generation tools) and it's printed to a label.  The problem is on the front panel ActiveX Excel sheet.  The original excel sheet used as a template has many formulas, all of which work well in Excel, as well as in the LabVIEW app, with one notable exception.  One of the cells contains a formula that uses a vlookup function.    The problem is when I place that lookup table on a different worksheet.  It works great if I place the lookup table on the same sheet as the template, but when I try to reference a different sheet, I get an error.  I'm assuming that I just need to add code to open the second Excel spreadsheet (or better yet - a separate workBOOK).  I was confused at first, because the vlookup function worked fine in Excel, but not in LabVIEW.  Then I realized that Excel already had all the worksheets in the workbook open, but LabVIEW does not.  Am I correct?  If I want to use a vlookup to look on another worksheet or another workbook, do I just have to open that second workbook/sheet in LabVIEW?

    Hi Dan,
    You are right.  LabVIEW does not have the other worksheets open.  I think that you are on the right track.  I recommend opening another worksheet and testing it out.  LabVIEW should stop giving you an error when you do.
    Nick Keel
    Applications Engineering
    National Instruments 
    Nick Keel
    Product Manager - NI VeriStand and Model Interface Toolkit
    National Instruments

  • Hyperion Workspace Financial Reporting Export to Excel Query-Ready Missing

    Hyperion Workspace Financial Reporting Export to Excel "Query-Ready" option is Missing in the dropdown when you go to File>Export>Excel
    Only the "Fully Formatted" option is available.
    From what I recall this option for a "query-ready" export should be available from the HTML preview?
    Is there something in configuration that needs to be enabled or something that needs to be checked on to get this option?
    We are running 11.1.1.3
    The Query-Ready option is available when exporting forms in Planning.
    When opening Financial Reports in Smartview the option for "Query-Ready" is available.
    For some reason this is not showing up in workspace, does it not exist in 11.1.1.3? Is this a bug?
    TIA

    Hi,
    The option to export the financial report output in "Query-Ready" format is actually at the bottom right hand corner of the report page (look at the report footer) instead of File>Export>Excel.
    Hope this helps
    Genti

  • Merging cells and using the fill handle to copy the merge in subsequent...

    My problem can be best illustrated by me by explaining how I could achieve it in Excel.
    In Excel, this is how it would be done for example:
    I select two horizontal cells and click on the merge button to merge them. They are now one cell, with the fill handle (small circle) on the bottom right corner. Clicking on that circle and dragging it down will merge both cells in each row into a single cell. i.e. each subsequent row will look like the row above until I stop dragging.
    How can I do this in Numbers. Obviously I don't want both columns to become one wider column, but just a certain selection of rows within the two columns.

    doktor_florian wrote:
    Either this answer does not have anything to do with the original question or I just don't get the link.
    If I select 20 rows with two columns and press "merge" I get one cell with the content of 20 rows. This is utterly useless.
    Hi,
    1.) I think you do not entirely understand my poing. Unfortunately, I cannot upload images of what I am trying to illustrate in words.
    I am not trying to merge 2 columns and their 20 rows into one cell. What I want to do is to merge two cells horizontally.
    Open Numbers and open a blank spread sheet. You have numerous columns and rows, but for simplicity, concentrate on columns A and B and rows 1-5.
    The illustrations below show what it is I want to achieve. You start of with (1), two columns with 5 rows making a total of 10 cells. For what ever reasons, I need to merge the 2nd row (A2+B2) into a single cell. I select them, click on merge and that's it. [Illustration (2)] However, I also need the 2nd and 3rd row merged. In Excel. I would click on the bottom-right corner of the 2nd row which was recently merged and drag down. This would copy the merged cell onto the rows below and the result is shown in illustration (3). Now, I could just repeat the procedure that I did the first time I merged the two cells in row 2, but imagine if you need to do this for 10 or 20 rows. That's extremely time consuming and certainly there must be an easier way.
    (1) (2) (3)
    A B A B A B
    1 l___l___l 1 l___l___l 1 l___l___l
    2 l___l___l 2 l_______l 2 l_______l
    3 l___l___l 3 l___l___l 3 l_______l
    4 l___l___l 4 l___l___l 4 l_______l
    5 l___l___l 5 l___l___l 5 l___l___l
    2.) +"If I select 20 rows with two columns and press "merge" I get one cell with the content of 20 rows. This is utterly useless."+
    I think this is a very patronizing comment. How can you know what needs I or other Numbers users have? Perhaps it is very useless to you, in which case you should have said so, but it is not objectively useless.
    P.S. I apology for the messiness of the illustrations. It's the best I can do.

  • The Strange Case of the Missing Network Icon

    Can anyone help my buddy Tom - who is running a G4 iBook with OS X Panther? He is unable to get onto his wireless network and here is the problem in his own words:
    "Had a moment to muck about in the iBook drive, following data crumbs from the all-pervasive Network software. Apparently, all that spinning of the drive over regions containing bits and bytes of the application managed to cobble together enough of Network to launch an e-mail, which I immediately determined had to go to you. This is strictly a spit-and-string enterprise, similar to a baling wire and soup can exhaust system fix, and likely the only e-mail I'll get off until I complete an entire system restore. Think of it as a faulty telephone connection - you can hear me, but I can't hear you. So, don't bother to respond, as your e-mail will probably languish in my Inbox for the time it takes me to resurrect OS X.
    What brought me to this point is my reasoning Network isn't a stand-alone application like a word processor, but rather a "network" (clever, eh?) piece of software with files strewn through other software so they can access various aspects of it. For example, World Book Encyclopedia accomplishes a software update without launching Safari; connecting to its mother ship via but another piece of Network that happens to reside within the program. I guess this approach is what put the "i" in iBook, and it seems to work pretty well...until moments like this. Perhaps Steve Jobs outsourced to Hansel and Gretel to create a new marketing twist.
    Anyway, I've talked this all up with a number of people, and the universal response seems to be; "Huh? I've never heard such a thing.". I even managed to mightily confuse Dave and he's got an awful lot of Mac expertise. But the real kicker, when explaining how I reasoned it all out, is when I mention the key to my understanding was when I noticed the missing Network icon. That's when their eyes glaze over and it's apparent they can't quite wrap their brain around the idea. I've deduced how to cajole the Finder to reveal this Archimedean moment, and included a pair of attachments so you, too, can share in my AHA!! revelation. Running this all past Dave had him agreeing I seem to have a handle on it, but the sheer complexity of all those .exec files squirreled here, there, and everywhere still had him scratching his head.
    Interestingly, I have to coerce the Finder to display the icon example; you can't simply click it into existence. I do it by plugging in a travel drive, opening same, then ejecting it. The Finder then defaults to what you see (the word Network with no icon).
    Speaking of attachments, I was so tempted to wade through all 70 (70!!) e-mails in my inbox, but was fearful my MacGyvered patch would fail before getting this off to you.
    Time to fade back into the black hole from whence I came. When I close Safari it'll relinquish its tenuous grasp on the Network .exec file it's hacked to."
    Any ideas on what's wrong and how it can be fixed? I'll see that they get passed on to Tom.
    G4 Powerbook   Mac OS X (10.4.10)   iMac

    Before the mid-1980s, networking might have been implemented with a lot of goofy little routines (.exec's if you must) calling one another. About that time the CCITT (an international telecommunications standards committee made up of Academic and Industrial representatives) did a lot of work abstracting and then standardizing the functions that various parts of a network perform.
    The CCITT refined the notion of a Layered Network Architecture and specified the types of activities performed in each layer. Shortly thereafter Apple implemented Open Transport and delivered it into the marketplace in System 7.5.3.
    Apple networking has been very well-behaved and under control since then. It does not tend to "get lost" or "lose track of things". It really is very good. With only a few limitations, you can connect Macs running 7.5.3 through 10.3.9 and have File Sharing work without regard to what versions are talking to each other.

  • How the SDK handles unicode

    I spent several painful hours learning the following about how the SDK handles unicode characters -- perhaps I've missed where this is documented?  Here's what I learned:
    - Lua strings are sequences of 8-bit characters (bytes).
    - A unicode ZString is represented as a Lua string containing the UTF-8 encoding of the unicode ZString.  For example, the trademark character (TM) is unicode codepoint 2122 (hex), and the ZString LOC "$$$/unicode/tm=^U+2122" is represented as a Lua string of length three, the UTF-8 encoding of that character (decimal bytes 226 132 162).
    - A posting from Adobe employee "escouten" last year said that all SDK APIs treat all Lua strings as UTF-8 encoding of unicode strings.  I've personally observed that with LrView, LrFileUtils, and LrTasks.execute, but haven't checked other APIs.  In particular, a Windows unicode filename will be returned by LrFilteUtils as a Lua string encoding the the filename in UTF-8.  Passing that filename in a command line to LrTasks.execute works correctly.  (But writing a Windows batch file with a UTF-8 filename won't in general work -- a topic for another day.)

    Hi John,
    I'm struggling a little with this UTF-8 topic currently. I can sympathize with your several painful hours now. :-)
    1) Can you (or somebody else) reproduce the following issue: (Win 8.1. LR 5.6)
    If your photos are stored in a UTF-8 encoded directory such as c:\users\username\Pictøäöüש (the last letter being the Hebrew letter shin). (This is kind of my test case after users from Norway and Israel reported problems.)
        local picName = selectedPhoto:getRawMetadata ("path")
        outputToLog (picName)
    I get the wrong result:
    C:\Users\username\Pictøäöüש\7L6B7931.CR2
    If I use, on the other hand, getFormattedMetadata:
    outputToLog (selectedPhoto:getFormattedMetadata ("folderName") .. " and " .. selectedPhoto:getFormattedMetadata ("fileName"))
    I get a correct result (but not the full pathname)
    Pictøäöüש and 7L6B7931.CR2
    Going from there, I could probably figure out the full path name (which does not seem to be offered in getFormattedMetadata), but I would like to figure out what's wrong with selectedPhoto:getRawMetadata ("path").
    2) The following is more for reference: I cannot seem to pass previews.db path name to sqlite if the path of the previews.db (LR catalog path) contains non-ASCII utf-8 characters.  (Other UTF8 commands on the command line work well.) chcp 65001 doesn't help. sqlite is supposed to accept UTF8 characters in the db name, but somehow doesn't (at least my version, which is somewhat older). I have worked around this issue by first cd-ing to the directory and then starting sqlite i.e. along the lines of "cd <previews-dir> && sqlite3 previews.db" This seems to work so far, even if some new issues have come up of which I don't know yet whether they are related to this or not.

Maybe you are looking for

  • How to Read a External File in a livecycle form (using javascript)

    Hi Everyone,    First of all, i would like to thank you in advanced for your help !!    I have a situation were i need to load some values into some fields inside a dinamic pdf that was created in livecycle, what can i do so far ?    I can load the f

  • "the document.....could not be saved"

    I just started receiving this error message on one song. "the document.....could not be saved" If I closed down everything and restarted i could then save the project. Now it won't even do that and it has spread to another song/project, with even mor

  • Screen page keeps moving or bouncing up and down slightly when I use my scroll wheel on my mouse, it only happened after updating to 6.0

    I just updated to Firefox 6.0 with my windows 7 64bit OS. As soon as it was installed, pages began making quick moves up and down just a half inch or so when I use the scroll wheel on my Logitech MX620 mouse. When I use the scroll wheel, it does scro

  • Error handling when loading flate files

    Hi We have a Process Chain loading flate files from a server into a ODS. We want to create a routine to avoid errors in the ODS when no files is found. The error we want to handle is Error 1 when loading external data Message no. RSAR234 We want to h

  • Accessing micrologix data queues

    Hi, Is there a quick and easy way to access the data queues of a micrologix1400 PLC using labview? I have my OPC server up and running and I have no issues to query some individual data from the PLCs, but I have no clue how to access the data queues