Instant Client with ADO on VBA -- Run-time error '-2147467259 (80004005)' -

VB 6.0 uses Instant Client and Win XP Pro sp2 operating system. The MDAC has been checked and it is 2.8 sp1.
The same project works on Win 2000 pro.
Installing the run-time, thick, client makes the application work.
We are getting the following error:
Run-time error '-2147467259 (80004005)';
Oracle error occurred, but error message could not be retrieved from Oracle.
Any ideas?
We have tried privleges, ORACLE_HOME variable, all kinds of things. Bring us your suggestions we are weary.....
Thanks,
Linda

It looks like some sort of overflow. Instant Client does not support ADO.NET yet, if that is what is causing the problem. I hope that helps.

Similar Messages

  • Run-time Error '-2147467259 (80004005)':

    Hi,
    We have Business Explorer (SAP BW 3.x), and Microsft Office 2007 with Web Component for 2007 installed on User Machines.
    When user login through SAP Enterprise Portals 7.0, and try to run a BW Layout which open Microsoft Excel and asks to enable Macros, once we click "Enable Macros" button, we got the following Visual Basic Error: Run-time Error '-2147467259 (80004005)':
    Please advice.
    Thanks
    Vijay

    Hi,
    seems so it is kind of permission related error.
    http://www.computerperformance.co.uk/Logon/code/code_80004005.htm
    Either your users do not have the right access to something local or if it tries to connect back to the server (or something like that) it does not have the right permissions.
    Hope this is at least a good start.
    Best,
    --epexpert

  • Excel not even open - "cannot complete this task with available resources" and then VBA run-time error randomly appear!

    Has anyone else seen the "Excel cannot complete this task with available resources" error message appear when Excel isn't even open? It keeps happening to me, and it's the strangest thing.
    It seems like interacting with Excel files sometimes prompts it - for example, I just turned on my computer this morning, checked my email, and then opened Google Chrome to upload some Excel files. Excel hasn't been opened at any point since the machine
    booted up, but this Excel error popped up while I was uploading the files.
    Checked the Task Manager because I was baffled (not that this is the first time it's happened), and there's no Excel application running, just that silly error message. Choose OK on that error and a VBA run-time error message appears (not even sure if it's
    Excel VBA or Word/Outlook but I assume it's Excel - it's the good old 1004, application-defined or object-defined error).
    Debug is greyed out, so it won't let me debug to see what the problem is. Choosing End brings the "Excel cannot complete this task with available resources" message back for one final performance.
    This happens on a not-infrequent basis: Excel isn't open, and I randomly get this set of Excel errors: 1) "cannot complete task", 2) VBA run-time, 3) "cannot complete task" again. Then it's done, until the next time it happens. Weird.
    I have 32-bit Windows 7 and Excel 2013/2010/2007/2003/2002 (I know!) but the issue only started after installing 2013. I also get the "cannot complete this task" message regularly when working in Excel (generally with Power Pivot or something legitimately
    memory-hungry though), and restarting the application does the trick. I don't mind a heads-up when I'm gobbling up too many resources, but when Excel's not even open, it's a bit ridiculous. It's like I have a zombie Excel! Does interacting with Excel files
    via upload/moving around Windows Explorer actually trigger some sort of Excel action in the background?
    Any ideas would be most appreciated!! Thank you :)

    Hi,
    As the memory error messages , it can be very generic and don't always identify the real cause of the issue. We may try to use the KB that Mr. KR mentioned above to troubleshoot it.
    On the other hand, if the file is xls format, we may convert to the new file format .XLSM and test.
    http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28339883.html
    Next, try to disable hardware graphics acceleration from File > Options > Advanced > Display section and disable Aero Themes (if you enabled) to check the results.
    For the hangs and crashes issues, we may use ADPlus.vbs to troubleshoot:
    http://support.microsoft.com/kb/286350/en-us
    http://www.networksteve.com/exchange/topic.php/Excel_cannot_complete_this_task_with_available_resources_error,/?TopicId=39411&Posts=1
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope it's helpful.
    George Zhao
    TechNet Community Support

  • Run time error 2147467259

    Hello,
    while opening a query/ a workbook in the bex I get an error message "Run time error 2147467259 - The method 'position' for the object 'commandbar' was aborted."
    Somebody has an clue what this is about? I know this error from VBA but I don't know how to solve it in relation to BEX...
    Thanks in advance.
    hansi

    Hi ,
    Pls check below threads , may be it will helpful.
    https://forums.sdn.sap.com/click.jspa?searchID=20998303&messageID=6674385
    https://forums.sdn.sap.com/click.jspa?searchID=20998303&messageID=6862348
    Thanks & Regards,
    Ramnaresh.P.

  • EVDRE VBA run-time error 1004

    Hi experts!
    I try use a very simple code:
    Dim aaa As String
    aaa = "=EVGTS($B$2;$B$45;""CATEGORY:""&$D$2;""CHARGE_TY:""&$B$5;""CLNT_BRND:""&$B$6;""P_ACCT:""&""I"";""P_CC:""&$B$8;""P_ENTITY:""&$B$9;""P_SM:""&$B$10;""TRAF_KIND:""&$B$11;""QUAN_TY:""&$B$12;""MEASURES:""&$B$13;""TIME:""&""2012.TOTAL"")"
    ActiveSheet.Range("a1").Value = aaa
    It doesn't work. I get "Run-time error '1004': Application-defined or object-defined error". Without "=", VBA writes this text to cell
    Dim aaa As String
    aaa = "EVGTS($B$2;$B$45;""CATEGORY:""&$D$2;""CHARGE_TY:""&$B$5;""CLNT_BRND:""&$B$6;""P_ACCT:""&""I"";""P_CC:""&$B$8;""P_ENTITY:""&$B$9;""P_SM:""&$B$10;""TRAF_KIND:""&$B$11;""QUAN_TY:""&$B$12;""MEASURES:""&$B$13;""TIME:""&""2012.TOTAL"")"
    ActiveSheet.Range("a1").Value = aaa
    And if I add "=" manually to cell it works. What's wrong? How can I fix it? Please advice.
    ActiveSheet.Range("a1").Formula = aaa
    instead of
    ActiveSheet.Range("a1").Value = aaa
    also doesn't work
    Regards,
    Maxim

    It's funny but it's works System replaces "," with ";" in cell and this code works:
    Range("A1").Select
    ActiveCell.Formula = _
    "=EVGTS($B$2,$B$45,""CATEGORY:""&$D$2,""CHARGE_TY:""&$B$5,""CLNT_BRND:""&$B$6,""P_ACCT:""&""I"",""P_CC:""&$B$8,""P_ENTITY:""&$B$9,""P_SM:""&$B$10,""TRAF_KIND:""&$B$11,""QUAN_TY:""&$B$12,""MEASURES:""&$B$13,""TIME:""&""2012.TOTAL"")"

  • VBA - Run-time error '32809'

    I got an xlsm excel file. when open I got the following error window. Defug button greyed out. When clicking on End button, then error window is not closed. I have to use End Task to close it. It is the same error on different machines running on Windows
    7 64bit with MS Office 2010. any suggestion?
    Run-time error '32809'
    Application-defined or object-defined error

    I'm not sure what you mean by "the same condition" but obviously there is something different about all the setups that fail and the one that works. Is the Office version in all the setups that fail also Office-32 2010?  However without knowing
    what the error is in what I assume is a locked project it is impossible to tell you what the problem is.
    Did you contact the author as I suggested before?

  • Package failed with run time error: " GETWA_NOT_ASSIGNED".

    Hi,
    One of our custom package is failing with run time error " GETWA_NOT_ASSIGNED". We are getting this error after refresh. Infact this package is working fine both in production and Dev, but in QA system it giving runtime error.
    Here with I am pasting run time error details. Please see...If any one have any idea or clue or if you have faced this kind of error.
    Thanks is advance.
    Error Details.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_UJK_CUSTOM_LOGIC===========CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32774).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    Regards, Trine

    Hi Trine,
    the error is about some field you are trying to map using field-simbols, that is diferent in the other system.
    Go to the code program in the st22, there you will see when the erros occurs e what field gives the error.
    Best Regards,
    António

  • Run-time error '429': ActiveX component can't create object

    HI,
    I am having the following error in my Excel VBA Run-time error '429': ActiveX component can't create object  when running the following code:
    Dim objDistiller As New ACRODISTXLib.PdfDistiller6
    objDistiller.FileToPDF2 filePath & ".PS", filePath & ".PDF", "T:\Templates\PDFSettings\Standard.joboptions", 1
    This code has been working for years on all our systems, but due to recent security issues our administrator changed all user accounts to not have local administrator rights and now when we run this code we get the above error message.
    I have had a look at DComcnfg.exe to try and get it to work by setting the default property permissions to allow access by Everyone but I am still getting the error.
    Any help would be greatly appreciated.
    Regards.
    Shane Chapman.

    Hi Shane,
    Here is another way to create PDF with Macro using another API than Distiller. This API is faster too.
    Probably this post is not of interest anymore but here is how I have done it:
    1. Download PDFCreator: http://sourceforge.net/projects/pdfcreator/
    2. Use the following Macro:
    Option Explicit
    Sub printPDFmacro()
    'Author : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Print to PDF file using PDFCreator
    ' (Download from http://sourceforge.net/projects/pdfcreator/)
    ' Designed for early bind, set reference to PDFCreator
    Dim pdfjob As PDFCreator.clsPDFCreator
    Dim sPDFName As String
    Dim sPDFPath As String
    '/// Change the output file name here! ///
    sPDFName = "Facture-" & nclient2 & " le " & Format(Date, "yyyy-mm-dd") & ".pdf"
    sPDFPath = "E:\Partenaire Scolaire\Comptabilite\Factures"
    PDFFileName2 = sPDFPath & "\" & sPDFName
    Set pdfjob = New PDFCreator.clsPDFCreator
    With pdfjob
    If .cStart("/NoProcessingAtStartup") = False Then
    MsgBox "Can't initialize PDFCreator.", vbCritical + _
    vbOKOnly, "PrtPDFCreator"
    Exit Sub
    End If
    .cOption("UseAutosave") = 1
    .cOption("UseAutosaveDirectory") = 1
    .cOption("AutosaveDirectory") = sPDFPath
    .cOption("AutosaveFilename") = sPDFName
    .cOption("AutosaveFormat") = 0 ' 0 = PDF
    .cClearCache
    End With
    'Print the document to PDF
    ActiveSheet.PrintOut copies:=1, ActivePrinter:="PDFCreator"
    'Wait until the print job has entered the print queue
    Do Until pdfjob.cCountOfPrintjobs = 1
    DoEvents
    Loop
    pdfjob.cPrinterStop = False
    'Wait until PDF creator is finished then release the objects
    Do Until pdfjob.cCountOfPrintjobs = 0
    DoEvents
    Loop
    pdfjob.cClose
    Set pdfjob = Nothing
    end sub
    Have any questions, just have to poke me.
    Michael

  • Standard Run Time Errors

    Hello All,
    With regard to Standard Run Time errors, say SUM_OVERFLOW, where do we get the documentation about this error(as well as erors of this type)
    1. Dump analysis ST21 and the other that strikes me is the 2. OSS
    Do correct me if i am wrong and please provide me further information.
    TQ
    - Sravan

    Hi,
    the ABAP keyword documentation offers a full text search.
    If you enter SUM_OVERFLOW, you learn that this exception is raised from the SUM statement in a loop over an internal table.
    Regards,
    Horst

  • Run time error while logging from a client

    hi all,
    My server is connected to 10 clients. out of that 2 clients are suddenly showing error while logging.
    Microsoft visual studio C++(error window)
    run tme error
    debug
    error c:/program files/sap/sap business one/sapbusiness one.exe
    This is the error window showing. I have uninstalled the client and again installed it but with no results. I found in the path mentioned above there should be the client run file "sap business one.exe", which is not present. I mean the .exe is missing. the file shows "sap business one" only.
    whenever we install the client then i the folder
    c:/program files/sap/sap business one
    there is a .exe file. which is not being installed in this client machine. what is being installed is a
    sap business one (not a .exe)
    when the client icon in the desktop is made to run, the log in screen appears, the list of company and db appears. I have recently upgraded the server to PL 42. so when a company is selected for log in then the client upgrade message also appears. when "ok" is clickd the run time error appears.
    where as all other clients are running well after the upgrade.
    please help with a solution.
    regards,
    Raj
    Edited by: debraj bhattacharyya on Dec 5, 2008 5:37 PM

    I have explored all the areas and I hope the problem is with the exe file only. Because I have tried an option. I copied the entire file SAP Business One (in the C:
    Program Files\sap) from one client which is working to the client where the error was showing. Then the it started working properly.
    But I donot think this will be a permanent solution. Because on reinstaling the client the SAPBusiness One.exe does not appear and to the best of my research i am quite sure that may be the problem.
    Any idea from any one for a perfect reason.
    Regards,
    Raj

  • ABAP/4 run time error with error code  SNAP_NO_NEW_ENTRY

    Dear All,
               I've installed SAP R/3 IDES on Oracle on Windows 2003 server.After clicking Log on button , I should be asked to enter client,user and password.But, my system does not display such details.Instead I get ABAP/4 run time error with error code  SNAP_NO_NEW_ENTRY that too after a long time.
                Can you please address what is the reason for this problem and how to over ride it?
    Regards,
    S.Suresh

    Hi,
    the most probable reason is an archiver stuck. Backup the archived redo log files and delete them afterwards.
    The database will archive some more logs after this. Handle them in the same manor. For complete explanation search for brtools.
    Regards
    Ralph Ganszky

  • Instant Client With MS VS-2005

    Hi all,
    does anyone have an idea how to install Oracle Instant client to work with MS Visual Studio 2005 on client machines.
    I am working on a VB application using Oracle 10gR2 database. Should I install Full Oracle Client on each Client PC , or can I install Instant Client ?
    Thanks

    I tested the Oracle Instant Client with a Oracle 9i release 2 server running on Windows with Visual Studio.net 2005 enterprise.
    Here are my tips concerning environment variables:
    1. make sure no other oracle directory is in your PATH
    2. set your PATH to point to your instant client
    3. set your TNS_ADMIN to point to where you tnsnames.ora file is located
    4. set your NLS_LANG
    5. set your ORACLE_HOME to your instant client
    For me, I set NLS_LANG to
    http://download-east.oracle.com/docs/html/A95493_01/gblsupp.htm#634282
    I verified this was using the correct client software by using the sqlplus add-on to the instant client.
    For me, I set:
    SET NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    Note: before you make any changes, back up your Oracle registry key (if exist) and backup the string for any environment variables.
    Read the Oracle Instant Client FAQ here:
    http://www.oracle.com/technology/tech/oci/instantclient/ic-faq.html

  • Client Upgrade tool - run-time error on client?

    Hello,
    Iu2019m facing an issue sending out Client Upgrade Packages. The package arrives on the client, but it the install process gets stuck immediately with the Run-time error 35603.
    Have you got this error below u2013 or do you have any idea what I should look for?
    BR MC

    Hi,
    in case you are running 5.0 SP9 the note 1106147 should help.
    Regards,
    Wolfhard

  • Raising Run Time Error '440' with  OO4O 2.2.1.0.0

    Hello everybody,
    I do not have much experience with ORACLE, but there is a problem I can not solve by myself:
    Asking my ORACLE DB (Oracle8i Enterprise Ed. Rel. 8.1.7.1.0 - Production with Partitioning option JServer Rel. 8.1.7.1.0) by SQL*Plus Rel. 3.3.4.0.0 with the following SQL-string everything works fine:
    SELECT E.APPROVED_VALUE, A.CI, E.END_DATE, Max(E.START_DATE)
    FROM CPC_FLAT_ANAG A, CPC_PRICES_COSTS_BD E
    WHERE A.CI = E.CI
    GROUP BY E.END_DATE, E.APPROVED_VALUE, A.CI
    HAVING ((E.END_DATE IS NULL) AND ((A.CI Like '3AL78815AB**')))
    ORDER BY Max(E.START_DATE) DESC;
    But when connecting ORACLE with VBA and OO4O, there raises the following error:
    Run Time Error 440: Error in SQL statement, ORA-0911: invalid character
    VBA-Code: (processed within an Excel97-Macro, Windows NT 4.00.1381)
    Option Explicit
    Sub Ask_DB
    Dim objDataBase As Object
    Dim objsession As Object, OraDynaSet As Object
    Dim strSQLAbfrage as String, strZeichen As String
    ' 1. Step: Create a reference to the OO4O dll
    Set objsession = CreateObject("OracleInProcServer.XOraSession")
    ' 2. Step: Create a reference to my database
    Set objDataBase = objsession.OpenDatabase("Oracle-DB", "user/passw", 0&)
    ' 3. Step: create SQL string
    strZeichen = vbCrLf 'vbNewLine <-- maybe I have to use another Char for CrLf?
    strSQLAbfrage = "SELECT E.APPROVED_VALUE, A.CI, E.END_DATE, Max(E.START_DATE)" strSQLAbfrage = strSQLAbfrage & strZeichen & "FROM CPC_FLAT_ANAG A, CPC_PRICES_COSTS_BD E"
    strSQLAbfrage = strSQLAbfrage & strZeichen & "WHERE A.CI = E.CI"
    strSQLAbfrage = strSQLAbfrage & strZeichen & "GROUP BY E.END_DATE, E.APPROVED_VALUE, A.CI"
    strSQLAbfrage = strSQLAbfrage & strZeichen & "HAVING ((E.END_DATE IS NULL) AND "
    strSQLAbfrage = strSQLAbfrage & "((A.CI Like '3AL78815AB**')))"
    ' lateron there might be additional part numbers
    strSQLAbfrage = strSQLAbfrage & strZeichen & "ORDER BY Max(E.START_DATE) DESC;" & strZeichen
    Debug.Print strSQLAbfrage
    Debug.Print Len(strSQLAbfrage)     ' <-- what about max. length of SQL-query?
    ' 4. Step: Retrieve the results from Oracle
    Set OraDynaSet = objDataBase.DBCreateDynaset(strSQLAbfrage, 0&)     ' <-- Error occurs!!!
    ' 5. Step
    ' ............ process results is not possible .....
    Fehler:
    Set OraDynaSet = Nothing
    Set objsession = Nothing
    Set objDataBase = Nothing
    End Sub
    Can anybody help me?
    Thank you
    Rudi

    Try getting rid of the semicolon at the end.

  • [ADI]Budget upload fails with "A run-time error has occured:...

    제품 : FIN_GL
    작성날짜 : 2003-11-20
    [ADI]Budget upload fails with "A run-time error has occured:...
    ===========================
    PURPOSE
    아래의 오류사항에 대한 해결
    Budget upload fails with "A run-time error has occured:current task will terminate".
    Problem Description
    ADI를 이용하여 GL의 Budget자료를 upload시 오류
    Workaround
    Solution Description
    Client PC에서 regedit를 이용하여 NLS_LANG값들을 applications의 NLS_LANG과 같은 값으로 바꿔주세요
    Reference Documents
    -------------------

    Hi Krishna
    Thanks for your reply, it was while trying to "edit" the page containing the shockwave file however it’s a bit of a strange one, as When I reposted this post , I had been experiencing the problem for about a week.  I then went on leave for a week and when I returned it started working again???.  I queried with my IT department if anything had changed or been updated but they could not think of anything.
    So for now it's working, but if you have any thoughts on what may of happened I would appreciate any suggestions?
    Thanks again
    Luke

Maybe you are looking for