COMException: Exception from HRESULT: 0x80040304

492
1
09-29-2022 01:32 PM
AGheidian
New Contributor

Hi, I have geoprocessing tool which opens a MXD template file to make PDF out of the map, using Export method.

Intermittently this tool throws error  COMException: Exception from HRESULT: 0x80040304

I am releasing COM objects but still sometimes throws this error. This is snapshot of my code:

AGheidian_1-1664483488904.png

 

 

Anyone has any ideas?

 

1 Reply
RussellBrennan
Esri Contributor

This error maps to one of the following:

 FDO_E_DATASET_CANNOT_RENAME "Cannot rename the dataset with objects already open."
 CADASTRAL_E_CONTAINS_COMPRESSEDDATA "No license available."
 WMSCONN_E_MISSING_URL "URL is missing."
 NETWORKLOADER_E_INVALID_FIELD_NAME "An invalid field name was specified."
 E_TEMPMETAFILE "Cannot create temporary metafile."

 

Hope this helps.

0 Kudos