Skip to main content
Solved

new to workspace runner

  • February 8, 2018
  • 6 replies
  • 127 views

gis2020
Contributor
Forum|alt.badge.img+5

Hi All,

I am trying to use workspace runner for one my task.i have around 50 GDB which i want to run using one of my other workbench output of this workbench is going to be in XML . that is reason why i had thought of using workspace runner. I am using path reader to specify the folder , where i had kept my GDB's . I want my output XMl's to be stored in folder with name of input file GDB. not sure how i can do that . the workbench which i will be running using the work space runner has already set for segregate the output XML base on other fan out criterion. any help will be appreciated on this on how i can stored my XML's in folder with input GDB name .

Best answer by redgeographics

There's a few useful attributes coming out of the Path reader: path_unix (or path_windows, depending on your OS) and path_rootname. I've used those to set up the workspacerunner like this:

path_rootname contains the name of the GDB (without the .gdb) and is used to specify the name of the output file.

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.

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+61
  • Celebrity
  • Best Answer
  • February 8, 2018

There's a few useful attributes coming out of the Path reader: path_unix (or path_windows, depending on your OS) and path_rootname. I've used those to set up the workspacerunner like this:

path_rootname contains the name of the GDB (without the .gdb) and is used to specify the name of the output file.


gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 8, 2018

There's a few useful attributes coming out of the Path reader: path_unix (or path_windows, depending on your OS) and path_rootname. I've used those to set up the workspacerunner like this:

path_rootname contains the name of the GDB (without the .gdb) and is used to specify the name of the output file.

Hi redgeographics,

 

thank for your help . i tried using your solution and it works fine but it just takes the first GDB and create the output for that and then it stops. dosen't go for the rest of the GDB's

redgeographics
Celebrity
Forum|alt.badge.img+61
Hi redgeographics,

 

thank for your help . i tried using your solution and it works fine but it just takes the first GDB and create the output for that and then it stops. dosen't go for the rest of the GDB's
That's odd. How many features are coming out of the Path reader?

 

 


gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 8, 2018
That's odd. How many features are coming out of the Path reader?

 

 

for test i had just taken 2 GDB's .. so it shows 3 feature from path reader but out is created for 1st GDB only.

 

 


redgeographics
Celebrity
Forum|alt.badge.img+61
for test i had just taken 2 GDB's .. so it shows 3 feature from path reader but out is created for 1st GDB only.

 

 

It might be due to how the child workspace is set up. I've created mine to be a simple dynamic A-to-B translation. Could you share the logs of both workspaces?

 

 


gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 8, 2018
That's odd. How many features are coming out of the Path reader?

 

 

Hi redgeographics.. thnks a lot . i have recreated everything and it worked .