The quote you pasted here are special quotes, you should use ', but that’s probably a copy/past change from MS Word. Just make sure you have the proper quotes in your template.
The problems comes from the name of the representation description you are using. For EOS you should be using ‘Operational Interaction Scenario’. You can find this information by selecting the back of a diagram and using the following expression in the Acceleo interpreter:
If you use the new M2Doc interpreter introduced with M2Doc 3.2.0, you can use selection instead of self:
You can then use the description name in your expression (I adapted it to work on IFE example):
self.containedOperationalAnalysis.containedOperationalCapabilityPkg.eAllContents(interaction::Scenario)->select(sc | sc.name='[OES] Flight Phases').asImageByRepresentationDescriptionName('Operational Interaction Scenario').fit(400,400)
You can also use the availableRepresentations() service to list all representations available in your Capella/Sirius session:
For OAS diagrams, the name of the description is ‘Activity Interaction Scenario’.