Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Data Source using asazure protocol #394

Closed
Tannenwedel opened this issue Jul 18, 2018 · 4 comments
Closed

Support for Data Source using asazure protocol #394

Tannenwedel opened this issue Jul 18, 2018 · 4 comments

Comments

@Tannenwedel
Copy link

Tannenwedel commented Jul 18, 2018

Hi @Seddryck,

does NBi support connection strings with data sources that use the asazure protocol like this?

<query connectionString="Provider=MSOLAP;Data Source=asazure://westeurope.asazure.windows.net/mydb;Initial Catalog=myCatalog;">

Currently it fails to parse the connection string (is appears to be looking for a port, that is not required):

 NBi.NUnit.Runtime.TestSuite.My Test:
System.AggregateException : One or more errors occurred.
  ----> NBi.Core.ConnectionException : The connection string is not valid.
The connection string used was 'Provider=MSOLAP;Data Source=asazure://westeurope.asazure.windows.net/mydb;Initial Catalog=myCatalog;'
  ----> System.FormatException : Input string was not in a correct format.

Stacktrace:

--FormatException
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)

--- Edit:

It seems that connecting to Azure Analysis Services requires Microsoft.AnalysisServices.AdomdClient.dll in version 14.0.800.117 or later whereas NBi uses version 12.0.0.0. Are there any plans to update this?

Thanks

@Seddryck Seddryck self-assigned this Jul 18, 2018
@Seddryck
Copy link
Owner

I never tested this, can’t confirm. I’ll check in documentation of ASA and if needed upgrade to the last version of adomd. Should be part of the next release.

@Seddryck
Copy link
Owner

Seddryck commented Jul 19, 2018

I just compiled a new version of NBi with the new Adomd package at https://ci.appveyor.com/project/Seddryck/nbi/build/1.18.0-alpha.1+165.build.429/artifacts

@Tannenwedel: could you confirm that it effectively fix your issues with asazure ?

@Seddryck Seddryck added this to the v1.19 milestone Jul 19, 2018
@Tannenwedel
Copy link
Author

Hi,
the connection to the Azure Analysis Services can be established now.

Thanks!

@Seddryck
Copy link
Owner

Seddryck commented Jul 23, 2018

Ok, thx for the feedback and the tip about the root cause. Merged to develop branch and available in beta at https://ci.appveyor.com/project/Seddryck/nbi/build/1.19.0-beta.42.build.433/artifacts or Update-Package NBi.Framework -Version 1.19.0-beta0042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants