Docs
FC-UIP-CODE-001: Invoke code size limit
InvokeCode body exceeds the configured maximum number of lines.
What it detects
InvokeCode body exceeds the configured maximum number of lines. Flowcerta surfaces this finding from the active validation pipeline for supported file types and platforms.
Why it matters
Maintainability findings matter because they amplify operational drag over time. Bots with deep nesting, arbitrary waits, or hidden assumptions are harder to review, fix, and safely change.
Example violation
InvokeCode body exceeds the configured maximum number of lines.
Fix guidance
UiPath
- Move non-trivial code into a reusable library or invoked workflow so it stays reviewable and testable.
- Use platform-native assets, credentials, bounded retries, and Log Message checkpoints instead of hardcoded literals or silent failure paths.
- Revalidate the workflow after the change and confirm the finding no longer appears.
Verification steps
- Run validation again and confirm the rule no longer appears in the finding list.
- Review the changed workflow artifact directly to verify the risky pattern is gone.
- Capture the new validation result as evidence for the relevant owner or compliance review.
Compliance references
Related rules
This page is generated from the canonical Flowcerta rule registry used by validation scoring.
Browse all rule playbooks