cancel
Showing results for 
Search instead for 
Did you mean: 

REG: Handling empty files

Former Member
0 Kudos

Hi All,

I have a flat file as input and to convert it into xml i am using FCC. When i get an empty file my channel is picking up the file and it is failling in the mapping because file is blank.I want document name and the namespace created for that empty file so it wont fail in the mapping. the reason i need empty file is ,i need the name of the file.Please suggest me a solution how this can be achived.

Thanks in advance,

Siva

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In the file adapter select :

Process Empty files:

Former Member
0 Kudos

Hi

Sender File Adapter

under "Processing" tab

see option --> Empty File Handling -- Select -- Process Empty file

rgds

srini

Former Member
0 Kudos

Hi All,

I have selected that option and my channel is picking up the empty file sucessfully , but it is failing in the mapping because it dont have root node , name space.Is there any way by which i can insert root name and name space inside the empty file.

Thanks,

Siva

Former Member
0 Kudos

Hi

Then write a logic for the node

if Source node (ifexits) then map the source node to Target node

else

Map constant (Space) to the target node , if no source node the it will create just target node.

rgds

srini

Former Member
0 Kudos

Hi Srini,

I tried the same thing , and i am getting an error:" Parser error, Root node expected".Can you please help me on this.

Thanks,

Siva

former_member183908
Active Contributor
0 Kudos

Hi Siva,

--> In your Sender File Adapter Select the PROCESS EMPTY FILES from Empty-File Handling.I think it will work with otu throwing any error.

Thanks