on 2025 Oct 08 9:10 PM
Hi Experts
I have a really strange bug. There is an iflow in our system that is supposed to fetch and sync data from SuccessFactors to an external servers. The fetched data shows up as attachment in the CPI monitoring. It is working perfectly fine in our dev and test tenant. But when the client is trying to run it, it completes the run successfully but does not fetch any data at all. I am at a loss to understand what is going wrong. The endpoints they are using are exactly the same as ours. I asked them to run it in trace mode and share the results. Here is what they found -
This is showing up after a groovy script -
I am not sure why this error is coming up for them. Here is the "Set Content Name ppty" Script
/* Refer the link below to learn more about the use cases of script.
https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/148851bf8192412cba1f9d2c17f4bd25.html
If you want to know more about the SCRIPT APIs, refer the link below
https://help.sap.com/doc/a56f52e1a58e4e2bac7f7adbf45b2e26/Cloud/en-US/index.html */
import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
import groovy.json.JsonSlurper;
import groovy.json.JsonOutput;
import groovy.json.*;
def Message processData(Message message) {
//Body
def body = message.getBody(java.lang.String) as String;
def jsonSlurper = new JsonSlurper();
def payload = jsonSlurper.parseText(body);
if (payload['root']['value'] == "") {
message.setProperty("contentName", 'Not found');
} else {
def tyOfValue = payload['root']['value']['componentTypeID']
message.setProperty("contentName", tyOfValue);
}
return message;
}For context, they are getting the payload when trying via postman. I am completely lost on this and any help will be appreciated.
Thank You
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.