Skip to main content
Solved

Writing an empty Feature Class

  • October 14, 2013
  • 1 reply
  • 34 views

mapnut
Participant
Forum|alt.badge.img+1
Hi All,

 

 

I have a similar problem to one that was asked here at the end of last year...  I have the need to get FME to truncate all of the writers in a workbench regardless of the number of features being written to them.  Setting the properties of each Feature Type works perfectly except if there are NO features being passed to the writer...

 

 

I also have users out there with MXDs which reference all 18 of these SDE feature classes, so deleting them before (or as) the workbench starts is not an option - it has to be a truncate.

 

 

I have a Python guru looking at it at the moment, but it would be nice if someone on here has had a similar experience and can offer an alternate solution to cutting code.

Best answer by fmelizard

Hi,

 

 

I dont have experience with this, but just an idea.....it still involves the python startup script as shown here;

 

http://fmepedia.safe.com/articles/Samples_and_Demos/Using-a-Python-Startup-Shutdown-Script-to-Perform-Geoprocessing-with-Arcpy

 

 

but with the truncate table (data management) command from the ESRI environment instead of the delete rows.

 

 

Hope this helps,

 

Itay
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • October 14, 2013
Hi,

 

 

I dont have experience with this, but just an idea.....it still involves the python startup script as shown here;

 

http://fmepedia.safe.com/articles/Samples_and_Demos/Using-a-Python-Startup-Shutdown-Script-to-Perform-Geoprocessing-with-Arcpy

 

 

but with the truncate table (data management) command from the ESRI environment instead of the delete rows.

 

 

Hope this helps,

 

Itay

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings