Skip to main content
Solved

How to run the Workbench automatically when FME is launched?

  • March 28, 2022
  • 8 replies
  • 178 views

Forum|alt.badge.img

Hello everyone,

 

I'm new to FME and i'm using FME desktop. I would like to know if it is possible run my workbench automatically without clicking the run button in fme? 

 

Thanks in advance.

Best regards,

 

Gentjan

Best answer by nielsgerrits

Thank you very much nielsgerrits for your answer. Do you have any code example how to create my batch file please?

"Open your existing workspace and select Batch Deploy from the Run menu. The Create Batch Translation Wizard launches. Click Next to proceed through the following dialogs:

Note: If the Run > Batch Deploy option is disabled, it is because there is currently no source or destination dataset defined in the workspace."

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.

8 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • March 28, 2022

I do not think this is possible, but you can generate a batch file to do this. See Running a Batch Translation.


Forum|alt.badge.img
  • Author
  • 5 replies
  • March 29, 2022

Thank you very much nielsgerrits for your answer. Do you have any code example how to create my batch file please?


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • March 29, 2022

Thank you very much nielsgerrits for your answer. Do you have any code example how to create my batch file please?

"Open your existing workspace and select Batch Deploy from the Run menu. The Create Batch Translation Wizard launches. Click Next to proceed through the following dialogs:

Note: If the Run > Batch Deploy option is disabled, it is because there is currently no source or destination dataset defined in the workspace."


Forum|alt.badge.img
  • Author
  • 5 replies
  • March 29, 2022

Ok thanks a lot, i tried what you said , it creates my .bat and .tcl file when i save the script but when i do 'run now' i get the following error where if i run the workbench normally it runs perfectly.

 

image


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • March 29, 2022

Ok thanks a lot, i tried what you said , it creates my .bat and .tcl file when i save the script but when i do 'run now' i get the following error where if i run the workbench normally it runs perfectly.

 

image

You need to choose "Save Scripts to run outside of Workbench". Then close workbench and doubleclock the .bat file you generated to run the workspace. Then check the output and the logfile.


Forum|alt.badge.img
  • Author
  • 5 replies
  • March 29, 2022

That's excatly what i did but when i doubleclick the .bat it opens for a second the cmd then nothing happens, it doest recreate the log file and output. I dont know that i am missing as i have done same as the instruction you told me.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • March 29, 2022

That's excatly what i did but when i doubleclick the .bat it opens for a second the cmd then nothing happens, it doest recreate the log file and output. I dont know that i am missing as i have done same as the instruction you told me.

It is really hard to say what happens without workspace and data to reproduce. If I were you I would try with a very simple workspace (CSV reader 2 CSV writer) to get it to work. When it works add other parts to it. When it stops working you get a better idea which added part is creating issues.


Forum|alt.badge.img
  • Author
  • 5 replies
  • March 29, 2022

Indeed my workbench is really simple, i have a reader of csv dataset with a single column of dates for 4 months(120 rows) where i eliminate the date of weekends in the outuput csv. The .bat file obviously doesnt work but what i dont get is that when in Batch Translation Run Option is choose Run Now i get the error i showed you above.

CSV reader: Failed to open file 'traitement' for reading. Please ensure that the file exists and you have sufficient privileges to read it

CSV reader: Failed to open file 'traitement' for reading. Please ensure that the file exists and you have sufficient privileges to read it

A fatal error has occurred. Check the logfile above for details

 

Thank you again for your time, i really appreciate.