Skip to main content
Solved

Dynamically Create FileGeodatabase output?

  • August 19, 2019
  • 1 reply
  • 68 views

Forum|alt.badge.img

I have a input file geodatabase that just has points. The workbench first uses the file name extractor transformer to get info on the input file. I use the results from the file name extractor to build out the output file path because I want it to be dynamic.

 

For Example

Input: C:/Temp/Input.gdb

Output: C:/Temp/Output.gdb (Dynamically created based on the file dir of the Input, name would also be generated)

On the output file geodatabase destination fanout directory I put in the user param "OutputDir" that is blank to start but filled out by an attributeCreator that overwrites the value after the file name extractor transformer runs, same for the output filename but it does not seem to work dynamically and the value must be hardcored in the writer to work?

Best answer by tforward

I got it to work by sending the dynamically created path name as an attribute instead of a User Param. Then in a FeatureWriter setting Dataset to the attribute

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

Forum|alt.badge.img
  • Author
  • Best Answer
  • August 19, 2019

I got it to work by sending the dynamically created path name as an attribute instead of a User Param. Then in a FeatureWriter setting Dataset to the attribute