KNOWLEDGE BASE

Unable to use Field Names or Calculations as Patterns in Regular Expressions


Published: 18 Jun 2015
Last Modified Date: 07 Mar 2017

Issue

When attempting to write a calculated field using Regular Expressions or attempting to replace a constant with a field name or formula referencing a field name, it provides no error in the calculation editor, but produces an error similar to Tableau Data Engine Error: 4: PrimitiveExp::MakePrimitive: map_rcontains_usr4_col_usr4_col

Environment

  • Tableau Desktop 9.0.2
  • Tableau Desktop 10.2
  • Tableau Data Engine

Cause

The ability to use Field Names or Calculations as Patterns in Regular Expressions is not currently built into Tableau Desktop.
Did this article resolve the issue?