SQL Routing Import

SQL Routing Import

The integration can use any table. It does not provide an integration table, so you need to create one. In general, the integration table should have a format similar to the Manufacturing Routing Lines table (RT010130). There are only a few fields required to create a new Routing, which means the integration can be performed with a rather simple table. Please see Routing Import Field Map for more information about the fields that can be imported, required fields, and other important information.

Your integration table MUST have the columns shown below! The integration assumes these columns exist, they are hard-coded in the software, and will be used by the software to manage the integration.

The table must have the following columns:

  • ImportID – char(30)
    • ImportID is used to group records together that all belong to one import. For example, you may have a CAD system that regularly exports new Routings and/or updates to existing Routings. All records exported at the same time (i.e. an entire multi-step routing) should have the same ImportID. Using ImportID allows for the integration to handle multiple changes to the same Routing, where ImportID increments for each additional export. ImportID should increment in such a way that when sorted alphanumerically it ensures MFG Import will process records from the staging table in the desired order.
  • ProcBy – char(30)
    • Populate with empty string. This will be populated by MFGImport with the GP User ID when it processes the pending records.
  • Status – int
    • Add new records with Status = 0. When your integration is done adding records and the Routing is complete in the integration table, update all lines with Status = 1.  This ensures that Routing Import does not attempt to process data from the table while data is being added.
      • 0 = Adding records
      • 1 = Ready to process
      • 2 = Processed OK
      • 3 = Error. Check error log.
      • 9999 = Currently being processed

Errors are reported in W7048ImportErr.

In the Routing Import Map window, to map a column from your integration table to a field in the Import Map, select Rule = SOURCE FIELD and put the FIELD NAME as the Source. As shown below, the Work Center ID is mapped to a column in the import table called WCID_I.

Table Description automatically generated