Question

TempPathnameCreator not working as expected


I am trying to send the MapnikRasterizer result to HTMLReportGenerator, but directly connecting them doesn't work. So I am using a TempPathnameCreator and FeatureWriter in between to write the png and then send it to the HTMLReportGenerator. However, HTMLReportGenerator can't read the path generated during the test running.

FME version: 2021.2

imageError: HTMLReportGenerator: Unable to open image file 'D:/FME_TEMP/wbrun_1652070048335_8656/fmetmp_1c/1652075715010_34268_d\\r_2030.png.png'. Please ensure this file exists


2 replies

Userlevel 6
Badge +32

This is because the FeatureWriters PNG (Portable Network Graphics) Summary Feature's _dataset attribute contains only the folder, not the file.

  • In the TempPathnameCreator leave the field Extension empty.
  • In the FeatureWriter, set the Rater File Name to "Output".
  • HTMLReportGenerator, set the Image file to "@Value(_dataset)\\Output.png"

This is because the FeatureWriters PNG (Portable Network Graphics) Summary Feature's _dataset attribute contains only the folder, not the file.

  • In the TempPathnameCreator leave the field Extension empty.
  • In the FeatureWriter, set the Rater File Name to "Output".
  • HTMLReportGenerator, set the Image file to "@Value(_dataset)\\Output.png"

That's why sometimes I am getting " /output.png/Output.png"

Thank you, works now.

Reply