| Numéro d’ID de bogue | 
                        BUG-000151711 | 
                         | Envoi | August 19, 2022 | 
 
                        | Dernière modification | April 29, 2025 | 
 
                        | S’applique à | ArcGIS Pro | 
 
                        | Version trouvée | 2.9.2 | 
 
                        
                        | Système d’exploitation | Windows OS | 
 
                        | Version du système d’exploitation | 10.0 64 Bit | 
 
                        
                        
                        
                        | Statut | Under Consideration
                            
                        
                        
                            Le problème a été examiné par l’équipe de développement. Il n’a pas été défini comme prioritaire dans un plan de version, mais un suivi va être mis en place pour déterminer son impact global. Les facteurs pris en compte dans le processus de hiérarchisation sont, entre autres, le nombre d’utilisateurs concernés ou à l’origine de la demande, l’impact sur les activités et l’existence d’une solution de contournement. Si un bogue a des effets négatifs sur vos activités, reportez-vous à la procédure de réaffectation d’un défaut (https://support.esri.com/en/technical-article/000024129).
                        
                         | 
 
                        
                    
                    
                    
                        
                         
                         
                
                
                
                    
                    
                
                    
                        
                            
                        
                        
                            Solution de contournement
                            Remove the .upper() Python function from two label class expressions and re-run the Notebook code to successfully create and publish the Vector Tile Package to ArcGIS Online with the following steps:
- In the same ArcGIS Pro project for reproducing the error, navigate to the 'TxDOT_Vector_Tile_Basemap' Map tab.
 - Select the 'TxDOT_Roadways' feature layer.
 - On the Ribbon, under the Feature Layer section that appears at the top, select the Labeling tab.
 - In the Label Class category, change the Class dropdown to 'FC Streets' and click the Expression icon next to the Field dropdown for the Label Class pane to appear.
 - In the pane, in the Expression box, note the expression [MAP_LBL].upper().
 - Remove the .upper() Python function from the Expression and click Apply.
 - Re-run steps 4-6 for the 'City Streets' class and save the project.
 - Navigate to the 'Vector Tile_1' Notebook tab.
 - Select the Cell tab at the top of the Notebook, go to All Output, and select Clear.
 - Run cells 1-7 again.
 
No error is generated now after running Cell 7, and the code successfully creates and publishes the Vector Tile Package to ArcGIS Online.
Another workaround is to instead use geoprocessing tools to create and share the Vector Tile Package to ArcGIS Online. In this workflow, no AttributeError occurs with the .upper() Python function applied to label class expression(s) to feature layers included in the map being packaged. Run the following steps:
- In the Geoprocessing pane, search for the Create Vector Tile Package tool and run it.
 - Search for the Share Package tool and run it to share the package to ArcGIS Online.
 
Another option is to open the above mentioned geoprocessing tools and instead of running the tools as is after filling out all of the parameters:
- Navigate to the dropdown for Run and select Copy Python Command.
 - Paste the code into a Python window and run the Vector Tile Package tool as a script.
 - Do the same for running the Share Package tool as a script.
 
Again note that in this workflow as well, no AttributeError occurs with the .upper() Python function applied to label class expression(s) to feature layers included in the map being packaged.
                        
                    
                    Étapes pour reproduire