TIBCO (R) Adapter for Files (FA) fails to execute post or pre processing scripts that contains system commands.

TIBCO (R) Adapter for Files (FA) fails to execute post or pre processing scripts that contains system commands.

book

Article ID: KB0088180

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Resolution:
Description:
============
TIBCO Adapter for Files (FA) fails to execute post or pre-processing scripts that contains system commands such as "mv" on UNIX or "ftp" on Windows.

Environment:
===========
FA 5.6.0 or older versions
All supported UNIX and Windows platform.

Symptoms:
========
1).  When FA tries to execute a post processing script containing OS command it stops.

2). If warn role is enabled, file adapter logs shows the following:
***
Warn [System] AE FA-000056 Post Processing script returned error code 127
***

Cause:
=====
FA 5.6.0 or lower adfilesagent.tra file missing the entry %%PATH%% and the file adapter fails to recognize system commands such as  "mv" and  "cp" on UNIX or "ftp" under Windows.

Resolution:
==========
Explicitly adding the system path into adapter tra files solves this problem.

1). If running the adapter from the designer tester add the system path in tibco.env.CUSTOM_PATH in adfilesagent.tra located in the file adapter bin folder.

2). If running the adapter from the TIBCO Administrator (Admin) the following are the steps needed to modify the script when deployed in Administrator:

a). Locate the .tra file created after deployment under the &ltTRA-HOME>/domain/&ltDOMAIN_NAME>/&ltFA-APPName> directory.

b). Set the path of the pre-processing script in the above mentioned .tra file by uncommenting the CUSTOM_PATH variable.

3).  A template tra (adfilesagent.tra) can be modified to include the PATH to generate a correct tra file created after deployment for future deployments. If taking this approach then step a).  and b). are not required for new deployments.

This has been reported as a bug(AFIL-835 ) and fixed in FA 6.0.0.

Issue/Introduction

TIBCO (R) Adapter for Files (FA) fails to execute post or pre processing scripts that contains system commands.