Expand my Community achievements bar.

Workfront is not recognizing my calculated expression

Avatar

Level 4

I've entered the following expression in a calculated field to remove pieces of text/numbers from another custom text field, but I get the following error message:

 

"This is an invalid custom expression, please try again."

 

LEFT({DE:Custom Field Placeholder}, 7), & MID({DE:Custom Field Placeholder}, 9, LEN({DE:Custom Field Placeholder}) -8)
 
Am I missing anything in particular?  Thought I entered it correctly.
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi, I think most of your functions and syntax will come from here:

https://experienceleague.adobe.com/en/docs/workfront/using/reporting/reports/calculated-custom-data/...

 

I'm not seeing any "MID" function, so can you please post a link to where you found that one?

 

Also, I don't see anything on that page about an ampersand. It's likely that you were trying to merge two bits of text together, for which you would probably want to use the CONCAT function.

Avatar

Community Advisor

@OmahaOmaha 

  • you have a comma after the LEFT expression
  • instead of & you want a plus sign or, as @skyehansen recommended, use the concat function
  • there is no MID function. Try the SUBSTR instead