cancel
Showing results for 
Search instead for 
Did you mean: 

Handling empty files

Former Member
0 Kudos

Hello all,

In my scenario i am using file as my sender, if the file size is zero then how to throw an exception saying that the file is empty to the user. how will i handle this issue.

thanks in advance,

Pradeep N

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Possible only from SP 19 in XI and SP 10 in PI.

Before that you have no control

regards

Bhavesh

Former Member
0 Kudos

thanks

Bhavesh

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

What do you want . you mean raise an exception,

See we can raise an Runtime exception from message mapping by using UDF

In UDF

if the source message is empty then throw new RuntimeExceptio("Own message");

Check and try , this can be handled in determination by terminate the processing.

Regards

Chilla