MS Teams trigger - error message channel not found

Hi

I’m just starting out on the chatops journey and am trying to get a basic “Hello World” type workflow going.
The workflow should trigger from a new message in a channel and post a message back saying allow.

I’ve gone through the setup Microsoft Teams Connection Guide | InsightConnect Documentation and “think” ive got the permissions setup.

The service account is licensed.

When the trigger attempts to run I get error “Channel not found” - logs from orchestrator below.

When I run a manual test on the workflow through the web gui the message is successfully posted to the channel which is why im struggling to understand why it cant find the channel with the trigger, but can find to post the message, all in the same workflow.

The service account is added as member to the team. I’ve tried both public and private channels.

After making tweaks ive deactivated and re-activated the workflow multiple times.

Any suggestions what to check next please?

Thanks!

p
raise exception
File “/layers/paketo-buildpacks_pip-install/packages/lib/python3.12/site-packages/insightconnect_plugin_runtime/cli.py”, line 176, in execute_step
output = self.plugin.handle_step(msg, is_test=is_test, is_debug=is_debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/layers/paketo-buildpacks_pip-install/packages/lib/python3.12/site-packages/insightconnect_plugin_runtime/plugin.py”, line 525, in handle_step
raise LoggedException(caught_exception, output)
insightconnect_plugin_runtime.exceptions.LoggedException: An error occurred during plugin execution!

Channel chatops3
was not found. Please verify chatops3
is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8
{“body”: {“log”: “”, “status”: “error”, “meta”: {“shortOrgId”: “43b6401d”, “triggerId”: “87413f08-60e9-4a03-8793-702ef47730e1”, “time”: “0001-01-01T00:00:00Z”}, “error”: “An error occurred during plugin execution!\n\nChannel chatops3\n was not found. Please verify chatops3\n is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8”, “exception”: {“cause”: “Channel chatops3\n was not found.”, “assistance”: “Please verify chatops3\n is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8”, “data”: “”}}, “version”: “v1”, “type”: “trigger_event”}rapid7@rapid7-orchestrator:~$
rapid7@rapid7-orchestrator:~$p
raise exception
File “/layers/paketo-buildpacks_pip-install/packages/lib/python3.12/site-packages/insightconnect_plugin_runtime/cli.py”, line 176, in execute_step
output = self.plugin.handle_step(msg, is_test=is_test, is_debug=is_debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/layers/paketo-buildpacks_pip-install/packages/lib/python3.12/site-packages/insightconnect_plugin_runtime/plugin.py”, line 525, in handle_step
raise LoggedException(caught_exception, output)
insightconnect_plugin_runtime.exceptions.LoggedException: An error occurred during plugin execution!

Channel chatops3
was not found. Please verify chatops3
is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8
{“body”: {“log”: “”, “status”: “error”, “meta”: {“shortOrgId”: “43b6401d”, “triggerId”: “87413f08-60e9-4a03-8793-702ef47730e1”, “time”: “0001-01-01T00:00:00Z”}, “error”: “An error occurred during plugin execution!\n\nChannel chatops3\n was not found. Please verify chatops3\n is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8”, “exception”: {“cause”: “Channel chatops3\n was not found.”, “assistance”: “Please verify chatops3\n is a valid channel for the team with id: 4d227313-6d80-4474-8ead-7b55b7a337c8”, “data”: “”}}, “version”: “v1”, “type”: “trigger_event”}rapid7@rapid7-orchestrator:~$
rapid7@rapid7-orchestrator:~$

Trigger config - does not find channel

Action config - does find channel

Entra app reg permissions

For Teams, it uses both an app registration and user credentials (I think one is for read and one write) Make sure the user with the credentials is a member of the Teams channel

Were you able to get this running? If not, can you try one of the channels that are not private, just for testing purposes?

Thanks for the replies

No didnt get this running

Tried testing with a public channel and got same issue.

I’ve logged in manually as the service account and can see and post in the channels.

I’ll flick this one to support and share if I get a solution.

Thanks!

Your channel name has a newline in it. You can see it in the log entry. This is most likely the result of a copy/paste issue, but if you click in the input box you can arrow down and see it.
Screenshot 2025-04-28 at 8.45.02 AM

1 Like

thanks ! i’ll check that out

Thank you very much!! This fixed the problem.