on 04-08-2009 7:41 AM
Hi All,
I am using variable substituition in the receiver file adapter...
Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition.
Now based on some condition the payload will be empty in the mapping then no file to be created...
For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
Now my question is how can we stop in creating an empty file...
Even i tried using Dynamic Variable in the mapping but that to throws an error...
Please suggest me on how to solve this...
Regards,
sridhar
Hi,
I tried using Variable substitution in both ways(Dyanmic using UDF and other way using the payload) and still the same prob..
So we decided to send a different file(empty) if the condition does not satisfy else the actual file with data
Thanks and Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
I to had a similar requirement , the solution lies in the fact " no node --- no problem ".
Regards
joel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use a condition for the existance of field in the receiver determination to route the message to target.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Now based on some condition the payload will be empty in the mapping then no file to be created...
> For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
Make sure that the node is not created itself in the mapping so that you will not have the issue.
IS that what you are looking for?
Else give more details so that we can help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shabarish,
Even i tried by making the filenode not appear in the mapping,No file is created but error is thrown in RWB CC monitoring...
Following is the error which i am getting
Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: filename1
This is because the filenode (fielname) doesnt appear in the payload...
and if i try the other way then also the same prob...
Regards,
Sridhar
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.