on 11-11-2014 12:20 PM
Hello guys,
I have a Proxy-to-file scenario . I am using an SFTP adapter to write files to the receiver server.
I have used Dynamic configuraiton to populate the file name.My inbound message would containt the header details.
If a file is sent from SAP without any data i.e., only with the header,then I would like my message to fail and nothing should be written to SFTP server. At the moment the file is getting written to the SFTP server with some constant name.
The option of 'Fail if adapter specific message attributes' are missing in SAP PI 7.4.
Thanks,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Amit and Suman.
I would try these options.
One question though off-topic. In Variable substitution, suppose I have to write the file to a target server in the format :
"Cust_data_%var%_%var1%.txt."
var is : payload:MT_Customer,1,Record,2,VKORG,1 and
var1 is : payload:MT_Customer,1,Record,2,VTWEG,1
If my var and var1 values are not coming in the input payload , will the message fail in XI or will it write to the target server in the default format : Cust_data_%var%_%var1%.txt.
Thanks,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>If a file is sent from SAP without any data i.e., only with the header,then I would like my message to fail and nothing should be written to SFTP server
Why can't you handle that in the mapping? Don't create the target message if the header data is not coming from Proxy?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shweta,
pls select the option do not create empty file. Also pls confirm if the SFTP adapter being used is standard one or 3rd party provided. Pls provide more details or screen shots to assist further.
Regards,
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.