web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / IcM Connector 'When in...
Power Automate
Suggested Answer

IcM Connector 'When incident created' trigger - datetime encoding bug

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
 
 
PROBLEM SUMMARY
The 'When an IcM incident is created' trigger in Power Automate is failing with a BadRequest (HTTP 400) error. The connector internally appends a CreateDate filter clause to track polling state, but generates a malformed datetime literal where the '+' in the UTC timezone offset is replaced with a space, causing IcM's OData endpoint to reject the request.
---
ROOT CAUSE
The connector auto-appends the following clause:
  and CreateDate gt datetime'2026-04-07T04:32:16.479 00:00'
The correct format should be:
  and CreateDate gt datetime'2026-04-07T04:32:16.479+00:00'
The '+' character (which should be URL-encoded as %2B) is being encoded as %20 (space), resulting in an invalid Edm.DateTime literal that IcM's OData API cannot parse.
---
EVIDENCE
Failing Search URL generated by connector:
https://prod.microsofticm.com/api/user/incidents?$filter=%28OwningTeamId%20eq%20%27SAPTRPINTEGRATIONSERVICES%5CTRPISLiveSite%27%29%20and%20CreateDate%20gt%20datetime%272026-04-07T04%3A32%3A16.479%2000%3A00%27&$top=100
Decoded filter:
(OwningTeamId eq 'SAPTRPINTEGRATIONSERVICES\TRPISLiveSite') and CreateDate gt datetime'2026-04-07T04:32:16.479 00:00'
IcM OData Error:
"Unrecognized 'Edm.DateTime' literal 'datetime'2026-04-07T04:32:16.479 00:00'' at '78'"
---
IMPACT
- Flow: TRP ICM Config Automation Agent (ICMBased_Automated_Config_Management)
- Owning Team: SAPTRPINTEGRATIONSERVICES\TRPISLiveSite
- The flow was working correctly until approximately March 11, 2026
- All IcM incidents created after that date are being missed — no automation is firing
- This appears to be a regression introduced in a connector update between March 11 and April 6, 2026
---
STEPS TO REPRODUCE
1. Create a Power Automate flow with trigger 'When an IcM incident is created'
2. Set filter: OwningTeamId eq 'SAPTRPINTEGRATIONSERVICES\TRPISLiveSite'
3. Set Search Endpoint: Public
4. Save and enable the flow
5. Observe BadRequest 400 error on trigger execution
6. Check the Search incidents URL in the error — note %2000%3A00 instead of %2B00%3A00
---
EXPECTED BEHAVIOR
Connector should generate a valid datetime literal with '+' properly encoded as %2B in the URL:
datetime'2026-04-07T04:32:16.479+00:00'
ACTUAL BEHAVIOR
Connector generates an invalid datetime literal with space instead of '+':
datetime'2026-04-07T04:32:16.479 00:00'
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    2,265 on at
    The “When an IcM incident is created” trigger in Microsoft Power Automate is failing due to a connector bug.
     
    Cause
    The connector generates an invalid datetime filter:
    • datetime'... 00:00' (space)
    • Should be datetime'...+00:00'
    The + is incorrectly encoded as %20 instead of %2B, causing an OData parsing error.
    Impact
    • HTTP 400 errors
    • Trigger stops working
    • New IcM incidents are not processed

    This is not a configuration issue — it’s a connector regression
    Workaround
    • Replace the trigger with a custom polling approach (HTTP + recurrence) until Microsoft fixes it

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard