cdisc-org / cdisc-org/cdisc-rules-engine

Rule blocked: CORERULES-1704

Open
#408 0 comments 0 reactions 0 assignees View on GitHub
ADaM
Dominant language
Python
Stars
113
Forks
43
Avg merge
14h 51m
Merged PRs (30d)
14

Description

[request.txt](https://github.com/cdisc-org/cdisc-rules-engine/files/11437982/request.txt)

**Links to related JIRA Tickets**
- https://jira.cdisc.org/browse/CORERULES-1704

**Rule Information**
- **Standard**: ADaMIG
- **Rule ID**: 88
- **Rule Description**: Raise an error when STUDYID is not present

**Describe the bug**
The error show regardless of wether STUDYID is present in the dataset or not. Also the message "Output variables: ['STUDYID'] not found in dataset" does not make any sense. since no output variables is specified. I think this is a schema problem.

**Error returned from Rule Engine**
```json
{
"ADSL": [
{
"executionStatus": "execution_error",
"domain": "ADSL",
"variables": [],
"message": "rule execution error",
"errors": [
{
"error": "An unknown exception has occurred",
"message": "Output variables: ['STUDYID'] not found in dataset"
}
]
}
]
}
```

**Expected behavior**
In case STUDYID is missing from the dataset, I expect my message "STUDYID is not present" to be displayed instead of "An unknown exception has occurred".

**Screenshots**
![image](https://github.com/cdisc-org/cdisc-rules-engine/assets/133079915/6f34b1bf-a222-4b80-be64-656858d32903)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.