Announcements
Hello @frixel,
The error occurs because the replace() function requires a string as its first argument. When the Subject field is empty, it returns a null value instead of a string, which causes the expression to fail.
replace()
null
You can fix this by using the coalesce() function to handle the null value. Coalesce will return the first non-null value, so we can use it to default to an empty string ('') if the Subject is missing.
coalesce()
''
Try changing your expression to this:
replace(coalesce(item()?['Subject'], ''), '=', '')
This ensures that even if the Subject is empty, the replace function receives a valid empty string and the flow continues without error.
Hope this helps!
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 976
Valantis 863
Haque 547