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 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot add a rule with a Not-query

    GitHub | 6 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