mdsol / rwslib

Provide a (programmer) friendly client library to Rave Web Services (RWS).
MIT License
31 stars 13 forks source link

Record restricted by max limit #132

Closed vagarwal77 closed 2 years ago

vagarwal77 commented 2 years ago

Hi

CRF has 2 loglines pre-populated and i am trying to build clinical payload to update those loglines but getting error as below - RWSException error e.rws_error.error_client_response_message - Record restricted by max limit e.rws_error.error_origin_location - /ODM/ClinicalData[1]/SubjectData[1]/StudyEventData[1]/FormData[1]/ItemGroupData[2] e.rws_error.reason_code - RWS00088

Please suggest what is wrong as form has 3 sections -

  1. non-logline Item Group as XXX_GEN_U01_C_PK01_S01
  2. 2 logline items group as XXX_GEN_U01_C_PK01_S01_LOG_LINE

`<ODM xmlns:mdsol="http://www.mdsol.com/ns/odm/metadata" xmlns="http://www.cdisc.org/ns/odm/v1.3" FileType="Transactional" Granularity="Metadata" CreationDateTime="2022-03-22T13:14:35.928-00:00" FileOID="19c6ec03-33b8-fdfrr-8e77-667e05709c0a" ODMVersion="1.3">

`

isparks commented 2 years ago

Not too sure. One thing that stands out to me is that you are using ItemGroupRepeatKey="@CONTEXT" but you are not providing any context ItemData values for it to do it's lookup. The docs give an example:

<ODM  >
...
   <FormData FormOID="AE" FormRepeatKey="1" TransactionType="Update">
      <ItemGroupData ItemGroupOID="AE_LOGLINE" ItemGroupRepeatKey="@CONTEXT"
        TransactionType="Update">
         <ItemDataAny ItemOID="AETERM" TransactionType="Context">Headache</ItemDataAny>
         <ItemDataDate ItemOID="AESTDTC" TransactionType="Context">2010-03-14
           </ItemDataDate>
         <ItemDataDate ItemOID="AEENDTC">2010-03-20</ItemDataDate>
      </ItemGroupData>
   </FormData>
...
</ODM>

and

In this ODM request example, the log line to be located is identified as the line where the AETERM field has the value 
Headache and the AESTDTC field has the value 2010-03-14. If both these field values are found, this request updates the 
AEENDTC field with the value 2010-03-20.

So the fact it can't find your log lines to update might be the problem. Could it be that its trying to create new log lines and there is a limit (set by default values with | symbol in the field default values for the log line) on the number of log lines allowed?

glow-mdsol commented 2 years ago

Is this resolved? Can we close?

vagarwal77 commented 2 years ago

Yes, please close Thanks