| Numéro d’ID de bogue | 
                        BUG-000159162 | 
                         | Envoi | June 16, 2023 | 
 
                        | Dernière modification | August 18, 2025 | 
 
                        | S’applique à | ArcGIS API for Python | 
 
                        | Version trouvée | 2.1.1 | 
 
                        
                        | Système d’exploitation | Windows OS | 
 
                        | Version du système d’exploitation | 11.0 64 bit | 
 
                        
                        
                        
                        | Statut | As Designed
                            
                        
                        
                            Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
                        
                         | 
 
                        
                    
                    
                    
                        
                         
                         
                
                
                
                    
                    
                
                    
                        
                            
                        
                            Informations supplémentaires
                            To preserve the order, preserve_layer_ids must be set to True, and the layers/tables must be provided to the view.
res2 = mgr.create_view(
    name=f"my_view_{uuid.uuid4().hex[:4]}",
    view_layers=[item.layers[3], item.layers[1]],
    preserve_layer_ids=True,
)
This results in a layer with two layers in the view. The layer IDs are preserved as 83 and 1.
                        
                        
                            Solution de contournement
                            - Use the ArcGIS Online user interface (UI) to create the layer view.
 - Keep the default sequential layer IDs (0,1, 2, 3, and so forth).
 
                        
                    
                    Étapes pour reproduire
                    
                
             
            
                ID de bogue: BUG-000159162
                Logiciel: