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

Cannot initialize API Client

Community Beginner ,
Oct 04, 2018 Oct 04, 2018

Issue.PNG

I have script which does book 2 dita for 2 books. During second book it shows above error. but books are same, no problems with inputs ? does anybody know what does this problem mean ?

TOPICS
Scripting
1.3K
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 ,
Oct 04, 2018 Oct 04, 2018

Same issue if you do same stuff by Hand?

For me it seems that this is no problem with your script but with Content in your book.

Are you using SVG graphics? If so could you remove them and check if this still happens.

If not, insert von SVG after the other, perhaps there's a Problem with a specific SVG in your documents.

svg2pdf.dll is a Plugin which converts SVG to PDF for displaying SVG graphics in FM documents (before FM 2019, I think)

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

2 run for 2books. it finishes the first one then start second for the same books. so seems content okey if it is working for one book.

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 ,
Oct 04, 2018 Oct 04, 2018

you run the same process für 2 (different) books. The first ist OK the seconds has this error. So why are you assuming that Content is OK, when content is different?

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

becuase i copied one from another. I think this issues comes from the ram.

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 ,
Oct 04, 2018 Oct 04, 2018

This is an error at FrameMaker startup I think. Are you starting FrameMaker fresh for each book?

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 ,
Oct 04, 2018 Oct 04, 2018

OK. Same book runs 2times...

Yes Maybe it's a Memory issue. Open Taskmanager and check Memory usage… Runs it up to 1 GB RAM?

I managed to solve a long time out-of-memory issue by deactivating "Auto Spellcheck" in preferences. It's worth to check to this.

Furthermore, check if you are using SVGs. If so remove them for testing an replace them by a PNG or similar stuff and check if this happens again.

Furthermore I have a lot of Memory Issues in FM2015 and 2017 when building up books from DITA with lot of topics.

Install FM2019 64bit if this solves the Problem and check Memory usage also.

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

No. I run script which does book2dita for one book, when it finishes for the first one, then it starts for the second one. I do all within one script

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

When I click ok it shows again and I click ok, it shows same, sometimes it saves some .fm file to dita and then shows the following problem:

Capture.PNG

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 ,
Oct 04, 2018 Oct 04, 2018

this Error-Screenshot just means: FM has crashed no more Information available

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

It shows error after 1100 MB

I use frame maker 17

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

I'm thinking if i can close the files/books after saving to dita will fix this  ? is this true ?

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 ,
Oct 04, 2018 Oct 04, 2018

1100 MB is the value where FM runs out of Memory...

Closing Files is an approach indeed, if it solves this issue, you'll see.

Please deactive auto Spellchecker, to be sure you don't run into same trap than me.

Otherwise it's hard to find a good algorithm to avoid Memory issues. Good luck with this.

Otherwise try FM2019 64bit, that's the easier way

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

Thanks, where can I deactivate it ?

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 ,
Oct 04, 2018 Oct 04, 2018

Edit > Preferences > Spellchecking > Options

Checkbox: Auto spell check

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

Thanks, I close files/books and I see in the end around 900 Mb. seems it frees the memory but it should not be 900 MB if it frees it properly.

But I'm thinking that there is a way to delete the object of the book/FM files.

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 ,
Oct 04, 2018 Oct 04, 2018

Glad to here diabling autospell check works (at least that way the books process well).

There are some other memory issues in FrameMaker which cause these memory effect. Maybe SVG graphics could be another cause.

Check if Memory behavior is the same when you process both books by hand, So you can be sure (or not) that it's not your script which causes these problems.

With FM2019 some of These effects are solved. And with FM 201964bit FM is able to allocate more RAM so this will also solve this out-of-Memory issue

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 Beginner ,
Oct 04, 2018 Oct 04, 2018

I have not disabled autospell check yet. Seems, Close(1) frees some memory.

When I do book2dita by hand it doesn't work at all. I need to get all .fm files and save to dita.

I am still thinking that it is possible to free unused memory. I will open new questions maybe someone knows that.

Big Thanks.

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 ,
Oct 04, 2018 Oct 04, 2018

freeing memory is not possible by script and even not by FDK

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
New Here ,
Jan 07, 2025 Jan 07, 2025

Could you tell me how to resolved the issue? Thank you. 

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 ,
Jan 08, 2025 Jan 08, 2025
LATEST

@sun_4220  - they probably upgraded to a new version that supports more memory. Rather than tagging onto an old thread, maybe you should start a new one with whatever problem you'e having.

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