B2B Integration

 View Only

 Ampersand in FTP password

Damon Hicks's profile image
Damon Hicks posted Thu March 06, 2025 06:46 PM

I have a bpml where we connect to a customer's FTP site. They have changed the password and are using an ampersand in the data. Below is the bpml code and it won't validate in SI because of the ampersand in RemotePassword. Can this be done or is there some sort of escaping I have to do to use the ampersand in the password field? Any help would be GREATLY appreciated.

<operation name="FTP Client Begin Session Service">
<participant name="FTPClientBeginSession"/>
<output message="FTPClientBeginSessionServiceTypeInputMessage">
<assign to="FTPClientAdapter">FTPClientAdapter</assign>
<assign to="RemoteHost">test.site.com</assign>
<assign to="RemotePasswd">Pass&Word!</assign>
<assign to="RemotePort">21</assign>
<assign to="RemoteUserId">User_ID</assign>
<assign to="ResponseTimeout">300</assign>
<assign to="RetryDelay">30</assign>
<assign to="SaveTranscript">erroronly</assign>
<assign to="UsingRevealedPasswd">True</assign>
<assign to="." from="*"></assign>
</output>

Enio Basso's profile image
Enio Basso

Open your BP on Graphic Modeler and change the password, GM will do this for you.

Rajasekhar Muthamsetty's profile image
Rajasekhar Muthamsetty

You can try this <assign to="RemotePasswd" from="'Pass&Word!'"</assign> OR <assign to="RemotePasswd" from="&apos;Pass&Word!&apos;"</assign>

Instead of changing the code whenever a partner changes their password, you can consider retrieving it from a cache property file.