cancel
Showing results for 
Search instead for 
Did you mean: 

Archive Faulty Source File

Former Member
0 Kudos

We have an issue in moving the faulty source files to a particular directory.

We could move all successfully processed files to an archive directory, but not able to move the error files (having some data issue) to another archive directory, so that we can continue with processing of other files.

Module used:

AF_Modules/MessageTransformBean --> 1

Parameter:

Transform.PermanentErrors --> true

But this is not working.

I see a similar thread which is not answered:

Your inputs are appreciated.

Accepted Solutions (0)

Answers (2)

Answers (2)

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Check note #1265534 Archive faulty files does not work with add time stamp mode. Is this relevant to your configuration?

Regards

Mark

prateek
Active Contributor
0 Kudos

Hey Mark,

I am watching this thread. I hope you are involved in my OSS too

Regards,

Prateek

Former Member
0 Kudos

it doesnt work even if I dont add time stamp..

Shabarish_Nair
Active Contributor
0 Kudos

what is the specific error you are getting?

Former Member
0 Kudos

I actually have two scenarios:

1. Asynchronous

2. Synchronous

In Asynchronous; best part is, all files are getting processed, in spite if there are any erroneous files in between, at least it continues with next file. My problem here is, it archives all successful and error files to the same Archive directory; though I have mentioned different directory for u2018Faulty Source Fileu2019. And there are no errors when I see in the CC monitoring. But there is error in sxmb_moni (actually I have failed it intentionally)

Runtime exception occurred during application mapping com/sap/xi/tf/_CreateProductMaster_to_CreateProdu~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "Products" must be terminated bythe matching end-tag "</Products>".

In Synchronous: If there are any error files in between: it never go to the next file, it is stuck in the same file and retries the same. And error in CC monitoring is:

Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Application:EXCEPTION_DURING_EXECUTE:

In sxmb_moni

Runtime exception occurred during application mapping com/sap/xi/tf/_CreateProductMaster_to_CreateProdu~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "Products" must be terminated bythe matching end-tag "</Products>".

Shabarish_Nair
Active Contributor
0 Kudos

when you say a faulty file, the file should have failed processing in the adapter level itself i.e it should not get passed further into the integration engine.

only then the parameter will work and archive the file

from sap help;

13.      To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files.

A permanent error occurs either during the conversion of the file content, or in a module in the module processor.

More information: Adding MessageTransformBean in the Module Processor

u25CB       Specify the Error Archive Directory.

u25CB       To add a time stamp to the archived file, select Add Time Stamp.

Former Member
0 Kudos

>> if there are any erroneous files in between

based upon what parameters you decide if the file has error or not?

Since "Archive faulty file" works on Java stack,it will only archive files which have error in FCC or in module.

any other error (wrong XML,missing values etc ) won't be considered as error (since they are caught in message mapping on ABAP stack).

>>In Synchronous

How are you doing synchronous scenario with file adapter?

Thanks

Aamir

Edited by: Aamir Suhail on Oct 1, 2009 9:22 AM

Former Member
0 Kudos

Yes in synchronous the file did fail at the adapter level

and i have already applied the below at my sender file adapter:

13.      To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files.
 
A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
 
More information: Adding MessageTransformBean in the Module Processor
 
u25CB       Specify the Error Archive Directory.
 
u25CB       To add a time stamp to the archived file, select Add Time Stamp.

also in synchnous i had the below parameters:

AF_Modules/RequestResponseBean> Local Enterprise Bean> 1

CallSapAdapter> Local Enterprise Bean>2

AF_Modules/ResponseOnewayBean>Local Enterprise Bean>3

Now added AF_Modules/MessageTransformBean at the top.

Former Member
0 Kudos

I'm using below modules in file adapter to make it synchronous scenario;

file->webservice->file

AF_Modules/RequestResponseBean> Local Enterprise Bean> 1

CallSapAdapter> Local Enterprise Bean>2

AF_Modules/ResponseOnewayBean>Local Enterprise Bean>3