Skip to content

[main] Update BCArtifact version. New value: 29.0.47702.0#7178

Closed
business-central-bot[bot] wants to merge 1 commit intomainfrom
automation/main/updatebcartifact/2603170616
Closed

[main] Update BCArtifact version. New value: 29.0.47702.0#7178
business-central-bot[bot] wants to merge 1 commit intomainfrom
automation/main/updatebcartifact/2603170616

Conversation

@business-central-bot
Copy link
Contributor

@business-central-bot business-central-bot bot commented Mar 17, 2026

This PR contains the following changes:

  • Update BCArtifact version. New value: 29.0.47702.0

AB#539394

@business-central-bot business-central-bot bot added the Automation Pull request or issue created by automation label Mar 17, 2026
@business-central-bot business-central-bot bot enabled auto-merge (squash) March 17, 2026 06:16
@github-actions github-actions bot added the Build: Automation Workflows and other setup in .github folder label Mar 17, 2026
@mazhelez mazhelez closed this Mar 18, 2026
auto-merge was automatically disabled March 18, 2026 07:49

Pull request was closed

@mazhelez mazhelez deleted the automation/main/updatebcartifact/2603170616 branch March 18, 2026 07:49
Groenbech96 added a commit that referenced this pull request Mar 18, 2026
## Summary

Fix E-Document premature `Commit()` during Inventory Pick posting that
causes data inconsistency (Bug 625438).

### Problem
When an Inventory Pick posts with an E-Document Service Flow configured,
the E-Document export path executes an unconditional `Commit()` inside
`OnAfterPostSalesDoc`. This commits the Sales Shipment and ILE before
warehouse entries are created, causing an inventory-to-warehouse ledger
mismatch if the warehouse bin check later fails.

### Solution
- Add `AllowCreateEDocument` guard to `OnAfterPostSalesDoc`,
`OnAfterTransferOrderPostShipment`, and `OnAfterPostServiceDoc`
subscribers to skip E-Document creation during Inventory Pick flows
(when `InvtPickPutaway`, `CommitIsSuppressed`, or `PreviewMode` is set)
- Subscribe to the new `OnAfterPostWhseActivityCompleted` event for
deferred E-Document creation — this event fires after all posting work
completes (including `PostRelatedInboundTransfer`), so the full
transaction is already persisted
- Migrate Subcontracting subscriber from obsoleted
`OnAfterPostWhseActivHeader` to `OnAfterPostWhseActivityCompleted`

**NAV dependency:** NAV master PR
[242528](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_git/NAV/pullrequest/242528)
(obsoletes `OnAfterPostWhseActivHeader`, adds
`OnAfterPostWhseActivityCompleted`)


[AB#625588](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/625588)
Fixes #7178

---------

Co-authored-by: Magnus Hartvig Grønbech <magnushar@microsoft.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: mazhelez <mazhelez@users.noreply.github.com>
Groenbech96 added a commit that referenced this pull request Mar 18, 2026
Fix E-Document premature `Commit()` during Inventory Pick posting that
causes data inconsistency (Bug 625438).

When an Inventory Pick posts with an E-Document Service Flow configured,
the E-Document export path executes an unconditional `Commit()` inside
`OnAfterPostSalesDoc`. This commits the Sales Shipment and ILE before
warehouse entries are created, causing an inventory-to-warehouse ledger
mismatch if the warehouse bin check later fails.

- Add `AllowCreateEDocument` guard to `OnAfterPostSalesDoc`,
`OnAfterTransferOrderPostShipment`, and `OnAfterPostServiceDoc`
subscribers to skip E-Document creation during Inventory Pick flows
(when `InvtPickPutaway`, `CommitIsSuppressed`, or `PreviewMode` is set)
- Subscribe to the new `OnAfterPostWhseActivityCompleted` event for
deferred E-Document creation — this event fires after all posting work
completes (including `PostRelatedInboundTransfer`), so the full
transaction is already persisted
- Migrate Subcontracting subscriber from obsoleted
`OnAfterPostWhseActivHeader` to `OnAfterPostWhseActivityCompleted`

**NAV dependency:** NAV master PR
[242528](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_git/NAV/pullrequest/242528)
(obsoletes `OnAfterPostWhseActivHeader`, adds
`OnAfterPostWhseActivityCompleted`)

[AB#625588](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/625588)
Fixes #7178

---------

Co-authored-by: Magnus Hartvig Grønbech <magnushar@microsoft.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: mazhelez <mazhelez@users.noreply.github.com>
Groenbech96 added a commit that referenced this pull request Mar 19, 2026
Fix E-Document premature `Commit()` during Inventory Pick posting that
causes data inconsistency (Bug 625438).

When an Inventory Pick posts with an E-Document Service Flow configured,
the E-Document export path executes an unconditional `Commit()` inside
`OnAfterPostSalesDoc`. This commits the Sales Shipment and ILE before
warehouse entries are created, causing an inventory-to-warehouse ledger
mismatch if the warehouse bin check later fails.

- Add `AllowCreateEDocument` guard to `OnAfterPostSalesDoc`,
`OnAfterTransferOrderPostShipment`, and `OnAfterPostServiceDoc`
subscribers to skip E-Document creation during Inventory Pick flows
(when `InvtPickPutaway`, `CommitIsSuppressed`, or `PreviewMode` is set)
- Subscribe to the new `OnAfterPostWhseActivityCompleted` event for
deferred E-Document creation — this event fires after all posting work
completes (including `PostRelatedInboundTransfer`), so the full
transaction is already persisted
- Migrate Subcontracting subscriber from obsoleted
`OnAfterPostWhseActivHeader` to `OnAfterPostWhseActivityCompleted`

**NAV dependency:** NAV master PR
[242528](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_git/NAV/pullrequest/242528)
(obsoletes `OnAfterPostWhseActivHeader`, adds
`OnAfterPostWhseActivityCompleted`)

[AB#625588](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/625588)
Fixes #7178

---------

Co-authored-by: Magnus Hartvig Grønbech <magnushar@microsoft.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: mazhelez <mazhelez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Pull request or issue created by automation Build: Automation Workflows and other setup in .github folder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants