ERP Integration Guide
Connect your Enterprise Resource Planning (ERP) system to MachineMetrics to synchronize work orders, operations, and production data between your business systems and the shop floor.
Overview
MachineMetrics integrates with ERP systems to enable:
- Work Order Synchronization: Import jobs, operations, and routings from your ERP
- Production Data Export: Send completed parts, cycle times, and labor data back to your ERP
- Real-Time Visibility: Track job progress against ERP-planned quantities
- Automated Updates: Eliminate manual data entry with automatic syncing
Supported Integration Methods
| Method | Best For | Complexity |
|---|---|---|
| Auto Importer | Scheduled CSV-based imports | Low |
| REST API | Real-time bidirectional sync | Medium |
| ERP Connectors | Pre-built integrations (contact Sales) | Low |
Getting Started
Prerequisites
Before setting up an ERP integration:
- MachineMetrics Account: Manager or Executive level permissions required
- API Key: Generated from Settings → API Keys with appropriate scopes
- ERP Export Capability: Your ERP must be able to export data as CSV or connect via API
- Network Access: The system running the integration must reach
api.machinemetrics.com(orapi.machinemetrics-us-gov.comfor GovCloud)
API Endpoints
| Environment | API URL |
|---|---|
| Standard | https://api.machinemetrics.com |
| GovCloud | https://api.machinemetrics-us-gov.com |
Method 1: Auto Importer (CSV-Based)
The Auto Importer is the simplest way to sync operations data from your ERP. It monitors a folder for CSV files and automatically uploads them to MachineMetrics.
How It Works
┌─────────────┐ ┌──────────────────┐ ┌────────────────────┐
│ Your ERP │────▶│ Monitored │────▶│ MachineMetrics │
│ System │ │ Folder (CSV) │ │ Cloud │
└─────────────┘ └──────────────────┘ └────────────────────┘
▲
│
Auto Importer
(watches folder)
Setup Instructions
Step 1: Prepare Your Folder Structure
- Create a new folder for your operations data (e.g.,
C:\MachineMetrics\Imports) - Inside that folder, create a subfolder named
operations
Step 2: Generate an API Key
- Navigate to Settings → API Keys in MachineMetrics
- Click Create API Key
- Select the following scopes:
- ERP (required)
- Reporting (required)
- Click Save Changes
- Copy and securely store your API key — it will only be shown once
Step 3: Install the Auto Importer
- Download the Auto Importer executable
- Run
mm-auto-importer.exe - Enter the path to your monitored folder (e.g.,
C:\MachineMetrics\Imports) - Paste your API key when prompted
- Choose an installation directory
- Recommended: Check "Launch on startup" to ensure continuous operation
- Click Install, then Finish
Step 4: Configure Your ERP Export
Set up your ERP to export operations data as CSV files to your monitored folder. Files must follow the MachineMetrics Operations CSV format.
Required CSV columns:
PartNumberOperationNumberWorkcenterName(must match machine name in MachineMetrics)ExpectedPartsExpectedCycleTime(seconds)
Optional columns:
WorkOrderNumberDueDateSetupTimeDescription
Step 5: Verify Operation
- A command prompt window should display "watching path" followed by your folder
- Place a test CSV in your monitored folder
- The file will be renamed with
.donesuffix once successfully uploaded - Check MachineMetrics to confirm the operations appear
Important: Do not close the command prompt window — the Auto Importer stops if the window is closed. Use Windows Task Scheduler for persistent operation (see below).
Running as a Scheduled Task (Recommended)
For servers or workstations that restart:
- Open Task Scheduler from the Start Menu
- Click Create Basic Task
- Name it "MachineMetrics Importer"
- Select trigger: When the computer starts
- Select action: Start a program
- Configure:
- Program/script: Path to
file-uploader.exe - Arguments:
-p C:\Your\Folder\Path -t Your-Api-Key
- Program/script: Path to
- Click Finish
Troubleshooting Auto Importer
| Issue | Solution |
|---|---|
| Authentication errors | Verify API key has ERP and Reporting scopes |
| No data appearing | Check CSV format matches MachineMetrics requirements |
| Files not processed | Confirm folder path is correct in importer config |
| Importer stops running | Set up as Windows Scheduled Task |
Method 2: REST API Integration
For real-time, bidirectional integration, use the MachineMetrics REST API.
API Authentication
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Common API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/reports/production | POST | Retrieve production metrics |
/operations | GET/POST | Manage operations |
/jobs | GET/POST | Manage work orders |
/machines | GET | List machines |
Example: Retrieve Production Data
curl -X POST "https://api.machinemetrics.com/reports/production" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"start": "2024-01-01T00:00:00Z",
"end": "2024-01-31T23:59:59Z",
"data": [
{"metric": "totalParts"},
{"metric": "goodParts"},
{"metric": "rejectedParts"},
{"metric": "timeInCycle"}
],
"groupBy": [
{"group": "machine"},
{"group": "day"}
],
"flatten": true
}'
API Key Scopes
When creating an API key, select scopes based on your integration needs:
| Scope | Permissions |
|---|---|
erp | Read and write access for ERP integration |
reporting | Read access to reportable data |
manager | Full control of manager-level functionality |
manager.read | Read-only access to system settings, jobs, users |
operator.jobs | Job control and access to job lists |
Developer Resources
For complete API documentation, visit: developers.machinemetrics.com
Method 3: Pre-Built ERP Connectors
MachineMetrics offers pre-built connectors for popular ERP systems. These connectors provide turnkey integration with minimal configuration.
Available Connectors
Contact your Solution Delivery Manager (SDM) or Sales for information on connectors for:
- SAP
- Oracle
- Microsoft Dynamics
- Epicor
- JobBOSS
- And more
Requesting a Connector
- Navigate to Settings → Integrations in MachineMetrics
- Find your ERP system in the list
- Click Request Integration
- A MachineMetrics team member will contact you with next steps
ERP Data Studio
ERP Data Studio is the configuration interface in MachineMetrics for viewing, validating, and mapping ERP data. It provides full visibility into how work orders, routings, parts, operations, and labor tickets flow between your ERP and MachineMetrics.
What is ERP Data Studio?
ERP Data Studio enables you to:
- View and validate incoming ERP data
- Configure routing rules and part associations
- Map work centers to MachineMetrics machine groups
- Inspect labor tickets captured on the shop floor
- Troubleshoot routing or scheduling alignment issues
It's particularly useful during:
- ERP onboarding and initial setup
- Connector maintenance
- Diagnosing issues with Schedule Intelligence
- Troubleshooting operator job selection problems
Access Requirements
| Requirement | Details |
|---|---|
| Module | ERP Integration (any supported connector) |
| Default Access | MachineMetrics internal team or partner integrator |
| Customer Access | Read-only access may be enabled on request |
Note: Contact your Solution Delivery Manager (SDM) to request access to ERP Data Studio.
ERP Data Studio Views
ERP Data Studio displays ERP-connected production data across five key views:
1. Work Orders View
Displays job information imported from your ERP:
| Field | Description |
|---|---|
| Job ID | Work order or job number from ERP |
| Part Number | Associated part/item number |
| Scheduled Quantity | Expected quantity to produce |
| Due Date | Job due date from ERP |
| Status | Current job status (Released, In Progress, Complete) |
| Routing | Assigned routing/operation sequence |
Use this view to verify:
- Jobs are flowing from ERP correctly
- Part numbers and routings are assigned
- Expected quantities and due dates are accurate
2. Operations View
Details individual routing steps:
| Field | Description |
|---|---|
| Operation Number | Step sequence number |
| Operation Name | Description of the operation |
| Expected Setup Time | Planned setup duration |
| Expected Run Time | Planned cycle/run time |
| Assigned Machine | ERP-defined work center |
| Machine Group | Mapped MachineMetrics machine group |
Use this view to verify:
- Every operation step has a valid machine group
- Sequences and operation numbers are present
- Routings match the expected process flow
3. Parts View
Lists all parts synchronized from your ERP:
| Field | Description |
|---|---|
| Part Number | Unique part identifier |
| Part Name | Part description/name |
| Revision | Part revision level |
| Description | Additional details |
| Active Routings | Number of associated routings |
4. Machines View (Work Center Mapping)
This is where you map ERP work centers to MachineMetrics machine groups.
| ERP Field | MachineMetrics Field | Description |
|---|---|---|
| Work Center ID | Machine Group | ERP resource identifier mapped to MM group |
| Work Center Name | Machine Name | Human-readable name |
| Asset Number | Machine ID | Optional asset/equipment number |
Mapping Work Centers to Machine Groups:
- Open ERP Data Studio → Machines tab
- Find the ERP work center in the list
- Click the Machine Group dropdown
- Select the corresponding MachineMetrics machine group
- Repeat for all work centers
Example Mapping:
| ERP Work Center | ERP Asset # | MachineMetrics Machine Group |
|---|---|---|
| WC-MILL-01 | 10045 | CNC Mill Cell A |
| WC-MILL-02 | 10046 | CNC Mill Cell A |
| WC-LATHE-01 | 10050 | Lathe Cell |
| WC-INSPECT | 10060 | Inspection |
Important: Work center names in your ERP must be mapped to machine groups in MachineMetrics for job dispatching and scheduling to work correctly.
5. Labor Tickets View
Displays labor records generated by operator activity:
| Field | Description |
|---|---|
| Operator Name | Who performed the work |
| Work Order ID | Associated job |
| Operation | Operation step worked on |
| Part | Part being produced |
| Duration | Time spent on activity |
| Start/End Time | When work occurred |
| Machine | Machine used |
Use this view to:
- Validate time tracking for payroll or costing
- Audit labor attribution for completed jobs
- Understand shift-level activity across jobs
- Verify data before syncing back to ERP
Note: Labor tickets can be exported via API or included in downstream ERP syncs for systems that support labor data (e.g., Epicor, Visual).
How to Use ERP Data Studio
View and Validate Incoming Data
- Open ERP Data Studio from the MachineMetrics admin interface
- Navigate to Work Orders view
- Verify:
- Jobs are appearing from ERP
- Part numbers and routings are correctly assigned
- Quantities and due dates match ERP
- Use filters to find specific jobs, parts, or date ranges
Confirm Routing Logic for Scheduling
- Go to Operations tab
- Select a work order to view its routing
- For each operation step, verify:
- Machine Group is assigned (not blank)
- Operation Number is correct for sequencing
- Expected times are reasonable
- If machine group is missing, check the Machines tab mapping
Review Labor Tickets
- Go to Labor Tickets tab
- Filter by:
- Date range
- Operator name
- Work order ID
- Machine group
- Review tickets for accuracy
- Export data for payroll or ERP sync as needed
Troubleshooting ERP Data Mapping
| Issue | Possible Cause | Solution |
|---|---|---|
| Work orders not appearing | ERP sync not running | Check connector status, verify ERP export |
| Operations missing machine group | Work center not mapped | Map work center in Machines tab |
| Labor tickets not showing | Labor tracking disabled | Enable labor tracking on ShopPulse Interface |
| Wrong machine assigned | Mapping incorrect | Update work center → machine group mapping |
| Duplicate operations | Multiple ERP syncs | Check for duplicate work orders in ERP |
ERP Data Studio FAQs
Q: Can I make changes directly in ERP Data Studio?
A: No. ERP Data Studio is read-only. All changes must be made in your ERP system and will sync to MachineMetrics on the next update cycle.
Q: Why don't I see labor data for certain jobs?
A: Labor tracking must be:
- Enabled on the ShopPulse Interface
- Supported by your ERP connector
- Operators must be logging in and tracking work
Q: Can I filter by operator or machine in Labor Tickets?
A: Yes. You can filter by operator name, part, machine group, work order ID, or date range.
Q: How often does data sync from my ERP?
A: Sync frequency depends on your integration method:
- Auto Importer: When files are placed in the monitored folder
- API: Real-time or on your scheduled interval
- Pre-built Connectors: Typically every 5-15 minutes (configurable)
Q: What if my ERP uses different field names?
A: Work with your MachineMetrics implementation team to configure field mapping during connector setup.
Best Practices for ERP Data Mapping
| Practice | Benefit |
|---|---|
| Use consistent naming | Work center names should match across ERP and MachineMetrics |
| Map all work centers | Ensures all operations can be dispatched |
| Keep ERP data clean | Archive inactive jobs and parts in ERP |
| Use revision control | Manage routing and part changes systematically |
| Validate after ERP changes | Check ERP Data Studio after routing updates |
| Review labor tickets weekly | Catch tracking issues early |
Data Flow Best Practices
Inbound (ERP → MachineMetrics)
- Sync Frequency: Daily or per-shift for batch operations; real-time for active job tracking
- Data Validation: Ensure workcenter names in your ERP match machine names in MachineMetrics exactly
- Unique Identifiers: Use consistent part numbers and operation numbers across systems
Outbound (MachineMetrics → ERP)
- Production Counts: Use the API to pull good parts, rejected parts, and cycle times
- Labor Data: Retrieve operator run data for labor ticket updates
- Downtime: Export categorized downtime for root cause analysis in your ERP
Related Articles
- API Integration Guide — Detailed API usage with code examples
- Third-Party App Integrations — Connect to MaintainX, Make.com, and more
- Webhooks & Automation — Trigger external actions from MachineMetrics events
- Production Analytics Guide — Understanding operations and production runs
- Machine Settings Guide — Configure machine groups for ERP mapping
Getting Help
- ERP Data Studio Access: Contact your Solution Delivery Manager (SDM)
- Connector Setup: Email support@machinemetrics.com
- API Documentation: developers.machinemetrics.com
- Max AI: Ask "How do I map my ERP work centers to MachineMetrics?"