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

"Error" placing icml files with anchored [object Group]

Enthusiast ,
May 09, 2017 May 09, 2017

Copy link to clipboard

Copied

Hello, fellows.

I'm having troubles with icml files.

I can export all my textFrames with no problems.

Almost all textFrames has anchored group of objects within it. More than one. And some of those groups have a lot of objects.

Like this:

ScreenCapture_203621_09-05-2017.png

The problem is: when I place the exported icml file into a new document, all those groups became locked and InDesign shows an error ("Object is locked"). In some cases, just one error window appears. But, in other cases, a lot of errors are shown. A LOT. I don't know how to solve this. I tried to write a code to create a new document and then disable user interactions and then place the icml file. But the error persists.

Any ideas?

TOPICS
Scripting

Views

345

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 Expert ,
May 09, 2017 May 09, 2017

Copy link to clipboard

Copied

lf.corullon  wrote

… Any ideas?

Yes.

Check the lockState of the Story.
And try something with methods checkIn() and checkOut() of the story.
( Not tested. )

Adobe InDesign CS6 (8.0) Object Model JS: Story

Regards,
Uwe

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
Enthusiast ,
May 10, 2017 May 10, 2017

Copy link to clipboard

Copied

I don't think so. Because everything is OK when the story doesn't have anchored objects...

Is it possible that applied object styles are causing the issue?

But, following your suggestion, I checked the story lock state after export the textFrame to icml and get "CHECKED_IN_STORY".

That is what it should be, or not?

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 Expert ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

Hm. Yes.

Maybe you ran into a bug?
Is every error telling the same "Object is locked." message?
Then I suppose it's for every object in the group perhaps…

Will there be no error messages if the anchored groups do not contain text frames?
What is the version of your InDesign and OS?

Regards,
Uwe

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
Enthusiast ,
May 11, 2017 May 11, 2017

Copy link to clipboard

Copied

LATEST

InDesign CC 2017 and Windows 10.

My client figured out what is causing those error messages. He disabled

some features in the object style (like auto size and text wrap), and, in

some cases, applied None ObjStyle. The error messages doesn't appear

anymore.

Maybe a bug?

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