AnsweredAssumed Answered

{"Illegal state: The underlying GeoPackage is closed"}

Question asked by Shulligan on Jul 2, 2020
Latest reply on Aug 28, 2020 by MBranscomb-esristaff

Has anyone come across an issue when loading a GeoPackage by cloning the FeatureLayers within?


I have a scenario that requires the enclosed FeatureLayers within a GeoPackage to be closed so they can be farmed out to a MapView & SceneView. 

However, when either the MapView or SceneView triggers the Load on a cloned FeatureLayer from a GeoPackage, the following LoadError is presented: {"Illegal state: The underlying GeoPackage is closed"}


I have attached a sample project that demonstrates this behaviour.


Is my scenario achievable?

If so, can anyone explain why when cloning the FeatureLayer does it think the GeoPackage is closed?