Consulting

Results 1 to 6 of 6

Thread: Solved: OLAP Cube issue with Excel 2010

  1. #1
    VBAX Regular
    Joined
    Apr 2008
    Posts
    97
    Location

    Exclamation Solved: OLAP Cube issue with Excel 2010

    Hello Excel gods.
    We have an app that uses an offline OLAP data source that works fine in Office 2003 but in Office 2010 I get the following error.
    GetPVTConnection Error(80004005) file system error, C:\bdr points to an existing file that can not be opened.

    I really dont know where to start with this one but here is some of the code that is having the issue.
    [vba]Public Function GetPvtConnection() As ADODB.Connection
    Dim con As ADODB.Connection

    On Error GoTo GPErr:
    Set con = New ADODB.Connection
    With wksPivot.PivotTables("pvtMain").PivotCache
    If .UseLocalConnection = True Then
    con.ConnectionString = Right(.LocalConnection, Len(.LocalConnection) - 6) ' local connection string (without leading OLEDB
    Else
    con.ConnectionString = Right(.Connection, Len(.Connection) - 6) ' online connection string (without leading OLEDB
    End If
    End With
    con.Open ' open ADO connection
    Set GetPvtConnection = con ' return new connection
    Set con = Nothing ' free this reference
    Exit Function

    GPErr:
    If Err.Number < 0 Then
    MsgBox "GetPvtConnection Error (" & Hex$(Err.Number) & "): " & vbCr & Err.Description, vbExclamation + vbOKOnly, TITLE
    Else
    MsgBox "GetPvtConnection Error (" & Trim$(Str$(Err.Number)) & "): " & vbCr & Err.Description, vbExclamation + vbOKOnly, TITLE
    End If
    End Function[/vba]

    Seems like it just will not make a connection to the local cub file. I know that OLAP support is included with 2010 but are there other changes that could be throwing a wrench into this?
    If someone could just point me in the right directon that would be simply great.
    Quick update, When the "con.Open" comand is thrown the value seems ok as it is"Provider=MSOLAP.2;Persist Security Info=True;Data Source=c:\bdr\alc1.cub;Initial Catalog=ALC1;Client Cache Size=25;Auto Synch Period=10000"
    Last edited by slang; 08-10-2011 at 05:20 AM.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you post the files so that we can play with it?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Apr 2008
    Posts
    97
    Location
    Cool, Tracked the problem down to the new tablets not having the 2003 web services installed which it needs.
    Thanks Xld.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by slang
    Cool, Tracked the problem down to the new tablets not having the 2003 web services installed which it needs.
    Thanks Xld.
    Blimey, I'm good. I solved it without doing anything
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Apr 2008
    Posts
    97
    Location
    It was just seeing your response that gave me the confidence to look deeper

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Bob if only you could realise your potential
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •