user defined error msg for maximum upload of attachments#518
Merged
Conversation
rashmiangadi05
previously approved these changes
Jun 19, 2026
rashmiangadi05
approved these changes
Jun 23, 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.
Describe your changes
-> Problem
When users configured a custom error message for the maximum attachment upload limit, the application always displayed the default message:
"Cannot upload more than X attachments."
instead of the user-defined custom message.
-> Root Cause
The leading application was using an incorrect configuration key mapping:
Incorrect: SDM.Attachments.maxCountError
Correct: SDM.maxCountError
As a result, the custom error message configuration was not being picked up.
-> Fix
Updated the key mapping in the leading application from SDM.Attachments.maxCountError to SDM.maxCountError to correctly resolve and display the user-configured error message when the maximum upload limit is exceeded.
-> Validation
Verified that the custom error message is displayed correctly when the attachment upload count exceeds the configured maximum limit.
Type of change
Please delete options that are not relevant.
Checklist before requesting a review
Upload Screenshots/lists of the scenarios tested
Before fix
After fix
Single tenant Integration tests
https://github.com/cap-java/sdm/actions/runs/27815453016

Multi tenant Integration tests
https://github.com/cap-java/sdm/actions/runs/27814115842
