Handle failure to manually create E-Document from posted doc with no …#8183
Open
georgepomazkov wants to merge 2 commits into
Open
Handle failure to manually create E-Document from posted doc with no …#8183georgepomazkov wants to merge 2 commits into
georgepomazkov wants to merge 2 commits into
Conversation
Author
|
@microsoft-github-policy-service agree |
JesperSchulz
previously approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes message 'The e-document has been created.' being shown to user when the e-document was not in fact created.
What & why
In cases when the e-document could not be manually created from a posted document page with no explicit error, the system would still tell the user that 'The e-document has been created.'.
The fix implements a check in the underlying procedure
CreateEDocumentFromPostedDocumentPage()to verify that the number of e-documents linked to this posted document has actually increased, and only in this case the procedure will exit withtrue. Otherwise, the action code calling this procudes from the posted document page will display message 'The e-document could not be created.'.Linked work
Fixes #8181
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Manually tested the case for posted sales invoice described in the issue, the system showed the following message when the e-document was not created due to the document type not being supported by the E-Document Service and no explicit error being thrown.
Risk & compatibility
None.