Skip to content

Commit 7357e18

Browse files
authored
Merge pull request #9183 from MicrosoftDocs/main
Auto push to live 2025-06-24 10:02:15
2 parents 0693266 + 3cb369a commit 7357e18

File tree

7 files changed

+127
-10
lines changed

7 files changed

+127
-10
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: Runbook Jobs Get Suspended in Azure Automation
3+
description: Provides solutions to an issue where runbook jobs are suspended in Azure Automation.
4+
ms.date: 06/24/2025
5+
ms.reviewer: adoyle, v-weizhu
6+
ms.service: azure-automation
7+
ms.custom: sap:Runbook not working as expected
8+
---
9+
# Runbook jobs are suspended in Azure Automation
10+
11+
This article provides solutions to an issue where runbook jobs are suspended in Azure Automation.
12+
13+
> [!NOTE]
14+
> Azure Automation enables recovery of runbooks deleted in the last 29 days. You can restore the deleted runbook by running a PowerShell script as a job in your Automation account. For more information, see [Restore a deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook).
15+
16+
## Symptoms
17+
18+
Runbook jobs might be suspended after three failed start attempts.
19+
20+
## Cause 1: Exceeding memory or network socket limits in an Azure sandbox
21+
22+
- Memory limits
23+
24+
A job might fail if it uses more than 400 MB of memory.
25+
- Network socket limits
26+
27+
An Azure sandbox is limited to 1,000 concurrent network sockets.
28+
29+
For more information, see [Azure Automation limits](/azure/azure-resource-manager/management/azure-subscription-service-limits#azure-automation-limits).
30+
31+
Here are some suggestions for working within memory limits:
32+
33+
- Split the workload among multiple runbooks.
34+
- Reduce the amount of data processed in memory.
35+
- Avoid writing unnecessary output from your runbooks.
36+
- Consider the number of checkpoints written in your PowerShell workflow runbooks.
37+
38+
Here are some actions that can reduce the memory footprint of your runbook during runtime:
39+
40+
- Use the `clear` method, such as `$myVar.clear`, to clear variables.
41+
- Use the `[GC]::Collect` command to run the garbage collection immediately.
42+
43+
## Cause 2: Module incompatibility
44+
45+
Module dependencies might be incorrect. In this case, your runbook typically returns a "Command not found" or "Cannot bind parameter" error message.
46+
47+
To resolve this issue, [update Azure PowerShell modules in Azure Automation](/azure/automation/automation-update-azure-modules).
48+
49+
## Cause 3: Not authenticated with Microsoft Entra ID in an Azure sandbox
50+
51+
Azure Automation runbooks that attempt to call executables or subprocesses within an Azure sandbox environment can't use Microsoft Authentication Library (MSAL) to authenticate with Microsoft Entra ID.
52+
53+
To resolve this issue, use a managed identity for the Automation account. When you authenticate this runbook with Microsoft Entra ID by using a managed identity, ensure the following things:
54+
55+
- The Microsoft Graph PowerShell module is available in your Automation account.
56+
- The managed identity is granted the permissions required to execute the runbook automation tasks.
57+
58+
If your runbook can't call an executable or subprocess in an Azure sandbox, run the runbook on a [hybrid worker](/azure/automation/automation-hrw-run-runbooks). Hybrid workers aren't constrained by the memory and network limits of Azure sandboxes.
59+
60+
## References
61+
62+
- [Understand how Azure Resource Manager throttles requests](/azure/azure-resource-manager/management/request-limits-and-throttling)
63+
- [Troubleshooting API throttling errors](../../virtual-machines/windows/troubleshooting-throttling-errors.md)
64+
65+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

support/azure/automation/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
href: welcome-automation.yml
33
- name: Runbook not working as expected
44
items:
5+
- name: Runbook jobs get suspended
6+
href: runbooks/runbook-job-suspended.md
57
- name: Troubleshoot runbook execution issues when using PowerShell
68
href: runbooks/powershell-job-script-cmdlets-not-working.md
79

support/azure/automation/welcome-automation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ landingContent:
2121
- title: Runbook not working as expected
2222
linkLists:
2323
- linkListType: how-to-guide
24-
links:
24+
links:
25+
- text: Runbook jobs get suspended
26+
url: runbooks/runbook-job-suspended.md
2527
- text: Troubleshoot runbook execution issues when using PowerShell
2628
url: runbooks/powershell-job-script-cmdlets-not-working.md
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
items:
22
- name: Welcome
33
href: welcome-azure-functions.yml
4-
- name: Code Deployment
4+
- name: Application Code Deployment
55
items:
66
- name: Application issues post deployment
77
href: deployment/functions-deploying-runtime-issues-post-deployment.md
8-
- name: Configuration and Management
8+
- name: Configuring and Managing Function Apps
99
items:
1010
- name: Migration of runtime/language version
1111
href: config-mgmt/functions-configuring-updateversion.md
12-
- name: Creation or Deletion
12+
- name: Creating or Deleting Function Apps
1313
items:
1414
- name: General troubleshooting
1515
href: creation-deletion/functions-create-or-delete-faq.md
16-
- name: Monitoring
16+
- name: Monitoring using Application Insights, Metrics and Alerts
1717
items:
1818
- name: Application Insights logs missing or incorrect
1919
href: monitoring/functions-monitoring-appinsightslogs.md

support/azure/azure-functions/welcome-azure-functions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,35 @@ metadata:
99
ms.topic: landing-page # Required
1010
author: HaiyingYu #Required; your GitHub user alias, with correct capitalization.
1111
ms.author: haiyingyu #Required; microsoft alias of author; optional team alias.
12-
ms.date: 04/30/2025
12+
ms.date: 06/24/2025
1313

1414
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | video | whats-new
1515

1616
landingContent:
1717

1818
# Card
19-
- title: Code Deployment
19+
- title: Application Code Deployment
2020
linkLists:
2121
- linkListType: how-to-guide
2222
links:
2323
- text: Application issues post deployment
2424
url: deployment/functions-deploying-runtime-issues-post-deployment.md
2525

26-
- title: Configuration and Management
26+
- title: Configuring and Managing Function Apps
2727
linkLists:
2828
- linkListType: how-to-guide
2929
links:
3030
- text: Migration of runtime/language version
3131
url: config-mgmt/functions-configuring-updateversion.md
3232

33-
- title: Creation or Deletion
33+
- title: Creating or Deleting Function Apps
3434
linkLists:
3535
- linkListType: how-to-guide
3636
links:
3737
- text: General troubleshooting
3838
url: creation-deletion/functions-create-or-delete-faq.md
3939

40-
- title: Monitoring
40+
- title: Monitoring using Application Insights, Metrics and Alerts
4141
linkLists:
4242
- linkListType: how-to-guide
4343
links:
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Can't Change Accounting Date or Do a Budget Check
3+
description: Works around an issue where you can't change the accounting date on a purchase order in Microsoft Dynamics 365 Supply Chain Management.
4+
ms.reviewer: shubhamshr, ashuaggarwal
5+
ms.date: 06/24/2025
6+
ms.custom: sap:Purchase order procurement and sourcing\Issues with purchase orders
7+
---
8+
# Can't change the accounting date or perform a budget check on a purchase order
9+
10+
This article provides workarounds for an issue where you can't change the accounting date on a purchase order (PO) due to unjournalized reversing distributions and a closed fiscal period in Dynamics 365 Supply Chain Management.
11+
12+
## Symptoms
13+
14+
When you try to change the accounting date on a PO, you receive the following error message:
15+
16+
> You cannot change the date because reversing distributions that have not yet been journalized still exist. Confirm the current changes before you change the accounting date.
17+
18+
Additionally, the budget check can't be performed because the fiscal period associated with the accounting date isn't within an open fiscal calendar period.
19+
20+
## Cause
21+
22+
This issue occurs because the accounting date on the PO falls within a closed fiscal period. As a result, the accounting distribution can't be reset.
23+
24+
## Workaround
25+
26+
To resolve this issue, use one of the following workarounds:
27+
28+
### Option 1: Cancel and re-create the purchase order
29+
30+
1. [Cancel the PO](/dynamics365/supply-chain/procurement/purchase-order-approval-confirmation#canceling-purchase-orders).
31+
2. Create a new purchase order with the correct accounting date.
32+
33+
### Option 2: Temporarily open the fiscal period
34+
35+
1. Navigate to **General ledger** > **Calendars** > **Ledger calendars**.
36+
37+
2. Open the relevant fiscal period (for example, 2023 Period 9).
38+
39+
3. Make the necessary changes to the purchase order, such as changing the accounting date or performing a budget check.
40+
41+
4. [Confirm the PO](/dynamics365/supply-chain/procurement/purchase-order-approval-confirmation#confirming-purchase-orders).
42+
43+
5. Set the status of the fiscal period back to **On hold** once the changes are complete.
44+
45+
> [!NOTE]
46+
> Changing the ledger calendar period is a viable workaround when the accounting date falls in a closed fiscal period. For more information on modifying ledger calendar assignments, see [Change or reassign a ledger calendar](/dynamics365/finance/general-ledger/change-mdfy-clndr-to-ledger).

support/dynamics-365/supply-chain/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
href: procurement/vendor-rebate-not-cumulated.md
133133
- name: A product receipt voucher number is consumed even when not generating a voucher
134134
href: procurement/voucher-number-consumed.md
135+
- name: Can't change accounting date or do a budget check
136+
href: procurement/cannot-change-accounting-date.md
135137
- name: Can't cancel a purchase order within a closed period
136138
href: procurement/unable-to-cancel-po.md
137139
- name: Can't delete a purchase order line after it's confirmed

0 commit comments

Comments
 (0)