Skip to main content

What Lattice does at server startup

What it does. Each time a Finance and Operations server starts, Lattice runs a few short setup steps: it registers Lattice for licensing and schedules its check-in, makes sure Lattice's set-based import entities are registered in data management, and register Lattice's pages for the Help icon. Runs: at server startup, on every server of the environment. Who looks after it: System administrator.

Purpose​

Some setup has to be in place before anyone uses Lattice, and some has to be repeated after every deployment or restart: the license check-in that records the installed version, and the data management registration of entities that a deployment may have added or changed. Doing it at startup means nobody has to remember it.

These steps are quick and run on the starting server. Anything slow, such as the license check-in itself, is handed to the batch service as a job.

When it runs​

  • Each time a server starts: after a deployment, a restart of the environment, or an application recycle.
  • On every server. The steps are written so that several servers starting together do the work once: the second server finds the check-in already scheduled and the entities already registered.
  • Not at database synchronization. The Lattice background processes are registered by the deployment's database synchronization, not at startup; see Lattice Async Operation Processing and the other background process pages.

Configuration and scheduling​

There is nothing to schedule, and the steps cannot be switched off. Two settings change their effect:

SettingWhereDefault
The address the Help icon opensSystem administration > Setup > Magicite > Documentation helphttps://go.magicite.tech/documentation
Set-based processing of a Lattice set-based entityData management workspace, Data entities, on the entityOn, for a registration created at startup

How it works​

At each start, each of these runs on its own, and an error in one does not stop the others or the server:

  1. License registration and check-in. 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), unless one is already waiting or running, or one started in the last 15 minutes. See Lattice license check-in.
  2. Licensing module. The package includes a licensing module. Deploy it with the product and do not change it.
  3. Set-based import entities. For each of Lattice's 15 set-based import entities, Lattice checks the data management registration. A missing registration is created, with Set-based processing on, the way a database synchronization would have created it. An existing registration keeps its settings, including Set-based processing if you turned it off; only when the entity's staging table was replaced by a deployment is the registration pointed at the new staging table, keeping its data projects' mappings.
  4. Help icon. Lattice registers its pages on Documentation help, which puts a Help icon on every Lattice page that opens that page's documentation. The default address is written only when the address is blank, or still holds Lattice's previous default, so an address you entered is kept.

Before it can run​

  • Nothing beyond deploying Lattice. The licensing module is part of every Lattice download.
  • The check-in job that the first step schedules needs the batch service and an enabled Admin user to run; see Lattice license check-in.

Inputs and outputs​

StepWrites
License registration and check-inLattice's registration with the licensing module; the one-time check-in job
Set-based import entitiesNew data management registrations for missing Lattice set-based entities; a corrected staging table on an existing registration
Help iconLattice's entry on Documentation help, with the default address when none is set

No business data is changed and no business event is raised.

Monitoring and logs​

The startup steps write no message anyone sees. Check their effect instead:

  • System administration > Inquiries > Batch jobs: after a start, the check-in job named in step 1. The Lattice job is removed once it has run; its log is under Batch job history.
  • Data management workspace, Data entities: the Lattice set-based entities are listed.
  • Any Lattice page: the Help icon is on the command bar.

When it fails​

Every step catches its own errors and says nothing, so a failure shows only as something missing:

SymptomCauseFix
No license check-in job after a restartScheduling failed, or a check-in started less than 15 minutes earlierRun System administration > Setup > Magicite > License refresh. The licensing module also checks in once a day
A Lattice set-based entity is missing from Data entitiesThe registration could not be created at startup or by the synchronizationRefresh the entity list in the data management framework parameters, or restart the servers
No Help icon on the Lattice pagesThe registration failed, or Show the Help icon is cleared on the Lattice row of Documentation helpCheck Documentation help; the next start registers again

Effect on the rest of Lattice​

  • Nothing waits for these steps: the server starts whether they succeed or not.
  • Restarting the servers is a safe way to repeat them, for example to schedule a license check-in or to repair a set-based entity's registration.
  • A metadata refresh is not part of startup. After a deployment, run the service and OData metadata refresh yourself.