Maintenance data import (MDI) allows you to process data generated from third-party providers. Using Azure File Storage, you can import counter-related data (used on objects) automatically to easily import and process counter data at the same time.
In this article, you'll find everything you need to know related to setup in F&O and Azure to get started using Maintenance Data Import.
A few setup steps is required to get started with using the functionality.
To identify the AOT elements related to this functionality, the elements are prefixed with 'DynMDI' word.
This article covers the setup in Azure File Storage and how to configure the connectivity between Azure and F&O.
Once you have created an account, the last step is to create a file share.
To set up the connection between Azure and F&O, a configuration is needed. Go to Enterprise Asset Management > Setup > Data Impot > Azure file storages.
When a new 'Azure file storage' record is created, or 'Azure file storage' hyperlink is clicked, a form opens with the controls described in the table below.
CONTROL NAME |
DESCRIPTION |
Azure file share | Holds a name of Azure file share that has been configured to be connected to by MDI. View the steps in this article to see how to retrieve it. |
Connection string | Holds a string value that is used to connect to Azure storage account, under which 'Azure file share' name has been defined. View the steps in this article to see how to retrieve it. |
Validate |
Once clicked, this button checks:
|
Folder type |
Specifies a type for the given 'Folder name':
|
Folder name | Defines locations of folders in the 3rd party storage that will be used for MDI. The name can also contain '/' or '\' characters to locate a specific folder in a folder hierarchy. |
Identifier mapping is an optional step that is used to make sure that data imported from third-parties is correctly processed in F&O.
To map out internal and external values, go to Enterprise asset management > Setup > Data import > Identifier mappings, and fill in information in the fields:
CONTROL NAME |
DESCRIPTION |
Identifier type |
Specifies the type, either Object or Counter. |
Internal identifier |
Defines the value that the processed data from the third-party provider will have set in F&O. |
External identifier |
Specifies which value from the third-party provider that will be replaced in the processed data:
|
Update internal identifiers | Selecting this button automatically populates the form grid with all the possible mappings for Counters/Objects that can be modified later. |
When importing external data to F&O, you need to configure how the data will be imported and saved, and what type of data you want to import. This can be done by going to Enterprise asset management > Setup > Data Impot > Import message types.
Whenever a new 'Import message type' record is created or 'Message type' hyperlink is clicked, a form opens with controls explained in the table below. Refer to the screenshot below to see the form in F&O.
CONTROL NAME |
DESCRIPTION |
Azure file storage |
It holds a value that represents the data source. See this article to create it. |
Read folder |
Specifies the location of files that hold the data to be imported. If only one folder is defined for the given 'Azure file storage', then this folder will be automatically set in this field. |
Archive folder |
Specifies the location of already imported files. If only one folder is defined for the given 'Azure file storage', then this folder will be automatically set in this field. |
Import parameters > Import class* |
Determines which data import mechanism will be used. The list of options is programmatically defined. |
File format |
Tells the import mechanism how to extract file data. See the screenshot below. If the 'File structure' configuration already exists and the value of the 'File format' field is modified, there will be a pop-up asking whether to continue the operation or not, since the configuration will be deleted once the value of this field is changed. |
Process parameters > Process class* |
Determines which data processing mechanism will be used. The list of options is programmatically defined. |
File structure |
This grid is used to specify the data structure of files. |
Fixed values |
This grid is used to overwrite values in files:
|
Key* |
Informs MDI about what individual kinds of data can be extracted from a file. Note that:
|
Key set |
Allows to form groups of values as one line can contain multiple data records to be imported. |
Order* |
Defines the data value index, for example, this line “objID,5,counterID” has 3 indexes, namely “objID” value is at index 1, “5” is at index 2, etc. Note that:
|
Prefix/Suffix padding characters |
Enables to specify a set of characters that were used to create a uniform length of values:
|
Key start/end position* |
Allows to specify a range of consecutive characters that form a value within a file:
|
Import manually |
Once this button is clicked, a form is opened that allows to upload a single file at a time to the given file storage as well as optionally processing it:
|
The fields marked with an asterisk (*) are mandatory to fill out. Refer to the screenshot below to see an example of the form.
Note,
Currently, the MDI import mechanism can extract file data in a couple of ways. If the file format does not adhere to one of the ways, errors are shown.
In this data format, the distinct values are separated by a 'Delimiter'. An example of the content of a file in this data format could look like the following, assuming that “,” is a delimiter:
objID1,countID1,-5,17/02/2022,08:00:17
objID1,countID1,-06,17/02/2022,08:19:18
objID1,countID2,7.1,17/02/2022,08:19:19
objID2,countID2,10,18/03/2022,15:19:00
If there are multiple groups of data per line, a semicolon ";" is used as a delimiter, and a "-" is used to distinguish between multiple data in the same line:
objID;counterID;-50;00:00:00;2022-01-15;objID;counterID;1.1;2022-01-15 00:00:01
objID;counterID;-49;00:00:03;2022-01-15;objID2
objID;counterID;48;00:00:06;2022-01-15;objID;counterID;-046;2022-01-15 00:00:07
In this data format, the distinct values have fixed text positions. An example of the content of a file in this data format could look like the following:
objIDcounterID-05000:00:002022-01-15objIDcounterID-0012022-01-15 00:00:01
objIDcounterID-04900:00:032022-01-15objID2
objIDcounterID004800:00:062022-01-15objIDcounterID-0462022-01-15 00:00:07
Copyright Dynaway A/S