IBM Support

LO68608: 'FILE "\AUTOMATION -EMBEDDING.NSF" DOES NOT EXIST' ERROR BEING GENERATED WHEN INTERACTING WITH NOTES VIA OLE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as duplicate of another APAR.

Error description

  • Create an executable that interacts with Notes via OLE.
    For example, the following C++ code could be used:
    
    #include <afxdisp.h>
    #import "C:\lotus\notes\notes32.tlb" rename("TEXT",
    "LOTUS_TEXT")
    void main()
    {
     CComDispatchDriver ptrSession;
     OleInitialize(NULL);
     HRESULT hr =
    ptrSession.CoCreateInstance(OLESTR("Notes.NotesSession"));
     OleRun(ptrSession);
     _variant_t serverName(OLESTR("")), fileName(OLESTR(""));
     _variant_t varMailDb;
     _variant_t varTitle;
     hr = ptrSession.Invoke2(OLESTR("GetDatabase"), &serverName,
    &fileName, &varMailDb);
     CComDispatchDriver ptrMailDb = (IUnknown*)varMailDb;
     ptrMailDb.Invoke0(OLESTR("OpenMail"));
     ptrMailDb.GetPropertyByName(OLESTR("Title"),&varTitle);
     _bstr_t bstrI(varTitle);
     CString strFinal;
     strFinal.Format(_T("%s"), (LPCTSTR) bstrI);
     AfxMessageBox(strFinal);
     return;
    }
    
    On Windows 7, create a standard (non-administrator) user.
    Add that user to the Administrators group.
    Log in as that user,
    Launch the Lotus Notes Client.
    
    Right-click on the executable created and chose "Run as
    Administrator".
    
    The error message:
    
    File "\Automation -Embedding.nsf" does not exist
    
    will be produced at the line:
    
    HRESULT hr =
    ptrSession.CoCreateInstance(OLESTR("Notes.NotesSession"));
    
    If the executable is run without "Run as Administrator" then no
    error is produced.
    

Local fix

  • Change the user account or executable launch configuration.
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • This APAR is associated with SPR# JSHN8T3T9C.
    The record was closed as a duplicate.
    This APAR is a duplicate of LO64607
    

APAR Information

  • APAR number

    LO68608

  • Reported component name

    NOTES CLIENT

  • Reported component ID

    5724E6255

  • Reported release

    852

  • Status

    CLOSED DUB

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-05

  • Closed date

    2012-04-26

  • Last modified date

    2012-08-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTWP","label":"Lotus Notes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.2","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
22 August 2012