Unable to get ACS using 'query' in DAML Trigger
App Development3 posts245 viewsLast activity Feb 2023
PR
Pris17OP
Feb 2023I am not able to fetch ACS using query in DAML Trigger. What can be the reason behind it?
RE
Remy
Feb 2023Hey @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:
- Your ledger is actually empty.
- You did not register the proper templates.
- Your trigger and you ledger use different dar files.
- The party that runs the trigger is not an observer for the contracts of interest.
PR
Pris17
Feb 2023Hey…
Thanks for the reply.
Actually I figured out the issue. I didn’t register the template in the trigger.
Issue is resolved.