Author Topic: Getting error of Remote Procedure Failed when trying to Save EA Diagram to File  (Read 911 times)

ea0921

  • EA User
  • **
  • Posts: 102
  • Karma: +0/-1
    • View Profile
Hello all,
I am getting following error: "The remote procedure call failed. (Exception from HRESULT: 0x800706BE) at EA.ProjectClass.PutDiagramImageToFile(String DiagramGUID, String FilePath, Int32 Type)"

I am using the above method "PutDiagramImageToFile" to store EA diagram to file system, but when I am trying to execute the same method, EA application becomes non-responsive and EA does not respond. Becuase of this API call goes into waiting state for 60 minutes and after that I get an error of "remote procedure call failed (Exception from HRESULT: 0x800706BE)"

Machine configurations I am using:
RAM: 20 GB
EA version: 16.1

How can I resolve this error ?. Also, the size of diagram is of small size.

Thank you for help

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
might be a problem with the parameters. Either the guid is not in the correct format, or there is something wrong with the filepath... (file in use, directory not existing,...)

Geert

ea0921

  • EA User
  • **
  • Posts: 102
  • Karma: +0/-1
    • View Profile
I have validated following:

1. GUID is correct, before saving image diagram to file, I am fetching entity before to validate entity is not deleted.
2. Similarly, before saving diagram to file, I am validating file path exists. If it does not exists then I create file path before hand

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
I have validated following:

1. GUID is correct, before saving image diagram to file, I am fetching entity before to validate entity is not deleted.
Yes, but is it in the correct format? Most operations on the project interface require the guid to be in xml format, which is different from the format used by rest of the API. See https://sparxsystems.com/enterprise_architect_user_guide/17.1/add-ins___scripting/project_2.html

(Don't ask for my opinion on that :-X)

Geert