Skip to content
CCPEDIAby Unity Nodes
App Development

Unable to get ACS using 'query' in DAML Trigger

3 posts260 viewsLast activity Feb 2023

  1. Pris17OP

    I am not able to fetch ACS using query in DAML Trigger. What can be the reason behind it?

  2. Remy

    Hey @Pris17,

    Could you be a bit more specific ?

    I will assume you meant the Trigger query returns you an empty set of contracts. I can imagine a lot of cases when that can happen, including when:

    1. Your ledger is actually empty.
    2. You did not register the proper templates.
    3. Your trigger and you ledger use different dar files.
    4. The party that runs the trigger is not an observer for the contracts of interest.
  3. Pris17

    Hey…

    Thanks for the reply.

    Actually I figured out the issue. I didn’t register the template in the trigger.

    Issue is resolved.