Smartview for Excel

charlee63

Board Regular
Joined
Jan 7, 2010
Messages
144
I am trying to set up a file to auto log into Hypersion.
Declare Function HypConnect Lib "HsAddin" (ByVal vtSheetName As Variant, ByVal vtUserName As Variant, ByVal vtPassword As Variant, ByVal vtFriendlyName As Variant) As Long
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 vtDatabaseName As Variant, ByVal vtFriendlyName As Variant, ByVal vtDescription As Variant) As Long
Sub Example_HypCreateConnection()
Username = "cjames"
Password = "Wilder0718"
Provider = "HYP_ESSBASE"
QAProvURL = "http://optaixapphyp02pr:19000/aps/SmartView"
QAServer = "EssbaseCluster-1"
AppName = "item"
DBName = "itmsales"
QACommonName = "My Connection"
QADescription = "Analylic Provider Services"
X = HypConnect(Empty, Username, Password, QACommonName)
Y = HypCreateConnection(Empty, Username, Password, Provider, QAProvURL, QAServer, AppName, DBName, QACommonName, QADescription)
End Sub

Getting this error
Cannot connect to Essbase Server. Error:Essbase Error(1042003):
Network Error [11001]: Faliled to retrieve name intormation for [optaoxappyp02pr]
Do you want to connect with username/password?

If I log on manuelly to connect to Data Source says
Server - EssbaseCluster-1
Applilcation - item
cube - itmsales
URL - http;//optaixapphyp02pr:19000/aps/SmartView
Provider - Analytic Provider Services


What is wrong with my program?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top