Skip to main content
Inspiring
July 11, 2022
Answered

InDesign scripting: System.Reflection.TargetException: 'RFLCT.Targ_ITargMismatch'

  • July 11, 2022
  • 2 replies
  • 490 views

Hi,

 

I'm getting a "System.Reflection.TargetException: 'RFLCT.Targ_ITargMismatch'" error when trying to run a simple scripting program from Visual Basic. See the attachment.

I wasn't getting this error when I ran similar scripts a few years back. What do I need to do?

 

Visual Studio 2019  Visual Basic

InDesign 2020

 

This topic has been closed for replies.
Correct answer ArtisticMagic

I just reinstalled InDesign from scratch, ran it once as an administrator, and the problem went away.

2 replies

ArtisticMagicAuthorCorrect answer
Inspiring
July 11, 2022

I just reinstalled InDesign from scratch, ran it once as an administrator, and the problem went away.

brian_p_dts
Community Expert
Community Expert
July 11, 2022

Not sure about VB errors, but can you check that the active document has been saved successfully and actually has a name? That's where I'd start. 

Inspiring
July 11, 2022

Brian, thanks! I just found out that it was an InDesign installation problem.