Skip to main content
Solved

Truncating Feature Class tables

  • May 15, 2015
  • 1 reply
  • 22 views

I'm working with ArcSDE geodatabases.

 

 

I have a workspace that builds areas from boundary lines. If it encounters any areas that can't be built, the boundary lines for that area are written to a separate feature class table. I've set the writer to INSERT and I've set the error table to Truncate Table First: Yes.

 

 

It all works fine, the error table is emptied and the new errors written. However, when the process completes successfully and no errors are written to the error table, the error table isn't truncated. As a result, the errors from the last run in which errors were detected are still found in the error table.

 

 

What is the best workaround to ensure that the error table is empty when no errors are encountered?

Best answer by pratap

Hi,

 

 

Kindly find the screenshot below...

 

 

This will pass the first feature to sqlExecutor which has truncate table statement with DB credentials as parameters. After truncating all the features will go to processing as per the work bench.

 

 

Regards,

 

Pratap
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

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Best Answer
  • May 18, 2015
Hi,

 

 

Kindly find the screenshot below...

 

 

This will pass the first feature to sqlExecutor which has truncate table statement with DB credentials as parameters. After truncating all the features will go to processing as per the work bench.

 

 

Regards,

 

Pratap

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