on ‎2018 Dec 12 2:50 PM
Hi All,
We have a scenario in CPI in which we need to store data in Data store (in case of connectivity issue) and fetch data for resending it.
We are using Write operation to store data with DATAStore mentioned, we can mention some entry ID to store data.
While retrieving the data using GET Operation in second Independent process of Iflow how to check Router condition using Entry ID?
How to check for empty file router condition?
Write operation to Store DATA (Entry ID we have kept it empty)

GET operation to retrieve file (Non-XML) from DATA Store.


Best Regards,
Suresh S
Request clarification before answering.
Hello Suresh,
Add a select step and add below condition which might help you to check whether message details are retrieved or not.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi maik.offerle ,
Tried with above option also, We are getting null exception.
No message available in Data store and in turn throws Null Exception.
Could you kindly say how to check for null condition (DATA store message) at Router Condition?
Best Regards,
Suresh S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maik,
Thanks for your inputs.
There are 2 cases here,
1. Maintaing Entry ID in Write DATA store operation and how to fetch same Entry ID in separate Process of same Integration flow as mentioned in pic above?
2. As you mentioned, we need to end iFlow in case Entry ID is empty or Empty message .
I have added routing condition ${header.SAPDataStoreID} = ' ' and eventhough we dont have message in data store, condition is not checked.
How to maintain routing condition entry in SAP HCI?
Best Regards,
Suresh S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Suresh,
I guess your aim is to prevent failing of the Iflow if there is no data store entry?
Why you are not checking in the router for an empty body of the message?
If no data store entry is fetched via GET the body should be empty.
Thanks and regards
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.