com.marklogic.client.FailedRequestException: Local message: /alert/rules write failed: Bad Request. Server Message: XDMP-ARGTYPE: (err:XPTY0004) cts:not-query(()) -- arg1 is not of type cts:query

GitHub | sastafford | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cannot add a rule with a Not-query

    GitHub | 7 months ago | sastafford
    com.marklogic.client.FailedRequestException: Local message: /alert/rules write failed: Bad Request. Server Message: XDMP-ARGTYPE: (err:XPTY0004) cts:not-query(()) -- arg1 is not of type cts:query

    Root Cause Analysis

    1. com.marklogic.client.FailedRequestException

      Local message: /alert/rules write failed: Bad Request. Server Message: XDMP-ARGTYPE: (err:XPTY0004) cts:not-query(()) -- arg1 is not of type cts:query

      at com.marklogic.client.impl.JerseyServices.putPostValueImpl()
    2. com.marklogic.client
      RuleManagerImpl.writeRule
      1. com.marklogic.client.impl.JerseyServices.putPostValueImpl(JerseyServices.java:3031)
      2. com.marklogic.client.impl.JerseyServices.putValue(JerseyServices.java:2881)
      3. com.marklogic.client.impl.RuleManagerImpl.writeRule(RuleManagerImpl.java:168)
      3 frames