We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Connection to MS OLAP XMLA

Answered
Nelson Nogueira asked on February 16, 2022

I am testing FlexMonster TRIAL version to connect my database OLAP.
Above is the code:
let pivot = new Flexmonster({
container: "pivot-container",
toolbar: true,
report: {
dataSource: {
type: "microsoft analysis services",
proxyUrl: "http://tstmbibd01/OLAP/msmdpump.dll",
catalog: "Matrix_TST",
cube: "Producao",
}
},
licenseKey: "Z77Y-XAAH0H-086E3K-11502W"
 
I use this URL connection in other components and works fine.
Could you please hep us?
 
 

Attachments:
flexmonster_error.png

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 17, 2022

Hi, Nelson!

Thank you for your question and a code example.

The connection code is correct. Our main supposition is that the error is caused by CORS misconfiguration. Check out these pages for configuring and testing CORS on your server. 

While trying to connect, we have seen this error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading 
the remote resource at http://tstmbibd01/OLAP/msmdpump.dll.
(Reason: CORS request did not succeed). Status code: (null).

Could you please send us what you see in a browser console and network tab?

Also, you can find more common reasons for stream error here:
https://www.flexmonster.com/doc/typical-errors/#stream-error.

We are looking forward to hearing from you.

Best Regards,
Maksym

Please login or Register to Submit Answer