• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Beginner ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

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

 

2022-07-12_054543.png

TOPICS
Scripting

Views

85

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jul 11, 2022 Jul 11, 2022

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

Votes

Translate

Translate
Community Expert ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 11, 2022 Jul 11, 2022

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines