After reading blog’s heading many of you might say – not again 😉 , but don’t worry I am not going to explain XML validation and how to use it because it’s already very well documented in numerous blogs.

The objective of this blog is to show how the modes of processing step “BI” (of Staging/logging) in PI7.3x (AAE) would impact archiving of erroneous files in case of sender FTP/NFS scenarios under “Archive” or “Error” directory when XML validation gets failed. For more details about staging and logging, refer below blog:

Message Staging and Logging Options in Advanced Adapter Engine of PI 7.3x

So let me show you how XML file validation behaves when we change modes of “BI” from ICO i.e. interface specific staging.

Note – I am using PI7.31 SP09 (PO), so the modes of processing steps can be modify either from NWA globally or directly from ICO using scenario specific staging/logging (depends upon PI version). But just to keep things simple i will be changing “BI” modes from ICO but the functionality shown below will behave in same manner even if we change “BI” modes from NWA globally.

For testing purpose, i have enabled XML validation in ICO and validating file against below structure created in PI:

Capture.PNG

and File adapter settings are as below:

Capture.PNG

A) Mode of “BI” is set to “Store”:

The logical flow at runtime will be:

a) Sender file adapter will pick XML file and archive the same.

b) And then XML message will be validated against its corresponding XSD.

Capture11.PNG

Error logs: Schema validation error logs can be viewed at PI’s message monitoring level.

Capture12.PNG

File is archived under “Archive” folder:

Capture13.PNG

B) Mode of “BI” is set to “None”:

The logical flow at runtime will be:

a) Sender file adapter will pick file and validate it against its XSD.

b) Depending upon the schema validation results file will either be send to archive or error directory.Capture.2PNG.PNG

Error logs: Mode of “BI” is set to “None”, so schema validation error logs will be generated at sender adapter level.

Capture.PNG

File is dumped under “Error” folder:

Capture.PNG

References:

http://help.sap.com/saphelp_nw73ehp1/helpdata/en/da/760a67857342d090199dd29a4ae343/content.htm

Message Staging and Logging Options in Advanced Adapter Engine of PI 7.3x

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply