7 Replies Latest reply on Aug 10, 2010 8:55 AM by csny490

    Overwrite geoprocessing output

    sharut
      Hi. I couldn't find any solution to the below described problem in the forum. Please let me know if there is a such thread or if you know how to solve it.
      I have checked the "Overwrite the output of geoprocessing operations" in the Tools->Options->General window in ArcMAP 9.3.1. But when I am runing the same model second time, I am getting an error message: ERROR 000210: Cannot create output...
      If I am manually removing the output files generated from the first run, the model works fine. But again for the next run it gives the same error. It seems that the "Overwrite the output of geoprocessing operations"  parameter is not haveing any influence.
      Please let me know if you have any idea what is wrong here.
      Thanks in advance.
        • Re: Overwrite geoprocessing output
          dwynne-esristaff
          Hi. I couldn't find any solution to the below described problem in the forum. Please let me know if there is a such thread or if you know how to solve it.
          I have checked the "Overwrite the output of geoprocessing operations" in the Tools->Options->General window in ArcMAP 9.3.1. But when I am runing the same model second time, I am getting an error message: ERROR 000210: Cannot create output...
          If I am manually removing the output files generated from the first run, the model works fine. But again for the next run it gives the same error. It seems that the "Overwrite the output of geoprocessing operations"  parameter is not haveing any influence.
          Please let me know if you have any idea what is wrong here.
          Thanks in advance.


          What tools are you working with in your model? 

          Also, does this page help?: http://help.arcgis.com/EN/ArcGISDesktop/10.0/help/index.html#//00vp0000000n000210.htm

          -Dave
          • Re: Overwrite geoprocessing output
            sharut
            Hi Dave. Sorry for late response (I forgot to change the notification option to email.)

            The help page you have mentioned is not helping. I have admin rights on the computer and I am the only person using it. The address is correct. When I am changing the output files name for each runs it is working fine.

            The model is quite simple. It uses only Select by location and Copy tools. See how model looks in the attachment.

            Thanks
            Harut
            • Re: Overwrite geoprocessing output
              bbicking-esristaff
              Hi Dave. Sorry for late response (I forgot to change the notification option to email.)

              The help page you have mentioned is not helping. I have admin rights on the computer and I am the only person using it. The address is correct. When I am changing the output files name for each runs it is working fine.

              The model is quite simple. It uses only Select by location and Copy tools. See how model looks in the attachment.

              Thanks
              Harut



              Hi Harut,

              I've seen this myself and have not been able to reproduce it consistently to pin it down.
              See if validating the model before running it again helps.
              I'm looking into this more and will post more as/if I find more.
              Meanwhile, since your model is not large, re-create it completely! from scratch and see what happens then.
              Thank you, Barbara Bicking

              Here's what I found: a layer in the TOC on the output data puts a lock on the data causing the error.
              • Re: Overwrite geoprocessing output
                sharut
                Hi bbicking1.

                Thanks for your response. The Validation is not helping. But it seems I have found what is causing the problem. I want to save output into a file geodatabase. But when I have tried to save it as a simple shapefile it worked fine. It seems that geoprocessing output in the file geodatabase is not allowing to overwrite it. Do you have any idea why it can happen?
                • Re: Overwrite geoprocessing output
                  csny490
                  ArcMap and ArcCatalog seem to cling to locks on FCs (especially in PGDB and sometimes even FGDB). So if you had run your model, and had the result FC added to ArcMap, and then rerun your model (using the same output fc path) I bet that it is having trouble deleting it, since it had been added to the active session of ArcMap at one point. Try exiting ArcMap completely, restart it, and then rerun the Model. Does it work then?
                  • Re: Overwrite geoprocessing output
                    sharut
                    Thanks Chris for your response.
                    I have tried your suggestion. But even after restarting ArcMap the model is still not working until I delete the previous output in FGDB.
                    • Re: Overwrite geoprocessing output
                      csny490
                      Just an FYI but I gave up on ModelBuilder a long time ago because of constant stuff like this.

                      But...

                      Maybe a quick work around would be to have a condition in the Model that if the specified output exists, then delete it 1st, then run the guts of the Model?