Solutions
...
Litmus Production Record Tag C...
Creating a tag configuration u...

4. Verifying the data model and uploading it

12min

To upload a tag configuration to Litmus Production Record Database or, if in offline mode, create a SQL file, the Configurator will always verify the configuration done by the user first to make sure that on a technical level all values are correctly formatted.

Document image


NOTE: The Configurator will not verify if the tag configuration makes sense or configured correctly according to what the user wanted to define.

Verifying the Configuration

The configurator will always verify the configuration first before publishing.

Users can run the verification also as a stand alone operation without publishing the data model using the Verify Configuration button.

Document image


In Online Modus, the user can be prompted multiple times, throughout the verification, to provide the SQL Authenticated Login user name and password.

Document image


Test for invalid ASCII characters

The verification process will verify in the sheets:

  • Tags
  • Items

if any entry has invalid ASCII characters. To learn more about which ASCII characters are allowed, review the section Restrictions on ASCII characters allowed to be used.

In the case that invalid characters are found, a prompt is shown to the user to inform them about the fact and request from the user to select the next action.

Document image


Users can either stop the verification using the No option or replace all invalid characters with and underscore "_".

Trim long strings

The configurator also will auto trim all strings which exceed the allowed maximum length.

Sheet

String

Maximum Length

Tags

Device Name

50

Tags

Tag Name

50

Items

Item Name

50

Items

Item Description

256

Items

Initial Value

(if Value Type is isString)

256



Verify every Item has a Value Type set

The Configurator will verify that every Item has a value type set.

If an Item does have a missing value type, the user will be shown a prompt.

Document image


The user can define if they want to stop the verification using the Yes option or set the default Value type of isString using the No option.

Verify every Item has an Meta Data setting

The Configurator will verify that every Item has a value in the column labeled Is Meta Data?.

If an Item has no Meta Data setting, the user will be shown a prompt.

Document image


The user can define if they want to stop the verification using the Yes option or set the default value of No using the No option.

Verify that Initial Value is correct for its Value Type

The Configurator will verify that if an Initial Value is set, is correctly set for its Value Type.

If an Item has an Initial Value which does not correspond with its Value Type, the user will be shown a prompt.

Document image


The user can define if they want to stop the verification using the Yes option or set the default value of not setting an Initial Value using the No option.

Uploading the tag configuration to Litmus Production Record Database

To upload the configuration for new tags or update an existing tags, the user will need to have a connection to the SQL Server as well as the databases LE_ProductionRecord in place.

To upload the configuration, the user does press the button Verify and Upload.

Document image


Throughout the process, the user can be prompted multiple times, throughout the verification, to provide the SQL Authenticated Login user name and password.

Document image


The Configurator will first run the verification process which was explained in the previous section.

Progress is shown by a progress bar.

Document image


Only if the Verification has found no errors or was stopped, will the configurator upload the configuration to Litmus Production Record Database.

Up on completing the upload, the user will be shown a summary of the SQL logs to be able to review if all items where correctly added to Litmus Production Record Database or if any errors occurred on the SQL side.

Document image


This log extract can be saved as a file using the Save Output to File button. The file will be stored in the same folder, where the file Litmus_Production_Record_Tag_Configurator_V1.0.0.xlsm is located. The name includes the name of the user as well as the date and time of the upload.

Document image


Close SQL Out Put window to finish the configuration.

Creating a SQL file in Offline Mode

In offline mode, the user can create a SQL file which can be later executed using applications like SQL Management studio to create a new tags or update an existing tags in Litmus Production Record Database.

To create the SQL file, the user does press the button Verify and Upload.

Document image


The Configurator will first run the verification process which was explained in the previous section.

Only if the Verification has found no errors or was stopped, will the configurator create the content of the file.

The user is then prompted to select the path where the file is stored as well as being able to modify the file name before saving it.

Document image


The result is a file with the ending ".sql".

Document image


Which can be executed using applications like SQL Server Management Studio.

Document image