Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ea0921 on July 04, 2025, 03:58:54 pm

Title: Getting error of Remote Procedure Failed when trying to Save EA Diagram to File
Post by: ea0921 on July 04, 2025, 03:58:54 pm
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
Title: Re: Getting error of Remote Procedure Failed when trying to Save EA Diagram to File
Post by: Geert Bellekens on July 04, 2025, 05:45:38 pm
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
Title: Re: Getting error of Remote Procedure Failed when trying to Save EA Diagram to File
Post by: ea0921 on July 04, 2025, 07:10:15 pm
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
Title: Re: Getting error of Remote Procedure Failed when trying to Save EA Diagram to File
Post by: Geert Bellekens on July 04, 2025, 08:01:32 pm
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 (http://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