Skip to main content
Hello,

 

 

I have a workspace in which depending on certain conditions I am calling another workspace using python shutdown script.

 

This is my script

 

 

if DataType == 'ABCD':

 

   wsr.runWithParameters(current_workspace_dir+"/test1.fmw",{"SourceDataset_GENERIC": FME_MacroValuesr"Input_FileName"]})

 

else....

 

 

If I run this from desktop works fine. but when I publish it to the server. It gives error in processmonitor log as "No FME Floating Licenses are available.  Contact your distributor to purchase additional licenses."

 

 

Other workspaces without chainig works fine. Is this something to do with licensing?

 

 

Cheers

 

 

 

 

Hi,

 

 

looks like you're trying to run fme.exe on your server, where you probably haven't got any FME Desktop licenses. This is not something I'd recommend, as you're effecively treating FME Server like a desktop machine and thereby losing out on a lot of server-specific functionality.

 

 

You should look into using the FME Server REST API (http://docs.safe.com/fme/html/FME_REST/) to start jobs on FME Server. You can call the API functions in your shutdown script using e.g. the python module urllib (https://docs.python.org/2/library/urllib.html). Look also at the FME Server Playground (http://playground.fmeserver.com/) for more examples.

 

 

David

Reply