cancel
Showing results for 
Search instead for 
Did you mean: 

Raise error in case of no file or corrupt file

Former Member
0 Kudos

Hi,

We have a requirement in our project where we need to raise an error in SXMB_MONI if there is no file (or file is corrupt) to be picked after a certain time.

Please let me know your views how can we handle this ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi PI experts,

Please tell me if smthing standard is provided by SAP to handle this ..or we have to do custom development ?

former_member200962
Active Contributor
0 Kudos
file is corrupt

Corrupt in what sense? Data is not as per your requirement or message structure itself is wrong or message format is invalid (like in-valid XML message is placed)?

1) You can make check in Receiver Determination while selecting the receiver and then if the condition is not satisfied then you get an error in SWMB_MONI.

2) You can also make a check in Mapping and then throw exception from the mapping if you find the data is corrupt.

3) If on SAP PI 7.1 or above then you can make use of XML Validation by Integration Engine which itself will throw an alert.

Former Member
0 Kudos

Hi Abhishek,

Having said corrupt i meant that if the file is not readable by PI or has some junk data.

Yes I am aware of XML validation in PI 7.1 but thats just to check the structural inconsistencies in the PI structure..

My main concern is if the file does nt reach PI source folder then how can we raise error in PI ?

Former Member
0 Kudos

Hi,

If there is no file available in the source folder, the sender adapter will continuously poll the folder, without throwing any error.

You might go for a script which can throw an exception if no file is available for a certain period of time. There is no standard functionality provided in PI for this.

Regards