Skip to main content
Solved

Writing an empty Feature Class

  • October 14, 2013
  • 1 reply
  • 61 views

mapnut
Contributor
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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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
Safer
Forum|alt.badge.img+21
  • Safer
  • 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