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

InDesign Server Queue getting Quit

Engaged ,
Jul 17, 2021 Jul 17, 2021

Hello Experts,

Can you please let me know what is wrong with below code? 
This code is working fine in indesign desktop version but indesign server cc 2017 queue getting quit. Your help would be much appreciated. Thanks in Advance.

textFrame = element.placeIntoFrame(page, [0,0, pageHeight, pageWidth]);

 Sumit

-Sumit
TOPICS
Scripting , SDK
1.1K
Translate
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
Engaged ,
Jul 18, 2021 Jul 18, 2021

@Manan Joshi, Can you please help here?

 

Regards,

Sumit

-Sumit
Translate
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 ,
Jul 18, 2021 Jul 18, 2021

Hi @SumitKumar,

Hard to tell by just looking at this line of code. Did you debug the code, what error do you get? Did you check if all the objects used are valid, it's possible that some objects might be invalid on IDS due to API differences so the issue could be somewhere else as well and it's just that the crash happens at this point when you try to use the object.

-Manan

Translate
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
Engaged ,
Jul 19, 2021 Jul 19, 2021

Thank you @Manan Joshi for your response. 

SumitChaurasia_0-1626703987775.png

These page, typeAreaHeight typeAreaWidth variables are constant for all the image placement.

page = document.pages.item(0);
marginPreferences = page.marginPreferences;
top = marginPreferences.top;
bottom = marginPreferences.bottom;
left = marginPreferences.left;
right = marginPreferences.right;
typeAreaHeight = document.documentPreferences.pageHeight - top - bottom;
typeAreaWidth = document.documentPreferences.pageWidth - left - right;


Regards,

Sumit

-Sumit
Translate
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 ,
Jul 19, 2021 Jul 19, 2021

The next thing that I would suggest in addition to what has been already said is to isolate the problematic code. Try to create a small snippet of code with values that you capture via the debugger and use those hardcoded values to identify what operation, API is specifically failing. Try the same operation/code snippet on some other document/another IDS machine etc and see if it causes crashes. So basically it's about identifying what piece of code under which circumstances crashes and then trying to find the solution. Speculating remotely we can only provide generic pointers about where to look and how to look for potential issues.

-Manan

Translate
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
Engaged ,
Jul 19, 2021 Jul 19, 2021

Thank you Manan.

-Sumit
Translate
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
Mentor ,
Jul 20, 2021 Jul 20, 2021

Don't just watch the code, also have a look at the XML - both elements and attributes. Are namespaces correctly declared? Are the namespaces using the exact URL that they are supposed to use? And so forth. Eventually start from a clean XML structure, add elements and attributes by script until it breaks.

Translate
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
Engaged ,
Jul 20, 2021 Jul 20, 2021
LATEST

Thank you @Dirk Becker ,

 

Let me check and get back to you if success.

 

Regards,

Sumit

-Sumit
Translate
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 ,
Jul 19, 2021 Jul 19, 2021

Place that line in a try/catch construct and log the error message.

Translate
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
Engaged ,
Jul 19, 2021 Jul 19, 2021

This is already in side try block and do not go to catch block, if I press F11 on that line queue gets quit while debugging on indesign server cc 17 but on local machine it is running well.

 

-Sumit

-Sumit
Translate
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 ,
Jul 19, 2021 Jul 19, 2021

You mean that InDesign crashes?

Translate
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
Engaged ,
Jul 19, 2021 Jul 19, 2021

Thank you so much for your quick response.
Yes, I mean indesign server queue quit.

Sumit

-Sumit
Translate
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
LEGEND ,
Jul 19, 2021 Jul 19, 2021

That's two different things. Does the queue quit? Or does InDesign Server crash? If it crashes please share the crash reports. 

Translate
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
Engaged ,
Jul 19, 2021 Jul 19, 2021

Queue quit only. I have 6 queues and one bye one quit all if I run 6 times.

-Sumit
Translate
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