Loading TOC...

ALERT-DELCFGTRIGGERS

Message Text

Can not delete alerting config while triggers are associated. Use alert:config-set-trigger-ids($uri, ()) or alert:remove-triggers($uri) first.: variable1

Cause

Attempted to delete an alerting configuration that has trigger ids associated with it.

Response

If the triggers were created with alert:create-triggers($uri) then they should be removed with alert:remove-triggers($uri) before deleting the config. If the triggers were created in some other way, the config should be disassociated from them withbefore deleting the config.

    alert:config-insert(
      alert:config-set-trigger-ids(
        alert:config-get($uri), ()
      )
    )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.