Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member207052
Active Contributor

Though the option to retry failed instances of a publication has been around for sometime now, there are still some confusions around this option.

If you right click on any of the failed instances of a Publication, you will find three options

  1. Run Now
  2. Reschedule
  3. Retry

While other options are well documented, "retry" is not still very clear

Retry synopsis:

  1. Overwrites the "failed" instance (run now and reschedule will create new instances, but retry will use the failed instance itself)
  2. In case of partial failure – retry option will process only the failed recipients.
  3. In case of complete failure – the full job runs and is same as run now option- except for the fact that a new instance is NOT created when we retry.
  4. In case if the server stops abruptly (example, you try to force restart SIA or the full box), the progress is not saved and so when the server comes up again, the instance that was running while the server was shutdown will be restarted from the beginning.
  5. Auto-Retry
    1. We can automate it using the “number of retries allowed” under the “recurrence” property of the publication.
    2. In case of a failure, it will wait for the specified duration and then will attempt to run the publication again.
  6. SAP note:
    1. https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F6465...

How can you test this?

If you want to replicate the partial failure scenario, you can follow the below steps.


Publication Properties

  • Source Documents: 16 Crystal reports(simple ones) - Just to make sure that we have enough time to stop the publication in the middle.
  • Dynamic Recipients: 24 recipients (web-I) - you can also use an excel file to build the Dynamic recipient report for testing.
  • Format: PDF
  • Destination: Email
  • Merged PDF: Yes
  • Personalization: Enabled


Steps:

  • Start the publication(preferably in the test mode – end users will not be annoyed)
  • After receiving few emails bring down the file repository services
  • Publication instance will go to failed state
  • Move the received files to a new outlook folder (optional – to make it easier)
  • Bring up the file repo services again. Wait for couple of minutes after this is up.
  • Right click on the failed instance and click on Retry
  • The job will continue from the point it failed and the status will change to “Running”.
  • Wait till the status becomes “success” and then check the emails received.


Screenshots

  • The list of documents

  • Dynamic recipient web-intelligence report

  • Emails received before stopping the repository services

  • Select the services and click on stop. (this is replicate the partial failure scenario)

  • Instance fails and the below message is displayed

  • Move received emails to a new folder (optional – to makes things easier)

  • Start file repository services using CMC/CCM

  • Once the services are up, right click on the failed instance and click on “Retry”

  • Wait till the instance status becomes “Success”

  • Now you will see that the platform processed only 16 recipients (those who did not get the email during the initial run). Hence all 24 recipients are processed and there are no duplicate emails.

  • Auto retry Option:

1 Comment