For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Enterprise data interface (EDI)

Synchronize cardholder data between Command Centre and external data sources.

EDI allows configuration and synchronization of cardholder data with external systems. Use it to:

  • Replicate a primary database, such as an HR database, into the Command Centre database.

  • Import via .CSV or directly from database tables and views. Both MSSQL and Oracle are supported.

  • Map existing employee fields (personal details, group memberships, licences, and so on) to Command Centre equivalents (Personal Data Fields, Access Groups, Competencies, and so on).

  • Import from a single or multiple sources, and translate third-party values into meaningful descriptions on import.

  • Run manual one-off migrations and automatic updates triggered by changes in the primary employee database.

EDI data sources: a CSV file and a database both feeding cardholder data into Command Centre

Availability and licensing

EDI was introduced in Command Centre v7.20.

License string
Enables
License Information

EnterpriseDataInterface=1

Run EDI manually.

Included with all licenses.

ScheduleEnterpriseDataInterface=1

Schedule an interface or add an interface to an execution sequence.

Purchasable

EDI-CardholderDatabase=1

Import cardholders from a database.

Purchasable

EDI-BookingDatabase=1

Import bookings from a database.

Purchasable

EDI-BookingFile=1

Import bookings from a file.

Purchasable

For more information on configuration and setup, please refer to the Configuration Client User Guide or application help file.

Import cardholders from a Microsoft SQL Server database

Command Centre supports importing cardholders from a Microsoft SQL database. The user guide has no step-by-step instructions for it; its only information is a page listing the fields to fill in:

EDI Data Location fields for a database source, here an Oracle example: Database Type, Server, Username, Password, Database Name, Data Source Name, Image Folder, Log Folder, and the optional stored procedures to run before and after processing; the server address and username are covered

The steps below come from a Gallagher Technical Support test in 2021.

Preparation

  1. Microsoft SQL Server running: on the same machine as Command Centre or a separate one.

  2. Command Centre installed.

  3. Licence strings enabled in the licence: EnterpriseDataInterface=1 and EDI-CardholderDatabase=1.

Steps to import cardholders

  1. Create a new database with a table of the cardholders you want to import. It will be something like this:

    SQL Server Management Studio: the CardholderDB database with the dbo.cardholders table, a SELECT TOP 1000 query on ID, FirstName, LastName, Division, AccessGroup and CardType, and three result rows; the server name and login are covered

    A few things to know:

    • EDI database import does not support Windows Authentication mode only. It only supports SQL Authentication mode. If you want both modes on the SQL Server, change it to Mixed mode first.

    • It depends on the role you log on to the SQL Server with, using SQL Authentication mode. If you log on as an admin, you should not need to change anything. If you log on as a user, enable these permissions for that user: Connect, Select, Control.

      Use an admin logon only to test the connection. For normal use, connect with a dedicated account that has the minimum privileges required, never an administrator account, as Gallagher's Command Centre Hardening Guide advises.

      Database Properties, Permissions page for CardholderDB: the user guest, with the Select permission granted by dbo; the server name and login are covered
    • If the correct permissions are not enabled, the EDI cannot connect, and you may get an error message like this:

      Test connection failed: a network-related or instance-specific error occurred while establishing a connection to SQL Server (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
  2. Create a cardholder table for importing, for example:

    Table rows: ID 10000 to 10002 with FirstName, LastName, Division Root Division, AccessGroup Access 24-7 and CardType Gallagher Card
    Table design: columns ID, FirstName, LastName, Division, AccessGroup and CardType, all of data type ntext

    Note: a column name cannot have a space in it, otherwise it will not work.

    The data type can be ntext, varchar, char or text, depending on how long the strings are. Any Date and Time data must be in d/M/yyyy format to match the Command Centre EDI configuration. Otherwise the EDI fails to run, with an error message like this:

    Alarm properties: Enterprise Data Interface "TestEDI" failed to run; Details: Unexpected exception. Error = Incorrect syntax near ','.
  3. Make sure the column names match the EDI settings. In the database table:

    The table's column headers highlighted: ID, FirstName, LastName, Division, AccessGroup, CardType

    In the EDI Data Format:

    EDI Data Format tab: the fields ID, FirstName, LastName, Division, AccessGroup and CardType

    If a name does not match, the EDI fails to run:

    Alarm properties: Enterprise Data Interface "TestEDI" failed to run; Details: Unexpected exception. Error = Invalid column name 'Division'.
  4. Set up the EDI in Command Centre. On the Data Location tab, select Database from the drop-down box:

    Configure Enterprise Data Interface - TestEDI, Data Location tab: Location type drop-down with Local file, Network Share and Database, Database selected; the server name and username are covered

    The interface changes to this:

    SQL Server Management Studio beside the EDI Data Location tab, with arrows from the CardholderDB database and the dbo.cardholders table to the Server, Database Name and Data Source Name fields; Database Type Microsoft SQL Server, Log Folder C:\GallagherEDI\Failed; the server name and username are covered

    Note: the user guide says: "Enter the server name or IP address into the Server field (maximum 64 characters)".

    The Server field with an IP address in it (covered)

    In the 2021 test, the server's IP address gave this error:

    Test connection failed: a network-related or instance-specific error, error: 40 - Could not open a connection to SQL Server
    Alarm properties: Enterprise Data Interface "TestEDI" failed to run; Details: the same network-related or instance-specific error, error: 40

    Put the full SQL Server name in the Server field instead:

    SQL Server Properties, General page: the Name row (the full SQL Server name, covered), Microsoft SQL Server Express (64-bit), Windows Server 2016 Standard, version 14.0.1000.169
  5. Test the connection. Once this is done correctly, the connection test should succeed:

    EDI Data Location with Microsoft SQL Server, the full server name and username (both covered), Database Name CardholderDB, Data Source Name cardholders; Test Connection shows "Test connection succeeded"
  6. Complete the other EDI configuration as for a normal CSV import: Data Format, Mapping, Operator and Access Groups if you need them. Save it and run it. The cardholders should now be imported into Command Centre:

    Cardholder list with the three test cardholders imported (two other names are covered), and the event Enterprise Data Interface "TestEDI" processed successfully

EDI also underpins the Booking Interface (importing room and resource bookings). See Facility Management Interfaces.


🔗 Related

Last updated

Was this helpful?