Make sure that the page range specified for the PDF conversion is valid. Ensure that the first and last page numbers are within the total number of pages in your Excel document.
There are some ways to achieve it.
The following is to copy xlsx file to temporary file in advance then delete unneeded sheets using ForEachExcelSheet, for example.
Check the page range: Verify that the first and last page numbers are within the range of the total number of pages in the Excel file.
Validate the Excel file: Open the Excel file and check for any empty or blank pages. If found, remove or fill in the empty pages.
Check for hidden pages: In Excel, go to the “View” tab and select “Unhide All Sheets” to ensure that all pages are visible.
Use the classic activity: If the issue persists, try using the classic “Save Excel File As PDF” activity, which may be more tolerant of invalid page ranges.
Update UiPath: Ensure that you are using the latest version of UiPath Studio, as there might have been bug fixes related to the “Save Excel File As PDF” activity.