cancel
Showing results for 
Search instead for 
Did you mean: 

Error file creation

ranjit_deshmukh
Active Participant
0 Kudos

Hi All,

I am using a simple file to file transfer scenario 'file->XI->file'

wherein I want to create a new file(third file) called as 'Error Log' or something which will contain the error report(which may contain the field in the datatype which has errors) if my transfer is not successful.

Thanks & Regards

Ranjit

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

There are different ways/places you can handle the errors-

Case 1 )If your transfer is not success then you need to get the Transport Acknowledgement and you can notify thru Alert, Error/Audit file . For this BPM is required.As File adapter does not support Application Acknowledgment. Refer

This doc may help you on this..

/people/michal.krawczyk2/blog/2006/06/22/xi-playing-with-the-file-adapters-acknowledgments

Case 2) if you want to valdate the data, then either you can use Adapter Modules or you can use Mapping to find out the errors.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dc...

Hope these helps

Regards,

Moorthy

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ranjit,

U can create error file at OS level.

Fisrt define error condition , whenver ur message reaches that condition just right to a file thats it.

venu.

Former Member
0 Kudos

Hi Ranjit,

I can't see an easy way to implement this (although I can't guarantee there really is none...).

Unfortunately, the file adapter only acknowledges the arrival of a message, but not the successful write process. Thus, even a BPM can't say for sure whether the file has been created. The only possibility I can think of is another sender file adapter that tries to read the just written file and correlates it with the first, but that is quite cumbersome.

I'd rather try to solve it on the monitoring/alerting side...

Kind regards,

Dennis

Former Member
0 Kudos

Please clarify better the scenario: do you want to manage XML file or flatfile ?

Do you have mapping or not ?

Do you use FTP or not

Sandro

ranjit_deshmukh
Active Participant
0 Kudos

Thanks for the reply

I use XML file and use mapping also

I use a simple file adapter to accomplish the task

please let me know if any more info you want

Thanks & Regards

Ranjit