Skip to main content

Install and deploy

Lattice comes as compiled modules. Add them to your source control and deploy them to your environment with your next build, as you deploy your own code. The package includes a licensing module. Deploy it with the product and do not change it. The download, Lattice_BinaryModules_<version>.zip (for example Lattice_BinaryModules_10.0.49.1.1.N.zip), is built for one Finance and Operations version and holds the two compiled module folders with README-Lattice.txt and LICENSE.txt. The work that is specific to Lattice comes after the deployment. The shared install guide has the install steps. This page summarizes what is specific to Lattice and links to the Deployment guide for the detail.

Before you start: the prerequisites, Lattice_BinaryModules_<version>.zip for the environment's Finance and Operations version, from your account at magicite.tech (see Downloads), and a maintenance window, because the deployment synchronizes the database.

Choose how you install​

Follow the route for your environment in the install guide:

  • Sandbox, UAT and production (managed in Lifecycle Services or the Power Platform admin center): add Lattice to your source control and deploy it with your next build. The Lattice detail is in Keep the compiled modules in your source control.
  • Unified developer environment: extract the two folders to a folder of your choice on the machine. In Visual Studio, add that folder under Dynamics 365 > Configure Metadata > Folders for reference metadata, refresh the model list, and deploy both modules with Deploy Models to Online Environment. The deploy synchronizes the database for what it deploys; if it reports DDL errors, synchronize the database manually as well.
  • Development VM: get both folders from your source control into PackagesLocalDirectory, then synchronize the database from Visual Studio.

Before you deploy a new release, read the Changelog for changes to the contracts you use.

What the deployment does​

  1. Installs the Lattice module and its licensing module, with the libraries Lattice uses for file ingestion and for the OpenAPI and Postman generators, so there is nothing else to copy to the servers.
  2. Synchronizes the database, which creates or updates the Lattice tables. A deployment of your build through Lifecycle Services or the Power Platform admin center does this for you. On a unified developer environment, the deploy of the models synchronizes the database (if it reports DDL errors, synchronize it manually as well); on a development VM you synchronize from Visual Studio.
  3. Deploys the 14 Lattice service groups (MGCLattice...ServiceGroup). They have no setup page.
  4. Registers the Lattice background processes with process automation, during the deployment's database synchronization. A synchronization from Visual Studio does not do this step (what to do on a development VM).
  5. When the servers start, Lattice registers itself with the licensing module and schedules the one-time batch job Check in the Lattice license with the licensing service (environment start). It runs as Admin, starts at once and needs a running batch server. An environment start schedules one such job: a server that starts while one is waiting or running, or within 15 minutes of the last one, schedules nothing.

After the deployment​

Do these in order after every deployment, the first one included.

  1. Open https://<your-environment>/api/services in a browser signed in to the environment and check that the 14 Lattice service groups are listed (the list).
  2. Refresh the service catalog, the OData catalog and the business event catalog: I want to refresh the explorers and the event catalog after a deployment. Until the service catalog is refreshed, the Service test console cannot run an operation.
  3. Check that the background processes are listed with Enabled selected: I want to check that the Lattice background processes are running.
  4. If you use the Lattice entities in data projects, refresh the data management entity list: I want to make data management see new entity fields after a deployment.
  5. Open System administration > Workspaces > Integration operations and read the message bar. No license warning is what you want; see License behavior for what a warning means.

Then give people their roles: Security and access.

What an update keeps​

A new release goes in the same way: replace both module folders with the new zip's (built for the environment's version), commit, and deploy with your next build. Your settings stay: the deployment adds tables and fields and leaves your rows alone.

  • An asynchronous operation you turned off on Async operation registry stays off. Operations that a release adds are added to the registry, switched on, the first time the registry is used.
  • A documentation address you entered on Documentation help survives the update.
  • Each deployment registers the background processes again. Each registration keeps the interval, next execution and owner you set. A Lattice background process cannot be switched off.

Follow Take a Lattice or Finance and Operations update for the full sequence, and Model version updates for the detail. To remove Lattice, see Removing it.

Permissions​

  • Deploying needs commit rights to your repository and the rights you use for your own releases.
  • The checks after the deployment need the Integration administrator role for the Lattice pages and System administrator for Process automations and data management's Framework parameters.

If it goes wrong​

SymptomSee
A service group is missing from /api/services, or a service URL returns HTTP 404Service group not deployed
The database synchronization failed during the deploymentDatabase synchronization errors
No Lattice process on the Background processes tabTroubleshoot the setup
The Service test console answers "No metadata found for operation ..."Troubleshoot the setup