Skip to main content
Archived

Automatic correcting/renaming of auto-generated Python variable names

Related products:FME Form
  • June 30, 2016
  • 0 replies
  • 17 views

lifalin2016
Influencer
Forum|alt.badge.img+40

Hi,

I've just spend hours to track down an error in a custom Workbench transformer calling a Python transformer.

Both transformers were fine, but I finally tracked the error down to being the name I'd given the Workbench transformer which contained a dash (as in "...T-SQL..."). FME used that name indiscriminately to auto-generate the code to call the Python transformer, yielding a not very clear error message, caused by dashes not being allowed in variable names in Python.

FME do already replace blanks with underscores when naming its own transformers, so why not extend this to do the same with dashes (and all other illegal Python variable name characters) ?

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.