Skip to main content
Solved

Generic Reader can't read shp files when published to FMEServer?

  • July 5, 2019
  • 1 reply
  • 34 views

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!

Best answer by redgeographics

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)

View original
Did this help you find an answer to your question?

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Best Answer
  • July 5, 2019

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings