Failed to open map view

22651
70
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)
70 Replies
CoryLanghoff1
Emerging Contributor

I just wrapped up a two week effort to try and consistently reproduce this error with little luck.  Out of 21 attempts running through a lab exercise where many students were having this issue, the problem occurred four times.  The rest of the attempt ended without the error cropping up.  I started a ticket with ESRI support and they also found that it was an inconsistent error.  In the end the support ticket was closed and the issue was logged as an inconsistent bug.  At least they are certainly aware of it now.  Hopefully it will be resolved in future versions. 

The recommendation for now is to start a new project, perform all of the raster processing steps necessary, including using the reclassify tool, in one sitting.  The data should be fine in the geodatabase  Then start a new project or return to your project in progress before the raster steps and add the data back into that.  Kind of a pain that we were not able to reproduce this but at least it does not seem to be too much of a stumbling block.

0 Kudos
JohnHughson
Occasional Contributor

Hello CoryLanghoff1, would you happen to have a BUG number for that? I might be witnessing the same thing here. 

Kind regards,

John

0 Kudos
CoryLanghoff1
Emerging Contributor

John, the bug number is 

  • BUG: BUG-000166072  
0 Kudos
tschwartz_RES
Emerging Contributor

Same issue here, all I did was try to Duplicate the map in question, it sat there and spun for a while and then came the popup with the error message "Failed to Open Map View".  Closing the project and re-opening did not solve the issue.   

In my case I was simply trying to duplicate the map in question from the Catalog pane.

ArcGIS Pro 3.2.2 and no files or data are located on OneDrive so this is not related to that.

0 Kudos
KatyAppleton1
Frequent Contributor

We see this occasionally, but not in a replicable way, in our teaching (classes of 50-70 each semester, Pro 3.2). It causes immense frustration if it happens around deadlines. I have one come up today, which is why I found this thread. Unfortunately for troubleshooting purposes students are not always good at documenting what they have done (outside the History panel which is now inaccessible!) but it is certainly possible that Reclassify may have been used recently.

We already recommend regular backups via zipping the project folder (data and .aprx) and saving the zip to OneDrive. But of course not everyone does this. And if the problem comes with doing a Save As after using Reclassify (per the bug report), we might be contributing to it by recommending a periodic Save As to ensure there are backup versions of the .aprx!

Is there any point in raising with support now?

0 Kudos
JM32
by
Occasional Contributor

I am having this issue as of 8/26/2024 in an ArcGIS Pro project (version 3.3.1).

  • I did none of the steps that caused Bug-000166072
  • The project is actually the Community Map Program project (version 4; DataPrepToolProProject) created by Esri for contributors. It was working fine last week. However, when I went to open it this morning, the PreparedLayers map is broken and won't load. 
  • Additionally, the default geodatabase is empty in the project.
0 Kudos
KoryKramer
Esri Community Moderator

@JM32 Could you email me your .aprx? It doesn't even need to be packed with the data - we'll just want to take a look at the .aprx itself to see if we can diagnose and potentially recover it for you. 

kkramer@esri.com

Thanks

JM32
by
Occasional Contributor

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

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