SK SKYVVA Documentation

160.What to do with failed messages when processing a new message with the same external Id?

Introduction:

In Skyvva , We have a feature that called what to do with failed message ? This feature is using with Inbound processing and the the located is in the Runtime Configuration - Inbound which is in Interface details.    There are six picklist value such as:

Why we use this feature ?

This feature is using when the payload missing some fields or user want to add more column without edit message type or structure and it is useful,  when we do with workflow meaning that If the message is failed that means message match condition some workflows, the message will pass to the next workflow to processing. We can set some field on interface force deletion, but the user will lose monitoring the message of processing other interface processing In this case we don't delete the current message which we are processing. We want to keep the current processing, not delete it. But we want to delete the older messages with the same external Id which are red or pending. Only these two status. If the user want to have like that then user doesn't want to have the monitoring for the old failed or pending message with the same external Id. But the other messages with other external Ids are still there and we don't delete them, Except when user choose delete failed message. So the condition is only the messages with the same external Id. Pre-required: 

  1. Here's Inbound Interface which is link with message type.

How to use this feature ?

As we known that this feature is in the Runtime Configuration -Inbound so now we go on. Go to Interface details.

Now we can see the place to configuration so we will see the details about the six picklist . First is ,  What to with failed message when we set "None"  . It will create  a new message with the same external Id.

Second  is, What to with failed message when we set "Overwrite failed message" , it will overwrite with the same external Id.

Third  is, What to with failed message when we set "Overwrite failed message and delete pending", it will overwrite the existing message and delete pending.

Forth  is, What to do with failed message when we set " Merge failed message",  it will merge the old with the new payload and process again. This meaning that when the payload is failed and then we want to keep the old payload message  and want to add new the fields so it will merge the old payload with the new payload. In this case we need more field to show so now we can add  5 fields more. Here's the first mapping which we will make it failed message.

Now we want to keep the value that failed and want to merge the new payload with the failed payload by changing mapping .

Fifth is , If we set to Merge failed message and delete pending, it will merge the old with the new payload message and delete pending.

Sixth is ,If we set to Delete failed message , it will delete all failed message"

Summary  Now we have already learn about sixth difference picklists for what to do with failed message.  It is very helpful for user who want to use which picklist that match his business.

Open this article in the interactive viewer →