Skip to main content
Question

Has anyone come across the error code associated with global variable 'pmi_is_error' in custom transformer?

  • December 1, 2020
  • 4 replies
  • 16 views

ed_wibberley
Contributor
Forum|alt.badge.img+2

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

 

 

 

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.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • December 1, 2020

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


ed_wibberley
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 2 replies
  • December 1, 2020

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


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • December 1, 2020

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.


ed_wibberley
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 2 replies
  • December 3, 2020

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!