cancel
Showing results for 
Search instead for 
Did you mean: 

Payload deletion

former_member185881
Active Participant
0 Kudos

Hi All

I am placing a xml file at ftp location. How can i delete the content of the incoming payload so that empty files cannot be processed in file adapter.

In configuration i have selected "do not create message for empty file".

Regards

Dheeraj kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Just check 'Skip empty files'

Br,

Dzmitry

former_member185881
Active Participant
0 Kudos

Hi

I have to write Adapter module to make payload empty.

Please need some inputs.

Regards

Dheeraj Kumar

former_member185881
Active Participant
0 Kudos

Hi

I have to write Adapter module to make payload empty.

Please need some inputs.

Regards

Dheeraj Kumar

Former Member
0 Kudos

Hi Dheeraj,

Do you want to delete the payload dynamically using module? Or simply u dont want to process the empty file?

Please clarify the requirement.

Regards,

Sushama

former_member185881
Active Participant
0 Kudos

Hi Sushma

I want to delete the payload dynamically using module.

Regards

Dheeraj Kumar

prasannakrishna_mynam
Contributor
0 Kudos

Hi Dheeraj.

check this code.

ByteArrayOutputStream myBytes = new ByteArrayOutputStream();
byte[] docContent = myBytes.toByteArray();
xmlpayload.setContent(docContent);
inputModuleData.setPrincipalData(msg);

Regards,

Prasanna

Answers (0)