blpsrv() Internal Error "Undefined function or variable 'createIdentity'"

조회 수: 7 (최근 30일)
Michael
Michael 2020년 2월 4일
답변: Sai Sri Pathuri 2020년 3월 3일
I am trying to use the Bloomberg SAPI in MatLab. When attempting to run blpsrv to set up the connection I recieve the following error:
Undefined function or variable 'createIdentity'.
Error in blpsrv (line 100)
identity = b.session.createIdentity;
When stepping through and debugging the code it seems that the b.session object within the blpsrv() function does not have a subfunction createIdentity. This function is a built in MatLab function, not sure how I can edit or debug further.
Running this on a windows machine. MatLab version R2017b.
Has anyone else ran into or solved this issue?

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 3월 3일
It is possible that during configuration, the version of 'blpapi3.jar' that you copied from from the folder "C:\blp\DAPI" is only suitable for Bloomberg Desktop connections and not Bloomberg Server connections.
For configuring the Bloomberg Server connection correctly, you can find the appropriate files in a subfolder that has a name such as "C:\blp\SAPI" or "C:\blp\ServerAPI".

카테고리

Help CenterFile Exchange에서 Bloomberg Server에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by