Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

After using ToString, formula tool won't recognize the field as a string

rileyspo42
6 - Meteoroid

I've seen this issue on a handful of workflows in the past, all the upstream tools show the Basis Date field as a V_WString but when attempting to perform a string function, the tool says it can't because the field is an integer. Anyone seen this before?

 

rileyspo42_0-1751314530008.pngrileyspo42_1-1751314584175.png

 

2 REPLIES 2
binu_acs
21 - Polaris

@rileyspo42 use Right function instead of TrimRight() function, 

In Alteryx, the TrimRight function removes specified characters from the end (right side) of a string. Its syntax is:

TrimRight(String, y)

  • String: The input string to be trimmed.
  • y: The character(s) to remove from the end of the string. If not specified, it defaults to removing whitespace.

 

binuacs_0-1751316167945.png

 

Yogesh1795
8 - Asteroid

@rileyspo42 you can use a select tool to change datatype of basic correct to v_string, or you can use Tostring function in formula tool  

Labels
Top Solution Authors