Select to view content in your preferred language

Don't change my python code when packaging (i.e., don't insert/break my code with `g_esri_variable_#`)

172
2
12-03-2024 05:30 PM
Status: Closed
Labels (1)
btripp
by
Emerging Contributor

I continually run into an issue where I get errors from changes being made to my code by the ArcGIS packaging service for python scripts in ArcGIS Pro toolboxes. Specifically, there are variables called `g_esri_variable_#` that are inserted seemingly at random into the middle of my script, usually overwriting text and breaking everything. Moreover, it isn't even consistent. Re-publishing to a server will sometimes fix it. Or sometimes it doesn't work locally until I publish it, then it does. It seems to be related to characters that might be somehow reserved, like "\" and "{}", but I can't find a consistent pattern.

For clarity, I am currently using ArcGIS Pro 3.3.1, but I have found numerous other accounts online of this issue occurring in prior versions. Seems like somebody really needs to find this bug and fix it.

2 Comments
JesseCloutier

Hi @btripp, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is Esri Technical Support. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.

By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.

As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.

*Note that this is a scripted message prompted when posts allude to a potential product bug.

HannesZiegler
Status changed to: Closed

Closing as per response above