"esbapin" function in Excel Macro stopped working in essbase 11 plugin

Hello All,
We have an excel file with essbase macros that has been working fine in office 2007/essbase 7 client environment. We recently upgraded to essbase 11 and the file started crashing.
Here is the line where it is crashing.
Function EssbaseConnectAPI(strUserName As String, strPassword As String, strServer As String, _
strApplication As String, strDatabase As String) As Boolean
'## Function to log into Essbase server using API. Part of port cueing routine. Pass in username, password, server, _
application and database. If first login, API function ESBInit is called to create a context handle. Using context _
handle EsbAutoLogin is called. Return value on 0 is successful, other values unsuccessful. Error codes 1051027 and 1051080 _
are trapped to allow port cueing until port frees up. Defined counter to prompt user if port congestion is extreme. Failure _
returns a long integer. ##
On Error GoTo errH
Dim Init As ESB_INIT_T
Dim intpAccess As Integer
Dim intCounter As Integer
Dim intResponse As Integer
Dim intMultiplier As Integer
Dim intRetryCounter As Integer
intRetryCounter = ListVars.Range("LoginRetryCounter").Value
If blnNew = True Then
lngSts = EsbInit(Init, lngHInst)
If lngSts = 1051027 Then lngSts = 0
If lngSts <> 0 Then GoTo errH
ListVars.Range("APIInst").Value = lngHInst
End If
lngHInst = ListVars.Range("APIInst").Value
RetryLogin:
lngSts = EsbAutoLogin(lngHInst, strServer, strUserName, strPassword, strApplication, strDatabase, ESBAUTO_NODIALOG, intpAccess, lnghCtx) _*
If lngSts = 1051080 Or lngSts = 1051027 Then
intCounter = intCounter + 1
If intCounter = intRetryCounter Then
application.ScreenUpdating = True
intResponse = MsgBox("System is temporarily busy, Retry?", vbYesNo)
If intResponse = vbYes Then
intMultiplier = intMultiplier + 1
intCounter = 1
GoTo RetryLogin
Else
GoTo errH
End If
End If
application.StatusBar = "Login Atttempted " & (intCounter + 1) + intRetryCounter * (intMultiplier) & " Times"
GoTo RetryLogin
ElseIf lngSts <> 0 Then GoTo errH
MsgBox "Connection Failed", vbOKOnly
GoTo errH
End If
application.StatusBar = ""
EssbaseConnectAPI = True
Exit Function
errH:
application.StatusBar = ""
frmLogin.tbPassword.Text = ""
frmLogin.tbPassword.SetFocus
End Function
The function "esbautologin" is delcared as:
Declare Function EsbAutoLogin Lib "esbapin" (ByVal hInst As Long, ByVal Server As String, ByVal User As String, ByVal Password As String, ByVal AppName As String, ByVal DbName As String, ByVal opt As Integer, pAccess As Integer, phCtx As Long) As Long
Edited by: user8762894 on Nov 16, 2009 1:39 PM
Edited by: user8762894 on Nov 16, 2009 5:04 PM

Just wondering if you have updated the Function definitions found in the esb32.bas file (found in Hyperion\products\essbase\essbaseclient\api\include)? if the definitions are wrong or you have the wrong version it is likely to crash

Similar Messages

  • Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Normally they don't. You might have some sort of problem on your system, possibly a conflict with other software, or corrupt ID prefs or application. Trashing the prefs is easy, and good place to start: Replace Your Preferences
    It will help if you tell us the OS version, whther you've installed the 8.0.1 patch, and how you are trying to access the commands, and what happens when you do. Is this isolated to one file, or does it happen with all files?

  • Links in PDF's and Excel have stopped working

    I'm using a fresh install of Firefox 14.0.1. Links in PDF's and Excel have stopped working (the reinstall was part of the problem solving). FF is my default browser.

    Starting in Firefox 14, Firefox no longer creates registry settings for launching links using "DDE". This has been reported to create two different problems:
    * "Firefox is already running" or "Firefox is not responding" error when following links in email messages in Thunderbird ([https://support.mozilla.org/en-US/questions/932461 Can't open links in Firefox by clicking URL in Thunderbird])
    * New instance of Firefox launches if the existing instance is running in Sandboxie ([https://support.mozilla.org/en-US/questions/933798 Firefox is running. I click on a link, say in an email, it tries to start another instance of the browswer instead of just opening a new tab as it did before.])
    Not sure whether your "silent fail" scenario is related.
    It is possible to configure Firefox 14 to use DDE by inserting some settings into the registry. I haven't researched this carefully myself, but there was some information about it on and external site linked in the Sandboxie thread.

  • The zooming function on the trackpad stopped working on my Mac Air OSX 10.9.3.  I've already checked the trackpad preferences to make sure I didn't inadvertently alter something.

    The zooming function on the trackpad stopped working on my Mac Air OSX 10.9.3.  I've already checked the trackpad preferences to make sure I didn't inadvertently alter something.  It worked fine in the morning then when I woke my computer in the afternoon the zoom no longer worked.  I use this function constantly so I hope something is not broken.

    Where is zooming not working?

  • Excel has stopped working when I try to launch Excel 2013 Powerpivot

    Redirected from the Win 7 forum: (http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/excel-has-stopped-working-when-i-try-to-launch/01460690-abab-495f-ab5f-904f72f88668)
    My system is a Windows 7 machine, 64 bit
    I previously had Excel 2010 32bit with 32 both Powerpivot installed.  However I am currently evaluating 64 bit Excel 2013 with Powerpivot for my company so I uninstalled Excel 2010 and installed an evaluation copy of Excel 2013 64 bit.
    However whenever I launch Excel, enable Powerpivot, then click any of the Powerpivot buttons it gives me an error saying "Excel has stopped working".
    I took a look in the Windows events logs and found:
    Faulting application name: EXCEL.EXE, version: 15.0.4420.1017, time stamp: 0x506741b5
    Faulting module name: mscorwks.dll, version: 2.0.50727.5477, time stamp: 0x5265c8ee
    Exception code: 0xc0000005
    Fault offset: 0x00000000002ba203
    Faulting process id: 0x3e8c
    Faulting application start time: 0x01cf52a7644eda9d
    Faulting application path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
    Faulting module path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
    Report Id: afa4f824-be9a-11e3-94ac-415645000030
    I have tried uninstalling and re-installing as well as doing a Repair on my .net framework, which is the latest version.

    You can go to check the dll file, what's size of this dll file?
    If the file size is 0 byte, you can check the link below:
    http://forums.steampowered.com/forums/showthread.php?t=2735528
    Also you can go to check the disabled items (File->Options->Add-ins->Disabled items->Go) to see if any dll file was disabled.
    In addition, Isn't the latest version of .NET Framework supposed to be 4.0?(Not quite familiar with this)
    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.
    Wind Zhang
    TechNet Community Support

  • Microsoft Excel Has Stopped Working at End of VBA Code

    I'm using Microsoft Excel Professional Plus 2010.  My code essentially looks up a date in a different sheet, copies it to another sheet in an organized location, and prints to PDF.  If I run the code for a period longer than a couple months ago,
    at the end of the VBA code, it states "Microsoft Excel Has Stopped Working", quits, and recovers.
    I added in a piece of code at the end to save the workbook, which it does, then it quits.  I can reopen the document and all my work is saved.  There is something going on I can't put my finger on but for some reason it only happens when I'm dealing
    with more information than usual (a couple months worth, possibly only 20-30 rows of info).
    Any suggestions?  Thank you in advance!
    Dan

    Hi,
    In regarding of the issue, we'd better do some tests to narrow down the issue and find the root cause.
    Please copy the file with code to another PC (We'd better use the similar environment) to test.
    First, if it works well, this issue might be caused by the Excel or other program in your PC. I recommend we follow this KB to troubleshoot:
    http://support.microsoft.com/kb/2758592/en-us
    Then, if the issue still exists, we could collect the Event log and App crash dump file to do deep troubleshoot.
    Second, if it still crashes Excel 2010 in other PC, it might be due to the VBA code. I suggest you upload the code and post the issue to MSND forum for Excel to get more help.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    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.
    Regards, 
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Microsoft Excel has stopped working

    We are on BW 7.0 and BEx7.0
    I have activated BI Content of InfoCube 0WBS_C11 and all it's SAP delivered Query elements. The InfoCube is loaded with data already.
    When I run the queries in BEx, I got message "Microsoft Excel has stopped working" on the queries which have only one parameter of  "My Controlling Area", If the queries have other parameters like BWS besides Controlling Area, I got"No Applicable Data Found" .
    Please help, thanks.

    We are on ERP Release 604 level 0004 SP SAPKH60404. 
    Office 2007 or lower is the standard for our users.  When Report Painter and Infoset query reports are displayed in Excel view using Office 2010 Excel and the file tab is selected (to save the file), a box with the message 'Microsoft Excel has stopped working' appears. 
    We just discovered this issue and are looking for an answer.  The work around for now is to export a spreadsheet file.

  • Microsoft excel has stopped working (on model update...).

    Hi eb
    I have chaneged the query of an excel 2013 power pivot model's data source.
    On save an update of the models data is launched.
    Every thing goes well until the very end of data retrieval (around 27 milion records).
    At that point excel crashes with the enoying massage 'Microsoft excel has stopped working'.
    I have looked in windows logs there is just one general massage with nothing in it...
    Where would you go looking?
    File size at 4.5 milion records is 111MB so at 27 milion should be around 666MB...
    TIA!
    Rea

    What version of Excel 2013 do you have installed? 32 bit or 64 bit? It sounds like 32 bit based on your above scenario. When you have excel open, open up task manager and watch your memory usage. 32 bit Excel is capped at 2 GB of RAM, but realistically it
    starts crashing right around the 650 MB to 1.2 GB range. (I've seen it crash anywhere in this range)
    I'd suggest either limiting your query down to pull much fewer rows or installing the 64 bit version of Office/Excel.
    In addition to what SQLBISchmidt has already mentioned, double check that you are only including columns that will actually be used within the Power Pivot model. Be especially careful with columns that have many distinct values (i.e. high cardinality) as
    these can be very costly in terms of memory consumption.
    Do you happen to have any complex calculated column calculations in the table or related tables? This can also cause these kind of issues if it is indeed memory-pressure related.
    You may find this official help article useful in finding a way to reduce the memory footprint of this table: http://office.microsoft.com/en-gb/excel-help/create-a-memory-efficient-data-model-using-excel-2013-and-the-power-pivot-add-in-HA103981538.aspx
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
    Website: nimblelearn.com, Blog:
    nimblelearn.com/blog, Twitter:
    @nimblelearn

  • Excel 2013 RTD links / macro stopped working

    I have a new laptop with Windows 8.1 and Office 2013 that was pulling in data via an RTD link into excel without problems until a couple of days ago.  The same system works perfectly with XP and Excel 2010.  I reinstalled the application (Prophet
    X) that is the source of the data and tried the online repair for Office 2013 with no success.  I have confirmed all of the Excel settings are the same on the XP and Windows 8.1 systems.  Can you help with ideas on what I should try next?
    Thanks

    That's not really a solution, is completely pointless.
    I have quite an amount of users that are reporting the same problem regardless of the OS installed but each one has upgraded to Office 2013 and our RTD server application stopped working. Ironically the old DDE is working correctly.
    We cannot expect to ask our user to re-install W8.x and all the programs to solve the RTD problem.
    Btw code signing had no effect, Uninstalling Office 2013 and installing Office 2010 seems to be the only solution.

  • I can't search a song or an artist.  i get an error R6025/pure virtual function call. then itunes stops working.  PLEASE HELP

    I can't search a song or an artist without getting an error R6025 - pure virtual function call. Then itunes stops working. How do I fix it?  PLEASE HELP

    I have had numerous issues with Itunes 64 bit 11.1.38 (and other previous versions) locking up and crashing upon start with "Itunes has stopped working" or "R6027 pure virtual function call".  I have researched the answers around the forums as well as having tried some extensive and repetitious troubleshooting myself and thought I'd list them here... in order of troubleshooting...
    1. Install all Windows updates and reboot.  This seems to clear issues from time-to-time... I suspect Itunes expects the latest-and-greatest as far as Windows is concerned.. see if this clears your issue.
    2. Uninstall all Itunes and Apple products & reboot, remove their directories, remove lingering Itunes registry entries, reboot again, reinstall using "RUN AS ADMINISTRATOR" to install the Itunes executable. See if this allows Itunes to stabilize.  Pelase be sure to use the following guide from Apple as far as removing the apps and directories are concerned...
    http://support.apple.com/kb/ht1923
    3. Remove the contents of the "iphone photo cache"  (or other related product photo cache)  directory.
    4. Try editing the shortcut properties and configure the shortcut (for all users) to run as Administrator.
    5. Try editing the shortcut and configure it to run in Compatibility Mode for Windows 7 (for all users).
    6. a.Try using MSCONFIG to locate a potential conflicting application or service using the following...
    http://support.apple.com/kb/ht2292
    or
    6. b. Remove the last recent software application(s) you may have installed... in my case removing GREENSHOT http://getgreenshot.org/  stopped my Itunes from crashing on startup and it stabilized after
    driving my nuts for weeks.
    Message was edited by: DaCheeze

  • The function to combine pdf files and the function to add bookmarks stopped working in 10.x

    We had VBA scripts in Access 2003 running with Acrobat 7.0 standard version to combine pdf files and to add bookmarks. The scripts worked fine. Now we installed 10.x and the functions stopped working. Does anyone share the same experience?
    In the scripts, we just call the OLE object with the code like:
        Set acroOrigPdfDoc = CreateObject("AcroExch.PDDoc")
        Set acroNewPdfDoc = CreateObject("AcroExch.PDDoc")
    Then we have the call "acroOrigPdfDoc.InsertPages" and "acroOrigPdfDoc.Save" to save the combined pdf files. All these functions work fine under 7.x. Under 10.x, they stopped working without any error messages.
    Can anyone help me?

    Post your problem in the forum for Acrobat SDK.

  • Copy function in ciscoworks secmon stopped working

    Is anyone on this forum aware of any problems with adobe flash player and JavaScript?
    The reason I am asking is that for some reason the actions/copy to clipboard function in our CiscoWorks SecMon console has stopped working. I did some searching and came across some article the say the flash player 10 interferes with the copy function in a lot of JavaScript and I was wondering if this could be the cause of the problem.
    Thanks in advance for any advice.

    Is anyone on this forum aware of any problems with adobe flash player and JavaScript?
    The reason I am asking is that for some reason the actions/copy to clipboard function in our CiscoWorks SecMon console has stopped working. I did some searching and came across some article the say the flash player 10 interferes with the copy function in a lot of JavaScript and I was wondering if this could be the cause of the problem.
    Thanks in advance for any advice.

  • Why did my Filmstrip function in CS6 Bridge stop working?

    I've been using Photoshop CS6  Bridge for about a year now.  Just recently the Filmstrip function stopped working.  I click on it and nothing happens.  Everything else works - Essentials, Metadata, and Output. It's been this way for a couple of weeks.  Rebooting doesn't fix it.  I've never had this happen with any of the versions of Bridge over the years.

    Thanks Curt.  I just figured it out.  I right clicked on Filmstrip which gave me an option of Reset in the drop down menu.  I clicked on Reset and got my Filmstrip view back.

  • Microsoft excel 2013 stops working and getting very slow when I work in one file

    I am using windows 8.1 pro in my office and I have excel 2013,
    When I'm working on excel generally there is no problem, but I have an excel file which I work on in it's too slow and stops working, I have also tried to open the same file in another computer which is having the same problem.
    while I was using Office 2010 it was working very fine, I can also share my file with you if you want in order to be checked and resolved.
    I appreciate if you help me,

    Hi,
    You can share the file with us by sending it to GBSD TN Office Information Collection [email protected] Be sure that you have the private information hidden.
    Meanwhile, since it works fine in Office 2010, we can try to open the file in Excel 2010, then go to File > Options > Formulas, check if you have enabled iterative calculation. If so, uncheck the check box and switch the workbook calculation to Manually.
    Then, save the changes and then open the modified excel using Excel 2013 to see the result.
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Excel colors stopped working after MS Office 2007 installed

    We use OLE services to create excel spreadsheets and color some of the data cells. For this we use class: I_OI_SPREADSHEET, method: SET_COLOR. The colors are set via an integer parameter but stopped working after we upgraded to MS Office 2007. Now all the cells are colorless. I've searched google, SDN and OSS Notes but can't find any explanation. Does anyone have any ideas on this?

    We use OLE services to create excel spreadsheets and color some of the data cells. For this we use class: I_OI_SPREADSHEET, method: SET_COLOR. The colors are set via an integer parameter but stopped working after we upgraded to MS Office 2007. Now all the cells are colorless. I've searched google, SDN and OSS Notes but can't find any explanation. Does anyone have any ideas on this?

Maybe you are looking for