Companion for Creatio

It works on dev but not on test: comparing Creatio environments

By Smit Suthar · · 3 min read
Short answer

When Creatio behaves differently on two environments, the cause is almost always one of four things: a package version, a system setting, a feature toggle, or lookup data. Compare them side by side rather than guessing. clio's save-state and show-diff compare environment state, and clio set-feature Code 1 -e test switches a feature toggle.

"It works on dev" is the most expensive sentence in Creatio projects. Both environments run the same product, so the difference is somewhere in their configuration or data, and clicking through two browser tabs to find it can take an afternoon. The fix is to compare the right things systematically.

The four usual suspects

  1. Packages: a package is missing on test, has a different version, or a schema inside it differs.
  2. System settings: a value such as an integration URL, a default or a limit was set on dev and never on test.
  3. Feature toggles: Creatio turns behaviour on and off with features, and a feature switched on for your user on dev may be off on test.
  4. Lookup data: a value a process or rule depends on exists on dev only, or has a different Id.

Feature toggles in Creatio

A feature has a code, a default state, and overrides for particular users or roles. That is why one person sees a behaviour and another doesn't on the same environment. To switch one with clio:

clio set-feature UsrNewOrderFlow 1 -e test
clio set-feature UsrNewOrderFlow 0 -e test

1 turns it on, 0 off, and the feature is created if it doesn't exist. Check clio set-feature --help for the options that control which users or roles it applies to. Exit code 0 means the state reached the environment.

Comparing with clio

Comparing in one screen

Companion for Creatio has two screens for this:

Compare screen in Companion for Creatio showing differences between two environments by category
Compare: differences by category, with each side's value and a status per row.

Once you have found the difference, fix it at the source: deploy the missing package, migrate the lookup data, or set the feature, and then compare again to confirm the environments match.

Do it from one window

Companion for Creatio is a free desktop app for Windows and macOS that runs these clio steps for you, as jobs you can watch and cancel.

Download free