Returned Payment Automation Suite
Technical documentation for the 17-scenario unified RPA solution
Quick Start
- UiPath StudioX 2024.10.12 LTS installed
- Enterprise License via Orchestrator
- Collections Portal access (manual login required)
- Excel input file with required columns
- Open the Collections Portal and log in manually
- Open the Excel input file with account data
- Ensure SCENARIO_CODE column contains valid codes (D, E, G, H, etc.)
- Run
Main_AllScenarios.xamlfrom StudioX - Monitor Processing Logs sheet for status updates
Scenario Reference
The bot handles 17 distinct scenarios, each with specific field configurations. Use the SCENARIO_CODE column in your Excel input to specify which scenario applies to each account.
| Code | Scenario Name | Type | Fields |
|---|---|---|---|
| D | 1st Return (<6 mo) | Standard | 12 |
| E | 1st Return (<6 mo) Full Prepay | Standard | 18 |
| G | 1st Return (12 mo) | Standard | 10 |
| H | 2nd Return (12 mo) | Standard | 18 |
| I | 3rd Return (<12 mo) | Standard | 18 |
| J | Redraft - 2nd Return | Standard | 18 |
| L | RTS Recourse | Recourse | 14 |
| M | OTR Recourse | Recourse | 14 |
| N | Pilot DB - 2nd Return | Pilot | 16 |
| Q | Security Deposit - 1st | Special | 15 |
| R | Security Deposit - 2nd | Special | 17 |
| S | Security Deposit - 3rd | Special | 17 |
| WC1 | WEX Capital - 1st | Capital | 14 |
| WC2 | WEX Capital - 2nd | Capital | 16 |
| WC3 | WEX Capital - 3rd | Capital | 16 |
| F1 | FLEET - 1st | Fleet | 12 |
| F2 | FLEET - 2nd | Fleet | 15 |
Technical Architecture
Configuration-Driven
Scenario rules stored as data, not hardcoded logic. Add new scenarios without code changes.
Fail-Fast Validation
Collections Descriptor lock checked first. Prevents wasted processing on locked accounts.
State-Aware UI
Checkbox states queried before clicking. Prevents accidental unchecking of already-set values.
Dual Logging
Excel Processing Logs + UiPath logs. Full audit trail for compliance requirements.
Processing Flow
Field Matrix
Fields modified by the bot across portal tabs. Each scenario activates a specific subset based on its configuration.
| Field | Tab | Scenarios | Values |
|---|---|---|---|
| Collections Status | Credit | All | Active → Collections |
| Account Descriptor | Credit | All | Based on return count |
| Collections Descriptor | Credit | All | Validated first (fail-fast) |
| Credit Hold | Credit | G, H, I, J | Checkbox: TRUE |
| Payment Method | Payment | All | Check/ACH → Prepay |
| Application Method | Payment | I, J | Standard → Prepay |
| Online Pay | Payment | All | Disabled on 2nd+ return |
| Credit Limit | Limits | All | Set to $0 or calculated |
| Daily Limit | Limits | K, L, M, N | Based on account type |
| Returns Queue | Queues | All | Assigned based on FLEET status |
| Review Date | Queues | All | Calculated from return date |
| Comment | Comments | All | Generated with return details |
Error Handling
The bot writes status codes to the Processing Logs sheet. Use these codes to identify issues and take corrective action.
| Status Code | Meaning | Action Required |
|---|---|---|
1-SUCCESS | Account processed successfully | None required |
1-MANUAL REVIEW | Collections Descriptor locked by another user | Process manually after lock released |
1-AR NOT FOUND | Account number not found in portal | Verify AR number in source data |
1-VALIDATION FAIL | Pre-processing validation failed | Check account status and retry |
1-TIMEOUT | Portal response exceeded wait threshold | Retry; check portal performance |
1-ELEMENT NOT FOUND | Expected UI element missing | Check for portal UI changes |
Maintenance Guide
Adding a New Scenario
- Copy Column G template bot as the base
- Define the 18 binary flags for the new scenario
- Update the scenario lookup table in the Excel config
- Test with sample accounts in non-production environment
- Document the new scenario in the Bot Builder Matrix
Common Maintenance Tasks
⚠️ Important Notes
- Always test changes in non-production environment first
- Maintain the template bot pattern for consistency
- Update documentation when modifying scenarios
- Coordinate with Operations team before deploying changes