Select to view content in your preferred language

Backing Up Files Using Model Builder

2994
13
06-15-2012 08:22 AM
by Anonymous User
Not applicable
Original User: MCline19

I am trying to create a model, using model builder, that will back up multiple files under certain conditions.  The files being backed up are .sde files and I need them to be backed up as .shp files.  I am using the "Feature Class To Shapefile (multiple)" conversion tool to accomplish this. 

The conditions I need to meet include:
1. Keeps current file names
2. Overwrites existing files
3. Only backup files which have been modified since the previous backup

Currently, using the "Feature Class to Shapefile (multiple)" conversion tool, I have been able to meet my first two conditions; however I have not been able to figure out how to satisfy my third condition or if their is a tool capable of doing this.

I would appreciate any advise on how to solve this issue. 
THANKS!
Marie
0 Kudos
13 Replies
by Anonymous User
Not applicable
Original User: MCline19

UPDATE:

I was able to get the precondition set and the connection has been made between Compare Status and Calculate Value.  Additional to your suggestions, I had to right click on the Calculate Value tool, go to Properties, click the Precondition tab, and check the box next to Compare Status. 

However, I am still getting an error with regard to my syntax.  Any suggestions would be appreciated.
0 Kudos
ShitijMehta
Esri Regular Contributor
Hi MCline19,

Check the attached image. Hope this helps. Write back if this does not work.
by Anonymous User
Not applicable
Original User: MCline19

Shitij,

I was able to make a lot of progress with your last post.  Thank you!  However, there still seems to be something wrong with the code block.  It returns an error. 

I have attached an image of the model, the calculate value if-then code block, and the error message I receive when running the entire model. 

The error states 'true' is not defined.  I also ran the model using 2 files I knew to be different, which returned the same error stating 'false' is not defined. 

I apprecaite your help.
0 Kudos
ShitijMehta
Esri Regular Contributor
Hi MCline19,

Try this:

Put quotes around the x("%CompareStatus%") in the expression of the Calculate Value tool. Does that work?
0 Kudos