Inside Activate
...
Troubleshooting
Using Regex In Scripts
5 min
overview after upgrading to activate v8, developers may encounter a "forward to assembly" error when attempting to use regular expressions in scripts this occurs because the required net library is not automatically imported into the script context symptoms you may see an error similar to "forwarded to assembly system text regularexpressions" this error typically appears at compile time when a script references regex or related classes cause activate v8 requires explicit imports for certain net libraries when used in scripts the system text regularexpressions namespace is not available unless it is explicitly imported resolution to resolve the issue, add the required import and using statements to the script add the import directive at the top of the script, add the following import directive //@import system text regularexpressions; add the using statement add the corresponding using statement so the regex classes can be referenced using system text regularexpressions; once both statements are present, the script will compile and regex functionality can be used as expected notes and considerations this behaviour is specific to activate v8 and later review existing scripts after upgrade for missing imports similar errors may occur with other namespaces that are not implicitly available