-
Notifications
You must be signed in to change notification settings - Fork 19
CannotDeleteContention
The CannotDeleteContention error is thrown within the vbms_connect gem whenever VBMS sends back a response that indicates that a VBMS contention correlated to a caseflow request issue is not permitted to be deleted. Vbms_connect identifies several errors by inspecting the response from VBMS. VBMS_CONNECT looks for several key phrases within the response using regular expressions to identify if an error should be thrown. If one of the regular expressions is found, VBMS_CONNECT will throw the appropriate error. In the case of CannotDeleteContention, the regular expression that will raise this error is: "The contention is connected to an issue in ratings and cannot be deleted." If the VBMS response contains this text, then the CannotDeleteContention Error will be thrown. Then the CannotDeleteContention Error will be thrown
This error is rescued by the DecisionReviewProcessJob. This job accepts a Request Issues Update as an argument. As mentioned before, a Request Issues Update can contain several edits to request issues. The order that these ‘edits’ get processed by this job are:
- Added Issues (this includes Corrected Issues, because Corrected Issues become added issues)
- Edited Issues
- Removed and Withdrawn Issues When the CannotDeleteContention Error is thrown, the job is at the 3rd part that involves Removed and Withdrawn issues. The way that this job handles the error is that it updates the Request Issues Update’s ERROR field with the response sent from VBMS. It is important to note that any remaining withdrawn or removed issues will not be processed on VBMS side. This leads to the job being considered ‘stuck’, because the job cannot finish with the current implementation unless manually ‘unstuck’.
There is a remediation job that runs nightly called CannotDeleteContentionRemediationJob that will allow the job to continue by resetting the state of the request issue that is not allowed to be removed (setting closed_at and closed_status values to null), un-removing the removed request issue from the request issues update by adding the affected request issue id into the after_request_issue_ids attribute, and resyncing the end product establishment so that a decision issue can be generated and a proper closed_status can be applied to the affected request issue. This job can also safely be run from the rails console by entering CannotDeleteContentionRemediationJob.perform_now. It is important to note that occasionally there will be request issues updates that involve the removal or withdrawal of more than one request issue that is not allowed to be deleted on VBMS side. In scenarios such as these, the remediation job will need to be run multiple times, as each error is tied to a specific request issue and it is not possible to know if VBMS will reject any other removals/withdrawals until the job is allowed to continue.
- Home
- Acronyms and Glossary
- Caseflow products
- Caseflow Intake
- Caseflow Queue
- Appeals Consumer
- Caseflow Reader
- Caseflow eFolder
- Caseflow Hearings
- Caseflow Certification
- Caseflow APIs
- Appeal Status API
- Caseflow Dispatch
-
CSUM Roles
- System Admin
- VHA Team Management
- Active Record Queries Resource
- External Integrations
- Caseflow Demo
- Caseflow ProdTest
- Background
- Stuck Jobs
- VA Notify
- Caseflow-Team
- Frontend Best Practices
- Accessibility
- How-To
- Debugging Tips
- Adding a Feature Flag with FeatureToggle
- Editing AMA issues
- Editing a decision review
- Fixing task trees
- Investigating and diagnosing issues
- Data and Metric Request Workflow
- Exporting and Importing Appeals
- Explain page for Appeals
- Record associations and Foreign Keys
- Upgrading Ruby
- Stuck Appeals
- Testing Action Mailer Messages Locally
- Re-running Seed Files
- Rake Generator for Legacy Appeals
- Manually running Scheduled Jobs
- System Admin UI
- Caseflow Makefile
- Upgrading Postgresql from v11.7 to v14.8 Locally
- VACOLS VM Trigger Fix M1
- Using SlackService to Send a Job Alert
- Technical Talks