Smartview Hypretreive VBA error
Hi All
I'm uisng 11.1.2 SmartView VBAs to retrieve values for 7 excel sheets in a work book
Sheet6.Activate
sts = HypSetActiveConnection(connectionname)
'Retrieve data for each sheet
X = ActiveSheet.Name
Application.DisplayStatusBar = True
sts4 = HypRetrieve(Sheet6)
sts = HypDisconnect(Sheet6, True)
Application.StatusBar = "Retrieving data for " & X & "...."
Application.Wait Now + TimeValue("00:00:02")
Below given is the piece of code (in macro, i'm replicating the same code for all the 7 sheets)
But everytime i run the macro....some of the sheets is not get refreshed correctly. (it is random.....sometimes first 3 gets refreshed.....sometimes 4,5,7th)....
The status return is always 4.
CAn someone throw some light on this......do i need to wait for more time before the next refresh.
I tried using HypMenuVRefresh and then it aborts with following error message.
“Cannot query members by specs. Essbase Error(1290002): Network Error [10061]: Unable To Connect To [server:32776]. The client timed out waiting to connect to the Essbase Server using TCP/IP. Make sure that the client machine has sufficient number of ports available.”
I tried adding MaxUserPort and TcpTimedWaitDelay and MaxFreeTcbs, but that didn't help.
Hi Celvin
I agree with Matt on the possibility of a timeout issue, esp considering the randomness in how the problem manifests. However, I would look more the server setting on this first.
Error code (positive) 4 usually seems to indicate a "Server Error" - the APS server threw the error, and not the SV Client.
I've also seen Error 4 when the dataset requested will exceed some limit such as number of possible rows or columns.
If I had to list the error codes in order of how much li like to debug them, not that I like to debug error codes, this one would be very near the bottom.
Can you help me understand why you have an Application.Wait at the end of your code snip?
Robb Salzmann
Similar Messages
-
Smartview: XML Load Error: An invalid character was found in text content.
Hi,
Im using hyperion 11.1.2.1 with SmartView installed with Office 2007. A lot of forms are working fine on it but we have entered data recently on a number of them and we are unable to open them in SmartView either through the icon and menu options in workspace or through the smartview panel in excel 2007. The error we are getting is "XML Load Error: An invalid character was found in text content."
Cheers,
ImranHave a look on Oracle Support - "SmartView XML Load Error: "An Invalid Character was Found in Text Content" [ID 968808.1]"
It may be the same issue as you are experiencing.
Cheers
John
http://john-goodwin.blogspot.com/ -
Smartview HypConnect VBA issue
Hi Forum,
I am have created a Smartview based Excel spreadsheet that I would like to connect and retrieve data using a macro enabled button. I am able to successfully create a connection to the database using HypCreateConnection, but I am unable to get HypConnect to associate the sheet and connect to the database without hardcoding the username and password in quotation marks within the code as below;
X = HypConnect(Empty, "Admin", "Password", "EssConnect")
If I just use quotation marks, as below (which I believe should open the connection manager and prompt the user to sign in to the application), I get the return message that there is no connection (Error -4) and no connection manager opens up. This would be the prefered method to utilise security.
X = HypConnect(Empty, "", "", "EssConnect")
If I use a variable, or leave the login credentials without the quotation marks, as below, I get the same return message (Error -4). Incidently, the documentation is in the format of without the quotation marks.
X = HypConnect(Empty, vtUserName, vtPassword, "EssConnect")
I am using 11.1.2 with Excel 2003. Is this a bug or have I missed something fundamental? I have attached my full code below for scrutiny;
Sub Test()
Dim vtUserName As String
Dim vtPassWord As String
Dim X As Long
vtUserName = Sheet1.Range("B1").Text
vtUserName = Sheet1.Range("B2").Text
X = HypCreateConnection(Empty, vtUserName, vtPassword, HYP_ESSBASE, "[URL as provided]", "[Server as provided]", "Applicaton", "Database", "EssConnect", "EssConnect")
X = HypConnect(Empty, vtUserName, vtPassword, "EssConnect")
X = HypRetrieve(Empty)
End Sub
Please note that I used Sheet1("B2") to type the username and Sheet1("B3") to type the password.
I would appreciate any help you may provide.HypConnect will never show UI. It is up to you to build a UI if you want that kind of interactivity with the user. With that said here is what options I think you have.
1 - Build a UI and pass the user name and password properly to the HypConnect call. If you get an error then you need to tell the user to try again.
2 - Use the HypMenuVConnect() VBA this will show the Smart View panel where the user can proceed to connect. Once connected you can run the rest of your code. You can use HypConnected() to determine if they are connected.
3 - Ask the user to make the connection using the SV UI and then run you code.
Hope that helps. -
HFM Smartview connection issue. error 404
Hi,
I am getting error while connecting to the smartview to my HFM Applications
error" Can not connect to the provider.Make sure it is running in the specified host/port.Error: 404
Can anybody suggest to sortout this issue. Thanks in Advance.NaveenThis is a BUG as per Oracle
Bug 16492280 : EXPORT TO SMART VIEW QUERY READY DOESN'T WORK: XML LOAD ERROR -
Essbase Studio - SmartView - Drill Through Error
Hello!
I'm creating a drill through report using Essbase Studio 11.1.1.2. Built the Context, the Report Content and Associations. Perform an ad-hoc analysis via SmartView. Perform a Hyperion | Drill Through Reports and the follow error occurs:
Unable to list Essbase Studio Drill Through Reports : Error in the statement interpret. Line = 1109
Anyone know what causes this and how to resolve it?
Thanks,
BobThe issue was due to using transformations to prefix characters to ids. The drill through couldn't resolve the cube member name to the data in the tables.
For example, if your source data for your accounts table has an member id of 1, 2, 3 etc. But you use a prefix of A in transformation to build the member in Essbase (A1, A2, A3, etc.), drill through can't resolve it. Drill through is going back to the table and searching for A1, A2 or A3. The table has 1, 2, or 3. A string is not a number, that's the error that basically occurs.
Solution - I updated my tables to have the prefixes (and data types) and removed the transformations. That way when drilling, the Essbase member matches up with the table id.
Thanks,
Bob -
VBA "error" in EPM for BPC 10.1 - "Cannot exit design mode" - any ideas?
Hi all,
Upon opening specific BPC reports in EPM, I am presented with the following error message:
I have tried the following:
Debugging the code using the following stop:
Function
AFTER_WORKBOOK_OPEN() stop
doRefreshFormula End Function
FPMXL API's turned ON:
Removing the code, pasting it in bit by bit ( the error still appears)
Unfortunately none of the above worked. HOwever, repasting the reports into a new workbook - they worked - however, now they are starting to show the error again!
---> Does anyone have any other ideas/if you have seen it before - please help!
Cheers!Hi,
Can explain the structure of report which functions are used to build report? which API's are used?
VBA code.
This issue might due any corrupted function or VBA code responsible for corruption.
Please share VBA code. and other details. -
Recently when connecting to SmartView, some users are receiving the following error:
XML Load Error: Invalid XML Declaration
Do you want to connect with Username/Password
Yes No
If you hit yes, sometimes it lets you log in after 2 or 3 tries, other times you need to completely shut down out of Excel and try again.
It does not happen all the time or to all users.
Smartview version 9.3.1.5.0.025
Any else get this error or know what to do to correct it.
ThanksAre you using more than one server for load balancing? If yes try checking the following:
I've seen where one server is working and one is not.
To check which one is working go to the connection manager and add a new connection manager that points directly to the one server:
Somthing like this (hscuschlws00099 is the name of the server in this example)
http://hscuschlws00099/hfmofficeprovider/hfmofficeprovider.aspx
Then try using Smartview on each connection to each server. If one works and the other doesn't you can narrow it down to the one server. -
Hi all,
One of our end users is getting the following error when he is doing a "refresh all" on one of his spread sheets:
A dialog box comes up as :
Problems during load
Problems came up in the following areas during load:
Cell value.
The log file with this data load errors shows th efollowing msg:
HTML ERROR in Cell Value : Infinity
This is the only msg in the log file and it is written mutiple times.
We are using smartview version 11.1.3.
Can anybody suggest what went wrong? No one faced this problem earlier.
Your response is appreciated.
Thanks,
Sirisha.I assume you mean 11.1.1.3. Also can you try to do a normal refresh on each sheet and see if it is an issue with one specific sheet. With refresh all it is best to narrow down the problem first...
-
Get a VBA error when I run queries
I am running into an error when I try to run any queries. the error says Object Library feature not supported and goes into the VBA code. any ideas how to fix this error?
Seems to be an installation error
-
Microsoft Office Professional Plus 2010 VBA error
This question has been asked many times and I have yet to find an answer that actually works. I am running Windows 7 Professional with Microsoft Office Professional Plus 2010. It has been working perfectly until now. When I start Word I
get the error "Microsoft Access 2010 requires Visual Basic for Applications. If you continue, Visual Basic will be installed." This then starts a series of uneventful installations one after the other until finally stopped and then an
error report with instructions opens and talks about macro security settings. This only happens when opening Word - not any other Microsoft Office programs. By the way, changing those security settings did not work.
I have tried all "fixes" offered and nothing has worked including registry changes and even Microsoft's Fixit. What am I missing?Hi,
I'm not quite sure what you have already tried. I would suggest you try to launch Word 2010 in
safe mode and see if issue persists:
Press Win + R and type "winword.exe /safe" in the blank box, then press
Enter.
Some have reported that it was caused by some third party add-ins and disabling all the add-ins fixed the issue. Please have a try and feel free to post back with any findings.
Regards,
Ethan Hua
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. -
Hi Gurus,
When i am working with Offline Dataform at the time of launching a business rule it gives an error .
Error is Like:
Can not launch rule: AddExistAsset - Can not launch business rule: AddExistAsset
Please suggest me what can i do to resolve this.Go through the below link as well
batch process for automating Business Rule 11.1.2.1
let us know if that helps....
Thanks,
KKT -
Logging into Smartview via VBA
Hi there,
Appreciate any help you can provide. I have written/copied code to create a connection and then connect to one of our servers. What I am trying to do is to get the code to log me into the server automatically with the username and password that I have embedded in the code. I cannot get it to log me in, the login dialog for the server connection always pops up. Below is the code I am using hope that someone can point out what I am doing wrong. Thanks for the help!
Private Declare Function HypConnect Lib "HsAddin.dll" (ByVal vtSheetName As Variant, ByVal vtusername As Variant, ByVal vtpassword As Variant, ByVal vtFriendlyName As Variant) As Long
Private Declare Function HypCreateConnection Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtusername As Variant, ByVal vtpassword As Variant, ByVal vtProvider As Variant, ByVal vtProviderURL As Variant, ByVal vtServerName As Variant, ByVal vtApplicationName As Variant, ByVal vtDatabase As Variant, ByVal vtFriendlyName As Variant, ByVal vtDescription As Variant) As Long
Sub Conn()
Dim vtusername As Variant
Dim vtpassword As Variant
Dim x As Variant
Dim HYP_ENTERPRISE As Variant
HYP_ENTERPRISE = "Hyperion Enterprise"
vtusername = "admin"
vtpassword = "password"
x = HypCreateConnection(Empty, vtusername, vtpassword, HYP_ENTERPRISE, "http://planws.abc.com:80/aps/SmartView", "EssbaseCluster-2", "abcPLN", "PandL", "TEST", "Hyperion Enterprise")
MsgBox x
x = HypConnect(Empty, vtusername, vtpassword, "TEST")
MsgBox x
End SubWe face similar issue, but if you close the smart view log in pop up without entering any username/password it still creates connection in the background. So login dialouge will pop-up but it will use embedded connection details. Just see if you cancel login dialouge do you still get connection?
-
Hi
Link View,Query options are not enable(i.e Gray Color) in offline Dataform .
I am using Smart view 9.3.1 version. Please suggest how can we resolve this .
ThanQ
Edited by: user11191443 on May 26, 2009 4:03 AMAre you using more than one server for load balancing? If yes try checking the following:
I've seen where one server is working and one is not.
To check which one is working go to the connection manager and add a new connection manager that points directly to the one server:
Somthing like this (hscuschlws00099 is the name of the server in this example)
http://hscuschlws00099/hfmofficeprovider/hfmofficeprovider.aspx
Then try using Smartview on each connection to each server. If one works and the other doesn't you can narrow it down to the one server. -
Smartview- essbase conn with VBA
Hi All,
I am trying connect to essbase using smartview with VBA macros..but few challenges in connecting to the essbase server..
code -----------
Sub RetrieveSheet(SheetName)
'A = EssVConnect(SheetName, Username, Password, "Lxsy9dbtk.cos.is.keysight.com", "MR", "MR")
bconn = HypConnectionExists("TestConnection31")
If bconn = True Then
bconn = HypRemoveConnection("TestConnection31")
End If
A = HypCreateConnection(Empty, Username, Password, HYP_ESSBASE, "http://LXSY9DBTK.COS.IS.KEYSIGHT.COM:13080/aps/SmartView", _
"LXSY9DBTK.Cos.IS.KEYSIGHT.COM", "MR", "MR", "TestConnection31", "EssbaseMRConnect")
A = HypConnect(Empty, Username, Password, "TestConnection31")
If A <> 0 Then
MsgBox (A)
MsgBox ("Login failure has forced routine to terminate.")
AbortStatus = "Yes"
Exit Sub
End If
Thanks in Advance
SivaHi Celvin & Amarnath,
Thanks for both of you for replying, but still I am not able to resolve after making few changes suggested in the above responses.. This is my modified code
'A = HypCreateConnection(Empty, Username, Password, HYP_ESSBASE, "http://LXSY9DBTK.COS.IS.company.COM:13080/aps/SmartView", _
"LXSY9DBTK.Cos.IS.company.COM", "MR", "MR", "TestConnection31", "EssbaseMRConnect")
A = HypCreateConnection(Empty, Username, Password, HYP_ESSBASE, "http://LXSY9DBTK.COS.IS.company.COM:19000/aps/APS", _
"LXSY9DBTK.Cos.IS.company.COM", "MR", "MR", "MR:MR", "Analytic Provider Services")
A = HypConnect(Empty, Username, Password, "MR:MR")
If A <> 0 Then
MsgBox (A)
MsgBox ("Login failure has forced routine to terminate.")
AbortStatus = "Yes"
Exit Sub
End If
I get an error code as -15 . There is no any further error information for troubleshooting. Can you please help me here as what is the mistake i am making in connecting to the essbase cube.
Thanks
Siva -
Start SmartVIew Addin with VBA
Hi,
I need to activate the Addin of SmartView via VBA code from an Excel Worksheet.
So far I created a worksheet and added the module SmartViewVBA to the VBA-Project.
I wrote a program to start the addin:
Sub Open_SMARTVIEW()
AddIns.Add Filename:="C:\Oracle\SmartView\Bin\HsTbar.xla"
AddIns("Oracle Hyperion Smart View for Office, Fusion Edition").Installed = True
End Sub
This added the HSTbar.xla to my VBA-projects. I also got the tool bar activated by this.
In the extras / addins I see that the SmartView Addin is activated. Nevertheless all SmartView Buttons do not react when I click on them and I am missing the SmartView menu bar.
Has anybody an idea or hint, what needs to be done in addition?
Best regards,
HelgeSmart View is a com add-in so you cannot unload it this way you would need to use code to change the 'connect' state of the com add-in:
Function LoadSV(enable As Boolean)
Dim oAin As AddIn
Dim comAin As COMAddIn
For Each oAin In Application.AddIns
Debug.Print oAin.Name
If oAin.Name = "HsTbar.xla" Then
Debug.Print oAin.Installed
oAin.Installed = enable
End If
Next
For Each comAin In Application.COMAddIns
Debug.Print comAin.Description
If comAin.Description = "Oracle Hyperion Smart View for Office, Fusion Edition" Then
Debug.Print comAin.Connect
comAin.Connect = enable
End If
Next
End Function
This will vary based on your smart view version and OS. In fact in windows 7 you would need to be running Excel as an admin and this in unlikely. Is there some reason you are needing to unload SV in VBA?
Maybe you are looking for
-
.PDF image's blacks look grey in Adobe Acrobat Reader
I need to save my design as a CMYK .PDF file and I have created the image in Photoshop CS6 in RGB, changed the image mode to CMYK, for black used C:40 M:40 Y: 20 K:100, and when saved the file as a Photoshop .PDF- it opens in Adobe Acrobat Reader loo
-
I can't transfer raw files by using sd card
hi i can't transfer raw files or large jpg files by using sd card to my ipad retina
-
How to show large images along with cursor while dragging ?
Hi Friends, While dragging images, image has to be shown along with cursor. In normal dragging process, only (32, 32) size of the original image size only appears. But in my application, I need to show image with its original size along with cursor w
-
Finder keeps relaunching itself
Macbook Pro OS X 10.8.5 2.5 GHz Intel Core i5 4GB 1600 MHz DDR3 Finder keeps relaunching itself every few minutes and an error message pops up every time. "The last time you opened Finder, it unexpectedly quit while reopening windows. Do you want to
-
Hi expert, I have a problem. I'm in the following scenario: SAP CRM Mobile 7.0 SP04. I'm in the production environment and we are trying to create the fisrt package (mup). I have imported the custom units from Quality and we are using the same .rbn u