Wanted see see if anyone else had encountered this issue.
I have a python script setup for batch exporting layouts with a map series to PDF. I set it up on a new project that uses thematic map series in a few layouts. When it hits one of these, it gets skipped.
Here's a link to a support article with the a code example of how it normally works. (My script just has a little extra run through multiple layouts, and skip to the next if there's an error, but this is the part that matters)
https://support.esri.com/en-us/knowledge-base/export-map-series-000028089
So if a layout has a bookmark or spatial map series, you can run exportToPDF on the the layout's "mapSeries" object instead of the "layout" object (otherwise it just exports the first page).
(At least for me) if the layout has a thematic map series, that "mapSeries" object is null, so ms.exportToPDF fails.
Looking at the documentation, there are separate objects for (spatial) MapSeries and BookmarkMapSeries, but nothing mentioned for Thematic.
https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/mapseries-class.htm
https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/bookmarkmapseries-class.htm
(I'm still on Pro 3.3x as of writing, but also didn't see this mentioned in the notes for 3.4)