Skip to main content

I'm running a workspace that ultimately uses a python caller to generate a chart from features processed within it. To allow me to use the group by function I have wrapped the python caller in a custom transformer. This was working great but I am now getting the following error code when I try to run the workspace:

 

Attempting to retrieve global variable 'pmi_is_error' which was not set -- setting it to the empty string

Failed to create process, error was 'Access is denied.

 

', command line arguments were.......

 

I've tried running the python caller outside of the custom transformer on single features which works fine so I assume the fault must be with the custom transformer.

 

Any ideas of how to solve this would be greatly appreciated!

 

Thanks

 

 

 

Are you using any parameters directly in the pythoncaller? If so, the first thing i'd try is fetching them into attributes and referencing them that way


Are you using any parameters directly in the pythoncaller? If so, the first thing i'd try is fetching them into attributes and referencing them that way

Thanks a lot for the quick response. I do have a number of published parameters I'm using in the python caller though they were working fine when I ran it last week.

 

I'll have a go at making them into attributes and let you know how I get on.

 

Cheers


Thanks a lot for the quick response. I do have a number of published parameters I'm using in the python caller though they were working fine when I ran it last week.

 

I'll have a go at making them into attributes and let you know how I get on.

 

Cheers

Parameters in custom transformers (CT) are prefixed by the custom transformer name, so are a very bad idea to use in pythonCallers inside a CT. Use a parameter fetcher as ebygomm suggests and you'll save a lot of headaches.


Thanks a lot for the quick response. I do have a number of published parameters I'm using in the python caller though they were working fine when I ran it last week.

 

I'll have a go at making them into attributes and let you know how I get on.

 

Cheers

Thanks for the help @ebygomm​  and @jdh​  that solved the issue. I'll make sure I do this in future. Thanks again!


Reply