Skip to Content
author's profile photo Former Member
Former Member

Saving the webi report using Rest-sdk

hi All,

I tried saving the opened webi report and tried to save the report using the restwebservice call in java

POST <webiURL>/documents/{documentId} 

and gave the following input "<document><name>test-gaurav</name><folderId>-1</folderId></document>" but it throw the error error :: Error [error_code=WSR 00999, message=Internal error] can we save the opened webi report with this service? Thanks Gaurav
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Jul 15, 2016 at 05:20 PM

    Hi Guarav,

    You can't save a report to a folder with an ID of "1" as this is not a valid folder. The infoobject ID 1 is reserved for the "Everyone" Group, so essentially you a tryinig to save a report to a Group. Make sure you are using a valid folder ID that the logged on user has access to.

    [edit]:

    Sorry about that. Bad eyes and a tiny font on my screen. I see now that you used "-1". Yes this should work for saving the document back to the same folder with a different name. If you enable the stack trace on the WACS server, you should get a better error. Also, one thing to try is removing the hyphen from the new name (just to be sure that's not part of the issue).

    Dan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 06:30 AM

    hello Gaurav,

    In addition to Dan's recommandation about WACS trace, which version are you running? (GET .../raylight/v1/about) ?

    Thanks,

    eric

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 09:53 AM

    Hi Gaurav,

    A small doubt,

    Did you open the Report in Webi and then Trying to save it using Restful SDK.

    If that is the case you cannot do it.

    Otherwise,

    Try saving the report using a Put method instead of Post to save the report.

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 11:10 AM

    Hello,

    According to the documentation, POST is for creating a new Webi document (an empty one or from an existing one).

    Use PUT to simply save back your document to the CMS.

    Regards,

    Anthony

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Gaurav,

      Ok, so if you want to create a new Webi document from an existing one, you have to use a POST with a payload like you did:

      <document>

      <name>testgaurav</name>

      <folderId>-1</folderId>

      </document>

      You have to specifify what is the "source" Webi document to copy using the query parameter "sourceId" with the identifier.

      Regards,

      Anthony

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.