Unable to get ACS using 'query' in DAML Trigger

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

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.

Hey…

Thanks for the reply.

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

Issue is resolved.