Skip to main content

Dear Team,

I have an Emailer transformer at the end of my FME workspace (FMW file) that is configured to send a completion notification to my Gmail account. However, I am encountering an error when it tries to send the email.

I have already updated the Emailer transformer, Python, and other relevant components, but the issue persists. But from desktop it runs perfectly. only when i run from command prompt it gives error.("D:\Program Files\FME2024\fme.exe" D:\fvt2\1_spatial_tables_ver9.fmw )

Could someone in the group please help me identify what might be causing the problem?

Thank you in advance for your support.

Best regards,

Farook

2025-04-29 05:17:31|1614.6|  0.5|STATS |DateTimeStamper (TeeFactory): Cloned 1 input feature(s) into 1 output feature(s)
2025-04-29 05:17:31|1614.6|  0.0|STATS |CRCCalculator_2_Executor (ExecuteFunctionFactory): Executed FME Functions on 1 input feature(s) -- 1 feature(s) completed and 0 feature(s) rejected
2025-04-29 05:17:31|1614.6|  0.0|INFORM|Successfully closed POSTGRES database reader
2025-04-29 05:17:31|1614.6|  0.0|INFORM|Successfully closed POSTGRES database reader
2025-04-29 05:17:31|1614.6|  0.0|STATS |SQLExecutor_5 INITIATOR Splitter (TeeFactory): Cloned 1 input feature(s) into 2 output feature(s)
2
025-04-29 05:17:34|1615.0|  0.4|ERROR |Message Type: fme::internal::_v0::py::Exception
2025-04-29 05:17:34|1615.0|  0.0|ERROR |Python Exception <ModuleNotFoundError>: No module named 'fmepy_emailer'
2025-04-29 05:17:34|1615.0|  0.0|FATAL |PythonFactory failed to load python symbol `fmepy_emailer.Emailer'. An outdated FME packaged transformer may be in use. Please check Tools > FME Options > FME Packages to confirm that all FME Packages are up to date

2025-04-29 05:17:34|1615.0|  0.0|FATAL |Factory proxy not initialized
2025-04-29 05:17:34|1615.0|  0.0|FATAL |Emailer_CALLER (PythonFactory): PythonFactory failed to process feature
2025-04-29 05:17:34|1615.0|  0.0|STATS |Stored 4 feature(s) to FME feature store file `D:\FME_TEMP\3_sheath_content_rep_ver9_041421\inspector.ffs'
2025-04-29 05:17:34|1615.0|  0.0|INFORM|Saving feature type index into file 'D:\FME_TEMP\3_sheath_content_rep_ver9_041421\inspector.fsi'
2025-04-29 05:17:34|1615.0|  0.0|INFORM|Finished saving feature type index into file 'D:\FME_TEMP\3_sheath_content_rep_ver9_041421\inspector.fsi'
2025-04-29 05:17:34|1615.0|  0.0|WARN  |An error has occurred. Check the logfile above for details
2025-04-29 05:17:34|1615.0|  0.0|INFORM|Translation FAILED with 5 error(s) and 1 warning(s) (0 feature(s) output)

2025-04-29 05:17:34|1615.0|  0.0|INFORM|FME Session Duration: 1 hour 3 minutes 11.4 seconds. (CPU: 1560.7s user, 54.3s system)
2025-04-29 05:17:34|1615.0|  0.0|INFORM|END - ProcessID: 17164, peak process memory usage: 4888996 kB, current process memory usage: 264768 kB

Hi ​@f.kemminje ,

It seems that the error message suggests the Emailer package doesn't match the current environment. Have you tried updating the Emailer package from FME Options? 

2025-04-29 05:17:34|1615.0|  0.0|FATAL |PythonFactory failed to load python symbol `fmepy_emailer.Emailer'. An outdated FME packaged transformer may be in use. Please check Tools > FME Options > FME Packages to confirm that all FME Packages are up to date


Sometimes uninstalling and reinstalling the package helps.


I am still facing this error. My Email Transformer is up to date, but the issue persists. When I run the workflow through FME Desktop (Form), it works fine. However, when I run it from the command prompt, the email is not sent and I receive the error log shown below. Could you please clarify why FME uses different Python environments for Desktop (Form) and fme.exe? This inconsistency is causing problems.

 

2025-08-21 06:23:59|1853.9|  0.0|INFORM|Successfully closed POSTGRES database reader
2025-08-21 06:23:59|1853.9|  0.0|STATS |SQLExecutor_5 INITIATOR Splitter (TeeFactory): Cloned 1 input feature(s) into 2 output feature(s)
2025-08-21 06:24:02|1854.3|  0.4|ERROR |Message Type: fme::internal::_v0:🇵🇾:Exception
2025-08-21 06:24:02|1854.3|  0.0|ERROR |Python Exception <ModuleNotFoundError>: No module named 'fmepy_emailer'
2025-08-21 06:24:02|1854.3|  0.0|FATAL |PythonFactory failed to load python symbol `fmepy_emailer.Emailer'. An outdated FME packaged transformer may be in use. Please check Tools > FME Options > FME Packages to confirm that all FME Packages are up to date
2025-08-21 06:24:02|1854.3|  0.0|FATAL |Factory proxy not initialized
2025-08-21 06:24:02|1854.3|  0.0|FATAL |Emailer_CALLER (PythonFactory): PythonFactory failed to process feature


Hi Farook,

I’m sorry to hear that you’re still facing this issue.

Regarding FME python environments: fme.exe and Workbench use the same embedded Python for a given FME install, but packages and add-on libraries are resolved per Windows user profile. So, if fme.exe is run via CMD prompt under a different user than Workbench, that profile won’t have the Emailer package resulting in the ModuleNotFoundError that you encountered.

The first thing I would test is whether fme.exe can run the job successfully when CMD is opened as your regular user (not admin). If this works, then my next step would be to install the Emailer .fpkg for the account that I regularly use for running fme.exe.

Of course, it’s always possible that there are other factors at play here but this is where I would start. If you aren’t making any headway, you can always file a support ticket and we will work with you one-on-one to resolve this ASAP.

Best,

Carl


Reply