Bug/problem with semantic similarity activity

We are experiencing a recurring issue when using the UiPath Integration Service / GenAI activity “Compare the semantic similarity”. During execution, the workflow intermittently fails with the error DAP-RT-1101 – “Javascript failed to execute: SyntaxError: Expected ‘,’ or ‘}’ after property value in JSON”. The failure occurs after processing a few iterations (sometimes 1–10, rarely up to ~70), even though the same inputs may work in previous runs. We have already implemented multiple mitigation strategies, including sanitizing input strings (removing line breaks, control characters, quotes, backslashes), truncating text length, changing output format to Score Only, adding retry scopes, throttling, circuit breakers, and ensuring only processed variables are passed to the activity. Despite these efforts, the error consistently reappears at a specific point, suggesting an internal JSON serialization issue within the connector rather than malformed input alone. We are seeking guidance on whether this is a known limitation, internal payload constraint, or connector-side bug, and if there is a recommended stable workaround or alternative approach.

Hi,

I think it’s UiPath side problem. Same issue is reported as the following topic.

It may be better to report this as bug/problem.

Regards,

1 Like

@silviu_tanasie would you be able to help on this or redirect this to someone responsible for it. Thank you!

1 Like

Hi @ashokkarale ! I forwarded the thread to the UiPathaters who can help with this issue. Someone should get back on this thread soon.

2 Likes

Hey Karla,

This is a known issue which was patched and should be fixed in the next GenAI release. The issue was that some models do not guarantee a structured output and more handling was added to make the experience consistent.

2 Likes

Thanks you @silviu_tanasie, @rares.ont !

1 Like