https://community.axway.com/s/mft-resources
1. webclient/SFTP
In SecureTransport webclient/SFTP, we need to block the file upload with particular filename extensions.
Please let me know is it possible to block the file upload with extension other than .pdf into a particular folder using Webclient/SFTP.
Solution:
Out of the box, you can do that for ALL protocols (you cannot allow that for FTP but stop it on HTTPS/SFTP for example).
If this is what you need, what you are looking for are the Upload Restrictions: (Access -> Restrictions -> Upload Restrictions) on the UI. If you want that to apply to everyone, you can leave the class as *. If not you will first need to put the users in a class (based on GID or username or IP address they are coming from) and then use the class in the rules.
2.How to replace a file name in Advance router ?
we are receiving a file from customer and while sending to customer we want to remove some file name and send the file to customer.
ex: HCF0324.RAMOR.PLANDATA.MTH.PART
while pushing to customer we have to remove HCF0324.RAMOR and send the PLANDATA.MTH.PART file to customer.
so we used FOLDER Monitor to remove the file precedence using replace reg ex.
${stenv['target'].replace('\\HCF0324.RAMOR. *', '')}and it was working fine.
but in advance router it was not working, like we tried route file as with same regex
${stenv['target'].replace('\\HCF0324.RAMOR. *', '')} and tried below regex too
${filename(transfer.target).replace('\\HCF0324.RAMOR. *', '')} but it was not working.
Solution:
The replace function in AR is a little different, you could try to use the following:
${basename(currentfulltarget).replace('HCF0324.RAMOR. *', '')}
3.File transfer rename failure
We are receiving inbound file from vendor , on receiving at our end we are getting rename failure on post transmission. But we have not set any actions on the particular user account. Please find the failure details and provide the inputs to resolve the issue.
Failure details:-
Failed to rename /XXXXX_mount/sharted_folders/XXXXX/prod/inbound/XXXXX_XXXXXXX_XXXXXXXX_1.xml.filepart because the file is currently in progress
Post Transmission:
Operation type: local/rename
completion : failed
result: /XXXXX_mount/sharted_folders/XXXXXXX/prod/inbound/XXXXX_XXXXXXX_XXXXXXXX_1.xml
Comment: operation performed by rename/ move agent
Solution:
Most likely the remote partner is using WinSCP to send files and one of its features is causing this issue.
Please check this KB for more details - https://support.axway.com/en/articles/article-details/id/67579/do/search