|
1 | 1 | --- |
2 | | -title: Conversion of Maintenance Schedule to Work Orders Is Failing |
3 | | -description: Provides a resolution to the failing conversion of Maintenance Schedule lines to Work Orders in Microsoft Dynamics 365 Supply Chain Management. |
| 2 | +title: Conversion of Maintenance Schedule to Work Orders Fails |
| 3 | +description: Solves the errors that prevent you from creating work orders based on maintenance schedule in Microsoft Dynamics 365 Supply Chain Management. |
4 | 4 | author: sorenbacker2 |
5 | 5 | ms.author: sorenba |
6 | | -ms.date: 02/27/2025 |
| 6 | +ms.date: 03/03/2025 |
7 | 7 | ms.custom: sap:Asset management\Issues with asset management |
8 | 8 | --- |
9 | | -# Conversion of maintenance schedule to work orders is failing |
| 9 | +# Can't create work orders based on your maintenance schedule |
10 | 10 |
|
11 | | -This article provides the setup steps to ensure the conversion of maintenance schedule lines into work orders isn't failing with errors related to number sequence setup in Microsoft Dynamics 365 Supply Chain Management. |
| 11 | +This article provides the setup steps to ensure the conversion of maintenance schedule lines to work orders isn't failing due to errors related to number sequence setup in Microsoft Dynamics 365 Supply Chain Management. |
12 | 12 |
|
13 | 13 | ## Symptoms |
14 | 14 |
|
15 | | -From **Open maintenance schedule lines** in Asset Management module a user selects a subset of lines. Then **New** > **Work order** is selected from the action pane, and in the **Create work orders** dialogue anything that will result in multiple work orders is selected. However, after selecting **OK**, instead of creating a given number of work orders, an error message appears, saying that a number sequence has been exceeded or that a given number does not match a given format. This blocks the further process. |
| 15 | +When you try to create work oders for the schedule items selected by using the [Open maintenance schedule lines](/dynamics365/supply-chain/asset-management/preventive-and-reactive-maintenance/creating-work-orders#create-work-orders-based-on-your-maintenance-schedule) in **Asset Management**, an error occurs after you select **OK** to create work orders according to your settings in the **Create work orders** dialog. The error indicates that a number sequence has been exceeded or that a given number doesn't match a given format. This issue blocks the further process. |
16 | 16 |
|
17 | 17 | ## Cause |
18 | 18 |
|
19 | | -This issue is related to the setup of a number sequence. The core issue is that the actual number sequence outgrows the configured range of the work order number sequence. |
| 19 | +This issue is caused by the setup of a number sequence. Specifically, the actual number sequence exceeds the configured range of the work order number sequence. |
20 | 20 |
|
21 | 21 | ## Resolution |
22 | 22 |
|
23 | | -To ensure the conversion of maintenance schedule lines into work orders isn't failing with blocking errors related to number sequence setup, follow these steps to set up this Number sequence, thus avoiding the blocking error. |
| 23 | +To resolve the issue and ensure the successful conversion of maintenance schedule lines to work orders, follow these steps to properly set up the number sequence: |
24 | 24 |
|
25 | | -1. Go to **Asset management module** > **Setup** > **Asset management parameters**. |
| 25 | +1. Go to **Asset management module** > **Setup** > **Asset management parameters**. |
| 26 | +2. Select the **Number sequences** FastTab. |
| 27 | +3. Select **Work order** in the **Reference** column, and then select the corresponding link in the **Number sequence code** column. |
26 | 28 |
|
27 | | -2. Select the fast tab **Number sequences**. |
| 29 | +4. Go to the **Segments** FastTab. Find the line where the **Segment** column equals *Alphanumeric*. Ensure the corresponding field in the **Value** column has enough hash tags to match the desired length of the variable numeric part of the work order number sequence. |
28 | 30 |
|
29 | | -3. Select **Work order** in the **Reference** column, and then select the corresponding link in the **Number sequence code** column. |
| 31 | +5. Go to the **General** FastTab. In the **Number allocation** field group, ensure that the **Largest** number matches (but is included in) the length of the variable numeric part of the work order number sequence set above. In other words, if the alphanumeric value from step 4 equals *######*, the largest number could be set as *999999*. Also, ensure that the number in the **Next** field is included in the range of the number sequence mentioned in step 4 and 5. |
30 | 32 |
|
31 | | -4. Go to the **Segments** FastTab. Find the line where the **Segment** column equals *Alphanumeric*. Make sure the corresponding field in the **Value** column has enough hash tags to match the desired length of the variable numeric part of the work order number sequence. |
| 33 | +6. Select **Save** to save the changes to the number sequence. |
32 | 34 |
|
33 | | -5. Go to the **General** fast tab. In the **Number allocation** field group, make sure that the **Largest** number matches (but is included in) the length of the variable numeric part of the work order number sequence set above (i.e. if the alphanumeric value from step 4 equals *######* the largest number could be set as *999999*). Also make sure that the number in the **Next** field is included in the range of the number sequence (re. step 4 and 5 here). |
34 | | - |
35 | | -6. Select **Save** to save the changes to the number sequence. |
36 | | - |
37 | | -The work order number sequence has now been configured to allow the conversion of open maintenance schedule lines into work orders without being blocked by an error. |
| 35 | +By configuring the work order number sequence correctly, the conversion of maintenance schedule lines to work orders can proceed without being blocked by an error. |
38 | 36 |
|
39 | 37 | ## More information |
40 | 38 |
|
41 | | -[Set up number sequences on an individual basis](/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/set-up-number-sequences-individual-basis) |
| 39 | +[Set up number sequences on an individual basis](/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/set-up-number-sequences-individual-basis) |
0 commit comments