M42 Assist – Known Issues & Troubleshooting
M42 Assist – Known Issues & Troubleshooting
Configuration, Permissions & Integration Issues (Workarounds / Best Practices Available)
KI-01: Teams notifications fail with HTTP 401 Missing Authorization header (ESM 2026.1.1+)
Symptom: Outbound notifications from ESM to MS Teams fail with an HTTP 401 error ("Missing Authorization header").
Root Cause: Library changes introduced in version 2026.1.1 enforce preemptive authentication, requiring a password value that was omitted in the baseline TeamsBot listener.
Resolution / Workaround: Explicitly add a password value to the outbound TeamsBot listener configuration so preemptive authentication succeeds (200 OK).
KI-02: Confusion between WebAPI User Password and EIS.teamsbot.token
Symptom: Authentication errors during ESM-CAI integration setup due to mismatched credentials.
Root Cause: The integration requires two separate secrets: the web-api-user password and the notification API key, which is not explicitly mapped in the ESM system settings instructions.
Resolution:
- Use the
web-api-userpassword strictly in the Password (Secret) field in CAI Platform → Integrations → ESM Pro API. - Generate/copy the API key from the same CAI integration screen and paste it as the value for
EIS.teamsbot.tokenin ESM Administration → System settings.
KI-03: Neo agent does not respond in Teams when sharing an agent with ESM Hero Section
Symptom: Neo works in the ESM 26.2 Hero section / ESS, but fails to authenticate or respond inside MS Teams.
Root Cause: The ESM 26.2 Hero section enforces JWT authentication, which is not supported in the same manner by the MS Teams channel.
Resolution: Create a dedicated Teams-specific agent in the AI Core platform by duplicating the ESS agent (retaining the same knowledge sources and MCPs), and map the Teams project to this separate agent without Hero JWT enforcement. Ensure RAG is enabled and a valid Knowledge Base (KB) is attached (newly created agents default to empty).
KI-04: Portal links in notification cards fail or point to wrong portal (SSC vs. ESS2)
Symptom: Updating the link listener from ESS2 to SSC (Self-Service Catalog) causes notification delivery to fail; reverting to the ESS2 listener restores delivery (200 OK), but generates invalid URLs for customers who do not use ESS2.
Root Cause: The baseline listener script is hardcoded for /ess/request/view/ and /itsm/EfecteFrameset.do... URL structures and does not support SSC routing out of the box.
Workaround: Keep the ESS2 listener structure if Teams notifications are required, or use standard email notifications as a fallback for SSC-only customers until SSC link generation is supported.
KI-05: Outbound actions / ticket operations fail due to insufficient ESM API account permissions
Symptom: Outbound operations from MS Teams to ESM (such as viewing/using ticket actions or updating records via the TeamsBot API account) fail or do not display expected options.
Root Cause: The ESM API user account (web-api-user) was assigned to the baseline Self-Service role, which lacks required attribute-level and folder-level permissions for baseline configuration entities.
Resolution / Best Practice: Do not reuse the baseline Self-Service role for the TeamsBot integration. Create a dedicated custom role specifically for the M42 Assist API account with full read/write permissions to the required ticket attributes and baseline configuration folders.
Open Issues & R&D Backlog Items (Instructions Alone Are Not Sufficient)
R&D-01: Baseline Listener & XML Configuration Package Quality
Details: The downloadable configuration package (v.2026.0.2) contains XML formatting issues that can break expressions upon import, unclear listener execution order, and Jython 2.2 compatibility constraints.
Listener Package Changelog & Execution Order (v2026.2)
The baseline listener bundle has been split into modular, standalone XML files prefixed (01_-07_) to enforce the required execution sequence and prevent import/runtime errors.
Modular Split & Execution Order (01_-07_)
-
01_Presave.TeamsConnector.Update_Support_group_2026.2.xml(pre save) – Maps the support group'steams_channel_idand resetsteams_message_idupon group reassignment. -
02_Presave.TeamsConnector.Update_Emails_2026.2.xml(pre save) – Populatesteams_support_emailandteams_customer_email. -
03_Postsave.TeamsConnector.Set_DatacardID_2026.2.xml(post save) – Persists the entity ID intoteams_ticket_datacard_idon ticket creation. -
04_Postsave.TeamsConnector.Set_IsUpdate_2026.2.xml(post save) – Initializesteams_is_update = 1on ticket creation. -
05_Postsave.TeamsConnector.Update_ticket_links_2026.2.xml(post save) – Generates direct ESS (ticket_link_customer) and ITSM (ticket_link_assignee) URLs. -
06_Postsave.TeamsConnector.Status_change_content_write_2026.2.xml(post save) – Serializes status updates intoteams_latest_change_on_ticketbefore payload dispatch. -
07_Postsave.TeamsConnector.Send_to_Teams_bot_2026.2.xml(post save) – Must execute last in the post save chain so all derived attributes (teams_is_update, links, status payload) are populated prior to the HTTP POST call to${EIS.teamsbot.url}.
XML Formatting & CDATA Protection
Multi-line Jython expressions inside <value> tags (in 05_Postsave...Update_ticket_links and 06_Postsave...Status_change_content_write) are now wrapped in <![CDATA[ ... ]]> blocks to prevent XML parsers from collapsing whitespace or breaking Python indentation during import.
Jython 2.2 Compatibility Fix (06_Postsave...Status_change_content_write)
Replaced import json and json.dumps() (unsupported in Efecte's embedded Jython 2.2 runtime, which caused ImportError: No module named json) with explicit Unicode-safe string serialization and character escaping (\, ", \n, \r).
Jython 2.2 Expression Constraints (Customization Guidelines)
When modifying or extending listener ExpressionAction scripts in Efecte, ensure full compatibility with Jython 2.2:
-
No json module:
import jsonis unavailable in Jython 2.2. Construct JSON payloads via string concatenation with explicit escaping for backslashes, double quotes, and newlines. -
Unicode handling: Use
unicode(value)instead ofstr(value)when processing text fields (e.g., ticket status or summary) to avoidUnicodeEncodeErroron non-ASCII characters. -
Legacy Python 2.2 syntax only: Do not use ternary expressions (
a if cond else b),except Exception as e:(useexcept Exception, e:),.format(), f-strings,withstatements, orset(). -
CDATA wrapping: Always enclose multi-line scripts in
<![CDATA[ ... ]]>within<value>elements before exporting or importing listener XML definitions.
R&D-02: Adding ticket comments directly from Teams (Add comment button)
Details: Users should be able to reply/add comments directly from the M42 Assist notification card via an Add comment button next to Open, but the button is not visible/functional in testing despite ESM Outbound enabled configuration.
Action Required: Verify whether this is strictly resolved by the dedicated ESM API role permissions (KI-05) or requires a backend/adaptive card payload fix.
Table of Contents