# How can I check if my triggers.dar file is linked with my main dar file?

**URL:** <https://forum.canton.network/t/how-can-i-check-if-my-triggers-dar-file-is-linked-with-my-main-dar-file/4329>\
**Category:** App Development\
**Tags:** trigger, damlhub\
**Created:** [April 13, 2022, 2:23pm UTC](https://forum.canton.network/t/how-can-i-check-if-my-triggers-dar-file-is-linked-with-my-main-dar-file/4329 "2022-04-13T14:23:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikotacards](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rikotacards](https://forum.canton.network/u/rikotacards)\
**Post date:** [April 13, 2022, 2:23pm UTC](https://forum.canton.network/t/how-can-i-check-if-my-triggers-dar-file-is-linked-with-my-main-dar-file/4329/1 "2022-04-13T14:23:20Z")

</div>

Sometimes I’ll create a new ledger from the daml hub console and re upload the triggers.dar, and the main dar file, and once I’ve set up the triggers, I realize they are not getting triggered. (while they previously were working fine.)

How can I check that the trigger.dar is in fact referencing the main dar file correctly? instead of just guessing and rebuilding everything each time? Thanks!

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 13, 2022, 2:28pm UTC](https://forum.canton.network/t/how-can-i-check-if-my-triggers-dar-file-is-linked-with-my-main-dar-file/4329/2 "2022-04-13T14:28:18Z")

</div>

Your best bet is probably to check package ids via `daml damlc inspect-dar`. Specifically find the main package id of your template DAR via `daml damlc inspect-dar --json path/to/template.dar | jq '.main_package_id'` (if you don’t have jq, just look at the `main_packageid` field in the output yourself.

Then check that the trigger dar depends on this by running `daml damlc inspect-dar --json poc6/.daml/dist/canton-coin-0.1.0.dar | jq '.packages | keys'` and checking that the package id you got from step 1 is part of that.
