cancel
Showing results for 
Search instead for 
Did you mean: 

reschedule webi report through restful webservice

antoine_brejuin
Explorer
0 Kudos

Hello,

I want to reschedule webi report through restful webservices.

I can see if a schedule is failed or not with http://{servername}:{port}/biprws/raylight/v1/documents/{documentID}/schedules/{schedulID}. (get method)

Then I want to lauch again the webi reports that has been failed:

I am using post method :

url : http://{servername}:{port}/biprws/raylight/v1/documents/{documentID}/schedules/

with value :

  "schedule" : { "name" : "test",

  "format" : {"@type":"pdf"}},

  "destination": {"mail":    {

      "from": "bo@domaine.fr",

      "to": "user@domaine.fr",

      "cc": "",

      "bcc": "",

      "subject": "Test DEV",

      "message": "",

      "addAttachment": true

   }}

After this, here is the schedule parameters

{"schedule": {

   "id": 207755,

   "name": "test",

   "format": {"@type": "pdf"},

   "status":    {

      "@id": "1",

      "$": "Completed"

   },

   "destination": "",

   "once":    {

      "@retryIntervalInSeconds": "1800",

      "@retriesAllowed": "0",

      "startdate": "2016-02-01T15:55:07.888+01:00",

      "enddate": "2026-02-01T16:55:07.888+01:00"

   },

   "serverGroup":    {

      "@required": "false",

      "@id": "0"

   }

}}

destination parameters disappeared !

Could you help me to know the reason of this ?

Thanks

Antoine

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

Hi Antione,

As far as I can see, the body you are sending in the POST looks fine. <edit>(it is missing a final close tag though)</edit>

Are you scheduling again using the {documentID} of the parent document or are you replacing it with the ID of the scheduled instance?

does this happen for all REST schedules to email destination or only when rescheduling failed documents?

Also, what version are you using?   GET  /raylight/v1/about

Dan

antoine_brejuin
Explorer
0 Kudos

Hi Dan,

I am using BI 4.1 SP6 patch 1 with Apache Tomcat. I am trying to use WACS to be able to automatic reschedule failed instance.

{"about": {

   "title": "Web Intelligence - Raylight",

   "version": 1,

   "vendor": "SAP SE",

   "build": "14.1.6.1760",

   "timestamp": "20150729.175734",

   "copyright": "©2010 - 2015 SAP SE or an SAP affiliate company.  All rights reserved."

}}

The final close was not missing in my test, it was missing only in my post!

I am trying to reschedule again with document id only, I am not using schedule instance.

After posted new schedule parameters, there is a schedule instance created with a specific number.

This schedule is working fine usually, this behavior is not specific to failmed schedule.

Thanks for yor help.

Antoine

former_member197386
Active Contributor
0 Kudos

Bonjour Antoine,

We're investing this issue and will come back asap.

Best regards,

Anthony

antoine_brejuin
Explorer
0 Kudos

Hello,

I have just trying with another destination :

   {"schedule": {

   "name": "NAME",

   "format": {"@type": "pdf"},

   "destination": {"filesystem":    {

      "username": "",

      "directory": " //servername/Informatique/"

   }}

}}

and it worked!

Instance has been rescheduled directly and pdf file was available on the filesystem.

antoine_brejuin
Explorer
0 Kudos

I tried again with my first report and it worked this time!

with sending email!

I do not understand.

I will look deeper to understand what happened.

Sorry for that !

antoine_brejuin
Explorer
0 Kudos

I have just saw 2 final closes at the end of line "format" : {"@type":"pdf"}},

I tried again with this error and behaviour has been the same : no destination in my new schedule instance!

sorry for disturbing you on this wrong problem!

thanks for your help

former_member197386
Active Contributor
0 Kudos

Hello Antoine,

No worry and happy you find out a fix for that tricky issue

Don't hesitate to ask if you face any concerns further.

Best regards,

Anthony

Answers (0)