Select to view content in your preferred language

How to fix 001659: Consolidating toolbox

5519
15
04-15-2018 12:27 AM
CesarGarrido_Lecca_Rivera
Occasional Contributor

Hi guys, I have an error when I try to consolidate my project package. It already used the Analyse pro tool and fixed the python error, but still, have this problem.

0 Kudos
15 Replies
DanPatterson_Retired
MVP Emeritus

You have a warning in the 2nd image.. what was it?

The error message

http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-a...

suggests a syntax error, an incompatibility issue or missing data as the reasons.

Was the toolbox moved prior to consolidating?

Have you checked the script for errors or dependencies?

Is there only one script in the toolbox?

Any system scripts?

CesarGarrido_Lecca_Rivera
Occasional Contributor

Hello Dan , 

There is still a problem with the consolidation. 

I am still looking for a way to consolidate the toolbox inside the project. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

Sorry, I had questions, but I take it that your response would be a no to all and the threads didn't help.

0 Kudos
CesarGarrido_Lecca_Rivera
Occasional Contributor

Was the toolbox moved prior to consolidating?

   What do you mean with moved prior consolidating? 

   I have created a new toolbox and copy all the python tools to the new one, however, it did not work. 

Have you checked the script for errors or dependencies?

   I have checked it using the tool 

Is there only one script in the toolbox?

   I have 6 phyton tools Analise tool for pro.

   I showed me some error in my python scripts that I fixed. Now It did not show me anything else. However, it still does not work. 

Any system scripts?

 What do you mean by system scripts?

   Other than the python tools, I don't have anything else.

Also, I have tried to use the consolidate project tool. I did not work. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

These are system scripts... scripts from ArcToolbox

"I have created a new toolbox and copy all the python tools to the new one, however, it did not work."

Normally the toolbox that you create and your scripts (not system scripts) are housed in the same folder so that whey they are copied and moved, they remain referenced 'relative' to one another.

0 Kudos
CesarGarrido_Lecca_Rivera
Occasional Contributor

Hello Dan, 

Thank you for your help! 

I have checked my toolbox but I don't find any relative reference. All the python scripts are inside the project folder, so I don't know why it does not find them or consolidate them.

0 Kudos
DanPatterson_Retired
MVP Emeritus

You also seem to have a basemap showing. 

This caused an issue in at least one thread

https://community.esri.com/message/448522?commentID=448522#comment-448522

CesarGarrido_Lecca_Rivera
Occasional Contributor
0 Kudos
DanPatterson_Retired
MVP Emeritus

Just tested one of my toolboxes.

  • deleted all history from the project
  • removed unnecessary layers and tables
  • ran Analyze... no errors

My project structure is pretty typical.  Everything I need goes into one folder,

  • a *.gdb for data inputs and results
  • one folder for all scripts associated with the toolbox... note: no system tools (ie clip, buffer... anything in ArcToolbox already)
  • store the *.aprx in the folder as well
  • store the *.tbx in the folder

If your project structure differs or you have history associated with it, then that may be the unknown source of the errors.

Good luck.  If it doesn't work, then zip you stuff and sent to Tech Support for further analysis

Error message url http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-a...

leading me more to think you should examine your script, and delete your history