RMSPDF dialog shows 0 releases - no error feedback when API fails
Resolved 💬 3 comments Opened Jan 12, 2026 by midohioboarder1 Closed Jan 12, 2026
Description
When launching RMSPDF from a drawing associated with a job number (e.g., 95959), the PDF Plot Selection dialog shows "Loaded 0 releases" even though the job number is detected from the drawing path. There's no feedback about why no releases were loaded.
Steps to Reproduce
- Open a drawing in a job folder (e.g.,
95959 - JobName/5. Fabrication/...) - Run
RMSPDFcommand - Dialog opens showing "Loaded 0 releases"
- The Releases list is empty
- No error message explains why
Expected Behavior
- If the job has releases in the database, they should appear in the Releases list
- If the API call fails, an error message should be displayed
- If the job has no releases, a clear message should indicate this
Current Behavior
The dialog silently shows empty results. The API client methods catch exceptions and return empty lists without surfacing error information to the user:
// RmsApiClient.cs:786-818
public async Task<List<string>> GetJobsWithReleasesAsync()
{
// ... catches exceptions and returns empty list
// LastError is set but never displayed to user
}
Root Cause Analysis
LoadJobsAsync()callsGetJobsWithReleasesAsync()which hits/api/releases/jobs- If this returns empty or fails, the combo box has no jobs to select
- Even though the job number is detected from the drawing path, it's not in
AvailableJobsso it can't be selected - Error information is stored in
_apiClient.LastErrorbut not displayed in the UI
Suggested Fix
- Display
_apiClient.LastErrorin theStatusMessagewhen API calls fail - If detected job number isn't in the available jobs list, show a warning
- Consider allowing manual job number entry or auto-loading releases for detected job
- Add better feedback: "No releases found for job X" vs "API error: ..."
Affected Files
- [PdfPlotViewModel.cs](RMS.AutoCAD/RMS.AutoCAD.Plugin/Dialogs/PdfPlotViewModel.cs) -
LoadJobsAsync(),LoadReleasesAsync() - [RmsApiClient.cs](RMS.AutoCAD/RMS.AutoCAD.Plugin/Services/RmsApiClient.cs) -
GetJobsWithReleasesAsync(),GetReleasesForJobAsync() - [PdfPlotDialog.xaml.cs](RMS.AutoCAD/RMS.AutoCAD.Plugin/Dialogs/PdfPlotDialog.xaml.cs) -
PdfPlotDialog_Loaded
Environment
- AutoCAD 2026
- RMS Plugin (.NET 8)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗