Based on the knowledge sources, if your dbt test command is running (as seen in your orchestrator logs) but the invocation is not appearing in the dbt_invocations table, the most likely reasons are: 1.
No Tests Actually Executed: If dbt test runs but does not actually execute any tests (for example, if all tests are filtered out, or there are no applicable tests for the selected models), then the on-run-end hook will not record an invocation in dbt_invocations. This is confirmed in the Slack discussion: > "as long as there is a dbt run or a test being executed, Elementary will capture it... If there was no fresher data in any of the sources... data will not be uploaded to dbt_invocations." [Slack discussion](
https://slack.com/archives/C02CTC89LAX/p1672228916705469) 2.
On-run-end Hook Not Triggered: If there is a configuration or environment issue that prevents the on-run-end hook from running (for example, if hooks are disabled or there is a version mismatch), then the invocation will not be recorded. > "Elementary relies on dbt's on-run-end hook to upload invocation data to dbt_invocations." [Slack discussion](
https://slack.com/archives/C02CTC89LAX/p1712531617797139) 3.
Profile/Target Mismatch: If dbt test is run on a different target or profile than the one Elementary is configured to monitor, the results may be written to a different schema or database, and thus not appear where you expect them. > "elementary and dbt test were not running on the same target." [Slack forum](
https://slack.com/archives/C02CTC89LAX/p1684095583307509) If you have confirmed that tests are actually being executed and the correct profile/target is used, but invocations still do not appear, the knowledge sources do not provide further troubleshooting steps or indicate a known bug for this scenario. In such cases, it is recommended to check your dbt and Elementary versions for compatibility and review your dbt logs for any errors related to hooks or schema writes. If the issue persists, reaching out to the Elementary team with your dbt logs and configuration may be necessary, as suggested in the troubleshooting guide.