I'm having trouble with the migration of one of my workflows to the FME server. The goal is to create a legend out of attribute_1 (images) and attribute_2 (text). The end result is this:
How it works:
My program (outside the FME workflow) prepares a table (MySQL) with the text and the image (SVG tag). When the table is finished I use FME to save these SVG tags to an text file with .svg extension on my hard disk and then convert them into raster using the MapnikRasterizer and store them again as PNG files on my hard disk using FeatureWriter (PNG).
Running this with FME desktop is no problem (hence the above result) and so far so good.
But, I’m having trouble getting this to work with FME server parameters. For example when one of the attributes has the following value.
2296 Attribute(string) : `row1' has value `$(FME_SHAREDRESOURCE_TEMP)/Temp/242/2.svg'
It ends with this error:
So i tried to fix it and using string replacer on row1 and pointing to the file directly:
2005 Attribute(string) : `row1' has value `/data/fmeserver/resources/temp/Temp/242/2.svg'
With the same settings as above gives me:
Where is the shapefile coming from? I never used anything like a shapefile in this flow. But saw that the mapnik uses them for temp files:
2019-11-07 15:05:50| 5.4| 0.1|INFORM|Using Shape Writer to write shape files to folder `C:\Users\jeroen\AppData\Local\Temp\mapnikfactory1573135549949_15276'
2019-11-07 15:05:50| 5.4| 0.0|INFORM|Opened Shape File 'C:\Users\jeroen\AppData\Local\Temp\mapnikfactory1573135549949_15276\0.shp' for output
2019-11-07 15:05:50| 5.4| 0.0|INFORM|Opened DBF file 'C:\Users\jeroen\AppData\Local\Temp\mapnikfactory1573135549949_15276\0.dbf' for output
Is there a way to fix this or am i missing something?