I'm using a map series in my ArcGIS Pro project to create a series of pdf maps. I have a Python script to create the pdf maps.
When I try to use pageRow to get the name of the map from the index layer I keep getting an error: ValueError: Type names and field names must be valid identifiers: 'SWS_Pages.OBJECTID'.
My script worked just fine on a different project; the only difference I can see is that on this current project my index layer has a join so the field names have a period between them. Does pageRow see the period as an invalid character and then throw an error?
Is there another way to do this? I tried using the getattr() function but with the same result.