BeyondERP.Newsletter
Menu

Setup step on the Manufacturing execution system integration page · Production control

Monitor MES integration messages

Use this page to follow the messages a third-party MES sends and to fix and reprocess the ones that fail.

See how to set it up Back to Production control

Used by
Shop supervisor
Business process
Consume resources
Menu item
JmgMES3PMessageProcessorMessage
Main table
JmgMES3PMessage
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “A failed MES message can be fixed and reprocessed”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA monitoring page that lists the messages received from third-party manufacturing execution systems (MES) through the MES integration API, so you can follow their processing and fix any that fail.
What you do hereUse this page to review the incoming MES messages for starting production orders, reporting produced or scrapped quantities, material and time consumption and ending orders, and to find, fix and reprocess messages that have failed.
ExampleFor example, when material consumption is registered in the MES, the resulting message posts the same consumption in Supply Chain Management so that inventory stays current for planning and sales.
Manufacturing execution system integration page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processRun production operations › Consume resources
Menu pathProduction control › Setup › Manufacturing execution › Manufacturing execution system integration
Set up firstLicense configuration Microsoft Learn
Used next byProduction orders Microsoft Learn
Related pagesMessage processor messages Microsoft Learn Message queue setup Microsoft Learn
In this process Synchronize the job table · Check time posted on operations
End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Setup steps on this page

Monitor MES integration messages

Use this page to follow the messages a third-party MES sends and to fix and reprocess the ones that fail.

Steps from Microsoft

  1. Go to Production control > Setup > Manufacturing execution > Manufacturing execution system integration.
  2. Filter Message state on Failed to see the messages the batch job couldn't process after three attempts.
  3. Select a message and open the Log tab to read why it failed, and the Message content tab to see what the MES sent.
  4. Fix the cause in Supply Chain Management, for example the production order status or a missing journal name, then select Process, or Cancel the message if the MES will resend it.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Message typeThe type of message received from the MES, such as start, report as finished, picking list, route card or end production order.Microsoft Learn ProdProductionOrderReportFinished
Message queueThe queue the message is processed in; MES messages are in the Manufacturing Execution 3rd Party queue.Microsoft Learn Manufacturing Execution 3rd Party
Message stateQueued, Processed, Canceled or Failed. A message is set to Failed after three processing attempts.Microsoft Learn Failed
Message contentA filter that searches the content of the messages, for example a production order number.Microsoft Learn P000123

Common errors and fixes

MessageWhat to do
MES messages stay Queued and nothing is postedMessages are processed by the message processor batch job. Set up a recurring Message processor batch job for the Manufacturing Execution 3rd Party queue. Microsoft Learn
A message is set to FailedOpen the Log tab, fix the cause in Supply Chain Management and select Process. The batch job tries each message three times before it sets it to Failed. Microsoft Learn

Test checklist

  1. Check the Time and attendance license key is enabled on License configuration.
  2. Send a ProdProductionOrderStart message for a released production order to /api/services/SysMessageServices/SysMessageService/SendMessage.
  3. Open Manufacturing execution systems integration and check the message is processed and the order is started.
  4. Send a ProdProductionOrderReportFinished message with a good quantity and check the quantity is reported as finished.
  5. Send a message with an unknown order number and check it ends in Failed status after retries.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Monitor MES integration messagesA recurring message processor batch job for the Manufacturing Execution 3rd Party queue, an alert on Failed messages, and cleanup of processed messages set on Message queue setupLearn says messages are processed by batch, failed messages need action, alerts can notify the person responsible, and processed messages should be cleaned up to keep performance.How are failed MES messages followed up?Nobody watching Failed messages. Consumption or feedback from the MES then never reaches inventory and costing.Test: A failed MES message can be fixed and reprocessed

Feature management and licence

Licence or add-inIn this system 1 role can open this page, among them Shop supervisor.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: each message is sent with a company ID and is processed in that legal entity. Microsoft Learn
Can it be undoneReversible: Failed messages can be fixed and processed again; canceled ones can be queued again.
If you change it laterProcessed and cancelled MES messages build up over time and should be cleaned up periodically, otherwise performance and data management can suffer. Microsoft Learn
Technical architect

6Technical

Menu itemJmgMES3PMessageProcessorMessage Checked in Dynamics 365
FormJmgMES3PMessageProcessorMessage Checked in Dynamics 365
TableJmgMES3PMessageShown as “MESSAGES” in Record infoChecked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleShop supervisorJmgShopSupervisor
    • DutyManage manufacturing execution integrationJmgMESIntegrationMaintain
      • PrivilegeMaintain incoming manufacturing execution messagesJmgMES3PMessageProcessorMessageMaintain
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itShop supervisor JmgShopSupervisorGive people one of these roles. On this system, 1 role can open this page.Checked in Dynamics 365
Actions on the page(Action Pane without tabs): Process, Edit, Cancel, QueueChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=JmgMES3PMessageProcessorMessage
Data migrationLoad order: Manufacturing execution system integration has no data entity in Data management, so its messages can't be loaded from a file. They are created by the MES through the API (SysMessageService); reference data goes to the MES through data entities or OData.Microsoft Learn
Everyone

8Sources

To cite this step: PC-RSET-110, Monitor MES integration messages. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PC-RSET-110