Version 3.8 : Custom C# formulas migration

How to migrate your custom formulas to work with v3.8.4 version

Written By Nikolas Ethoré (Super Administrator)

Updated at November 18th, 2021

Update my custom formulas to work with the 3.8.4 engine

Two elements should be changed to work with the latest version.

  • If x is an object, never use x.ToString(), use the function GetString(x)
  • If a variable vg is a VirtualGrid, don't use vg[row, col], use vg.Cell(row, col) or vg.ReadValue(row, col)

!!! These changes are mandatory for your formulas to compile. !!!

Milliman Mind team will automatically update your existing formulas to the new syntax, but be careful when writing new ones.

Of course, we are available by mail or through the built-in chat if you encounter any problem with this migration.

Second step: Update my project with the latest version of the formula

Custom formulas are stored at the project level, and after migration to v3.8.4, they will not run anymore even if they have been migrated through new syntax.

It is just because they need to be updated to the migrated version, with the new syntax. To do that, just follow this step by step:

Go to Formulas manager, on the left action bar. It should blink in orange.

Then click on the Update all formulas orange button.

Your formula will be updated to the latest version and then compile correcly.