Skip to content

Substring

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
  • JodyC Offline
  • Posts: 1
  • Joined: Fri Nov 04, 2016 12:52 pm

Substring

Post by JodyC »

I've been trying to use the substring function to create a variable but it keeps failing. [8099 - Set Variable] An unexpected error occurred. Function 'Substring': Parameter '1' must be a string value. Function definition: 'Substring(text, startPos[, length]) returns string' Original expression: Substring(CurrentFile, 27,20).

${Substring(CurrentFile, 27,20)}

CurrentFile is a FileList variable.
  • Support_Rick Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: Substring

Post by Support_Rick »

Then apply the "String" function:

${Substring( string(CurrentFile), 27,20)}
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Post Reply