Skip to main content

hello,

I used the Generic reader to read shpfiles in workbentch and it runs well

but when I published it to FMEServer it can't read,why?

I checked the fmeserver logs as follows:

--------------------------

Generic Reader: Unable to guess a valid reader name from dataset 'C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.dbf,C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.prj,C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.sbn,C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.sbx,C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.shp,C:\\Program Files (x86)\\FMEServer\\Server\\Upload\\Samples\\sampleWorkspace2.fmw\\02E4A34DB47D2A91DAB1CA7252C23994\\JSON6.shx'. A NULL reader will be used instead.

----------------------------------------------

How to solve this ? thank you!

The reason it works in workbench is because you select the .shp file there but if you drag and drop all the files that make up the shapefile in the FME Server interface it will consider each of them separately, so the .dbf file will be processed by the DBF reader, if there's an .xml it will try to use one of the XML readers and so on.

If you manually browse for the input files and do an upload there you can select just the .shp file, a little clunky and if you are setting this up to be used by many others you may need to document this part (or try and avoid the Generic reader as it is not ideal for formats that consist of multiple files)


Reply