Unable to add image to new slide using Modern PowerPoint activities (Shape not found)

Hi Team,

I’m using Modern PowerPoint (Presentation) activities in UiPath.

Scenario:

  • Create slide using Add New Slide
  • Add image using Add Image/Video to Slide

Issue:

Shape Img_1 not found in slide

Notes:

  • "Blank" layout → no shapes
  • "Title and Content" → requires specific placeholder name
  • Custom shape names don’t work

Requirement:

  • Create slide and add image on same slide
  • Avoid hardcoded placeholder names

Questions:

  1. Can we create shapes dynamically in Modern activities?
  2. What’s the best way to add an image to a new slide?

Thanks!

Hello @Tushar_Mahajan3412,

“Add Image/Video to Slide” doesn’t actually create a shape, it only replaces something that already exists on the slide. So if you use a Blank layout, there’s nothing to target, which is why it fails. And for layouts like Title and Content, the placeholder name has to match exactly what PowerPoint expects internally — custom names like Img_1 won’t work unless that shape really exists.

No, you can’t dynamically create shapes with Modern activities. They’re built around placeholders in layouts.

The most reliable approach is to use a template slide layout that already has a picture placeholder and then reference that placeholder name.

If you really need full dynamic positioning (like blank slide + arbitrary placement), then you’d have to step outside Modern activities and use Interop/Invoke Code. But if you want to stay within Modern, templates are the way to go.

Thanks,
Karthik

Hi Karthik,
Thank you so much for help,
basically what i am trying to achieve is i have pdf i want to convert it to ppt/pptx

Hello @Tushar_Mahajan3412,

Please define the layout in your PPT as a reference and then use it. I think defining the layout and reusing everything might be better.

Thanks,
Karthik