Failed to open map view

37207
79
Jump to solution
09-01-2021 11:43 PM
NadaKadhim
Regular Contributor
Hello everyone,
 
I have been working for 15 days on an important project. Every step/process that I was working on I saved it. When I open ArcGIS Pro (version 2.8) I found this message.
 
Please, could you help me in fixing this issue as soon as possible?
I'll highly appreciate your help.
Thank you.
Best regards,

2021-09-01_231007.png

 

 

Tags (2)
79 Replies
JonM32
by
Frequent Contributor

@KoryKramerI just emailed you the file. Thanks for taking a look!

Jon
0 Kudos
AmyHut
by
Emerging Contributor

I am also experiencing this now with two Pro projects -- the .aprx opens but maps will not load -- but my colleague can open them just fine. I have not run the Reclassify tool but have used Clip Raster in both projects prior to loosing access to them. 

Thanks for any advice anyone may have. 

0 Kudos
AndrewBryson1
Occasional Contributor

Just had our first encounter with this error, and we're a shop that doesn't use Reclassify, or really work with imagery at all.

BACKGROUND: I'm the tech guy, I upgraded from 2.9.9 to 3.2.2 earlier this year, and the rest of the mappers have now followed suit. When my colleague tried to open one of his .aprx files for a quarterly update process, he got a "Failed to open map view" error on one of the project's 9 maps.

Things I've tried while troubleshooting:
- Copying the broken map (No option to Paste)
- Duplicating the broken map (Pops up the same error message)
- Renaming the broken map (Spins for a while, then stops, without the name updating)
- Accessing the broken map via the listMaps method of the arcpy.mp.ArcGISProject object (Semi-success. I cannot retrieve the broken map with a wildcard search, but calling listMaps without a wildcard returns a list of 9 maps: the 8 working maps, and a map with no name.)

So now I have this arcpy.mp.Map object with no name, and I did some more testing. The name property is an empty string, and when I try to set it, I get this error:

Traceback (most recent call last):
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 109, in _set
    return setattr(self._arc_object, attr_name, cval(val))
AttributeError: can't set attribute

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\arcobjects\_base.py", line 112, in _set
    raise NameError(
NameError: The attribute 'name' is not supported on this instance of Map.

So, that's pretty weird.

Next I tried calling arcpy.Describe, and the Python window thought for a long time before returning this error message:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 1335, in Describe
    return gp.describe(value, data_type)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 392, in describe
    self._gp.Describe(*gp_fixargs(args, True)))
RuntimeError: Object: Describe input value is not valid type

 

A similar thing happens when calling getDefinition, either V2 or V3:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\utils.py", line 191, in fn_
    return fn(*args, **kw)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp.py", line 3944, in getDefinition
    return GetJSONTypeOBJ(json.loads(convertArcObjectToPythonObject(self._arc_object.GetCimJSONString(*gp_fixargs((cim_version), True)))))
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

 

Somehow, against all odds, this broken Map object with no name, no definition, no description, can still return the full table of contents when I call listLayers.

And that's as far as I went with it.

0 Kudos
KoryKramer
Esri Community Moderator

@AndrewBryson1 could you send me the .aprx file(s) where you're getting this 'Failed to open map view' error? We're investigating this and examples are helpful. Thanks kkramer@esri.com

0 Kudos
KatyAppleton1
Frequent Contributor

@KoryKramer do you still need files? I have a student who seems to reliably experience this following a reclassify. Pro 3.3.

0 Kudos
ChrisKorose
New Contributor

I had been plagued by the Reclassify Bug for many versions through Pro 3.3.1.  Apparently at 3.4.0 this problem has gone away for me. FWIW.

NadaKadhim
Regular Contributor

Thank you for your reply.

0 Kudos
XiurongWhitton
New Contributor

I had this same problem this morning! (I had been using Reclassify, but not using One Note!). I upgraded to ArcGIS Pro 3.4.0 and opened the Map that had originally failed to open, without any problem. 

It appears that ESRI may have solved the problem!

JoeLummi
Regular Contributor

I am having the same issue on 3.3.  Any fix is appreciated.

0 Kudos
JoeLummi
Regular Contributor

Hey, ESRI.  I just had another map (a few month old backup of the same APRX mentioned above) return the same error.

Capture.PNG

This is really starting to erode my confidence in this software.  Any chance of getting an APRX doctor or something similar?

0 Kudos