on 11-27-2013 3:16 PM
Hi all,
I am on a file to BPM scenario. Sometimes the file is empty, so I have configured the sender channel as "Process Empty Files". Before sending the file into the BPM I've got a mapping, in which, if the file is empty, I use some default vales.
I am getting this error in integration engine.
<SAP:Category>XIServer</SAP:Category>
<SAP:P1 />
</SAP:Error>
II I am working with PI 7.3 dual stack.
NAny Idea??
Many thanks
Hi all. I was not able to fix it.
What I have done is with script I have add a first line, and in mapping I do some checks to avoid this first line.
So I dont get never an empty file, and I dont get this error.
Kind regards.
Thanks to all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
The solution is the note "1827646 - XI mapping: Empty pay load for split mapping" and combining it with this note "1883809 - How to process empty payload without complex XSLT/Java mapping" you´ll get the entire solution
(la que has montado con el script).
I share with you a Java Mapping in ESR to set a correlation and a default "empty message" for a BPM:
public void transform(TransformationInput in, TransformationOutput out) throws StreamTransformationException {
try {
//GET FILENAME FROM ASMA
String filename = "";
Map mapParameters = (Map) in.getInputHeader().getAll();
mapParameters.put(DynamicConfigurationKey.create("http://sap.com/xi/XI/Dynamic",StreamTransformationConstants.DYNAMIC_CONFIGURATION), "");
DynamicConfiguration conf = (DynamicConfiguration) mapParameters.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
filename = conf.get(key);
//GET THE CORRELATION FROM FILENAME
String correlation = filename.substring(6,20);
//BUILD THE TARGET XML MESSAGE
String targetxml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><ns1:MT_FILE_ACCORD_PEDIDOS_OBSERVACIONES_TO_ORDERS_ORDERS05_ZORDERS05_ABS xmlns:ns1=\"http://blablabla/xi/blablabla/blablabla\"><CORRELATION>"+ correlation +"</CORRELATION><OBSERVACIONES><LINEAS><NroPedidoyContador></NroPedidoyContador><CodigoSociedad></CodigoSociedad><EjercicioPedido></EjercicioPedido><PRET></PRET><CEROS></CEROS><ObservacionesAlbaran></ObservacionesAlbaran></LINEAS></OBSERVACIONES></ns1:MT_FILE_ACCORD_PEDIDOS_OBSERVACIONES_TO_ORDERS_ORDERS05_ZORDERS05_ABS>";
//SET THE TARGET XML MESSAGE
out.getOutputPayload().getOutputStream().write(targetxml.getBytes());
}
catch (Exception e) {
throw new StreamTransformationException(e.getMessage());
}
}
Please remember close this discussion( ).
Best Regards.
Hi Antonia,
First check the dumps in Tcode ST22, what sought of error is there.
The error should be like this : configuration error or program error, data related.
Check the below link. it will helps.
http://scn.sap.com/thread/2077940
Check with ABAP team for this kind of errors.
Also Refer SAP Note : 1625236
Best Regards,
Monikandan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
Check in ST22 as mentioned by Hareesh
We have also faced the same issue earlier.
After increasing the "rdisp/max_wprun_time" parameter value it got resolved , since then we have not faced this error.
Try to increase the parameter value to 2000 0r 3000 and have a try.
Regards,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
Is the error persisting if you restart the messages?
1625236 - Restart for XI messages after dump in qRFC does not work
Is the error happening with all the empty files or only with a few ones?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio - Please check in st22 transaction and you would be able get some more additional information on this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.