We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Error in Rule Designer "Could not submit to OC instance because :: java.lang.NullPointerException"

I was so excited to create my first rule with the rule designer.... so no XML-struggle and seeking for OID's anymore :-) But now I get this error "Could not submit to OC instance because :: java.lang.NullPointerException" I'm so disappointed now. Anyone an idea what the cause of this error can be? See screenshot attached.image


  • wwiers0wwiers0 Posts: 18
    I know tried it with importing an XML-file. First I get the message "Congratulations", but when I click on Continue I get an error-message: zie screenshots. Why??? image
  • wwiers0wwiers0 Posts: 18
    You can find my XML-file in attachment. zie screenshot after uploading, but error appears after clicking on Continue.image
  • GerbenRienkGerbenRienk Posts: 838 ✭✭✭
    Try <DestinationProperty Value="old" OID="I_WINKE_KARNOFSKY_INDEX"></DestinationProperty>
    You used both Value="something" and ValueExpression, but you are supposed to choose one.
    And you may consider to remove the [ALL] from your StudyEventOID, as it seems that your Event is something like Inclusion, which is probably not a repeating Event. And are you certain that your expression is correct? Just asking, because now the value "old" will be inserted if the age is less than 85.
    Kind regards,
    Gerben Rienk
  • wwiers0wwiers0 Posts: 18
    Thank you very much! I changed the 2 things and now the rule is working! But now I noticed that it only works when you click on SAVE, so I'm trying it now with a script, but this is not working. see: https://www.openclinica.com/forums#/discussion/15506/crf-value-filled-in-based-on-the-value-of-another-field
This discussion has been closed.