cancel
Showing results for 
Search instead for 
Did you mean: 

Rename universe via Restful Api?

Former Member
0 Kudos

Is it possible to rename universe via Restful Api?

For example from Test.unx to Test_1.unx?

I've tried PUT method:

PUT /biprws/raylight/v1/universes/4504926

and Request body in an XML file:

<universe>

<name>Test_1.unx</name>

</universe>

Got error:

<error>

    <error_code>FWB 00003</error_code>

    <message>&#1053;&#1077;&#1076;&#1086;&#1087;&#1091;&#1089;&#1090;&#1080;&#1084;&#1099;&#1081; &#1084;&#1072;&#1088;&#1082;&#1077;&#1088; &#1074;&#1093;&#1086;&#1076;&#1072; &#1074; &#1089;&#1080;&#1089;&#1090;&#1077;&#1084;&#1091;. (FWB 00003)

</message>

...

Also tried this code:

PUT /biprws/infostore/cuid_AcBPRvbmFF5JkKKu5zcCO9I

and Request body in an XML file:

<entry>

<content>

<attrs>

<attr name="name">

<name>Test_1.unx</name>

</attr>

</attrs>

</content>

</entry>

Got this error:

<error>

<error_code>RWS 00057</error_code>

<message>&#1052;&#1077;&#1090;&#1086;&#1076; &#1085;&#1077; &#1088;&#1072;&#1079;&#1088;&#1077;&#1096;&#1077;&#1085; (RWS 00057)</message>

...

Could you tell me what I'm doing wrong?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Andrey,

I believe this is not possible through RESTful Web services, because we can only perform the GET method operation with Universes (which is used for retrieving information from the universes unv/unx). Also there is no such information provided in the RESTful web services developer guides.

For doing any modifications with universes, we need to use the Semantic Layer SDKs (which is only used with unx type of universes). Also, in this case you have to retrieve the universe locally, set its new name & then re-publish the universe again to BOE repository.

If your requirement is for changing/renaming the universe names irrespective of their types, you can still use the legacy BOE Java SDKs. I had given a try with the same & able to rename the universe name successfully.

Below is the code snippet for the same:

-------------------------------------------------------------------------------------------------------------

  IEnterpriseSession es=CrystalEnterprise.getSessionMgr().logon("Administrator", "<Password>", "<BO-Server-Name>", "secEnterprise");

  IInfoStore is=(IInfoStore) es.getService("", "InfoStore");

  IInfoObjects objs=is.query("select * from ci_appobjects where si_id=5101");

  IInfoObject obj=(IInfoObject) objs.get(0);

  obj.setTitle(obj.getTitle()+"_1");                                   // This line is for setting the new name for universe

  is.commit(objs);

  System.out.println("Success!!!");

-------------------------------------------------------------------------------------------------------------


Note: The above piece of code, doesn't impacts any other properties of the universe i.e. universe short name, SI_ID, SI_CUID etc.


Hope this helps you.


Thanks,

Shailendra

Answers (1)

Answers (1)

Former Member
0 Kudos

As an additional step forward, I would recommend you to raise this on IdeaPlace, so that this feature will be overlooked by Product Experts & may be introduced in future releases of BI suite.

SAP BusinessObjects BI Platform: Ideas

Thanks,

Shailendra