I've been working on a Python Toolbox that imports runs through a number of steps the last one being to convert labels to annotation so they can be manually placed (I've tried graphics also). I can run the convert to annotation/graphics tools without issue when I manually run them. I can copy and paste the python code into the .pyt file and it runs with no errors, however it doesn't actually convert to annotation/graphics.
If I copy and paste the code to the Python window it runs fine and creates annotation/graphics as expected. I created a new clean pyt with the arcpy.cartography.ConvertLabelsToAnnotation code in the execute section and again it runs without error, but no annotation/graphics are created.
This was working in earlier versions of Pro but I'm not sure when it stopped. I'm currently on 3.2.0.
Has anyone else had this issue and found a way around it?