Skip to main content
Question

Connection to Shape File reader seams to get lost...


vyaenec
Contributor
Forum|alt.badge.img+1

I have multiple shape files from different owners classified in sub-directories.

All Owners have shape reader entries in my workbench.

Every once and a while some readers don't read the file and so I loop input. Testing the input in the workbench with the inspector option works well so the data is there. I need to recreate the reader.

How can I test non read input from these readers and terminate the workbench before going any further. When I put a counter after the reader it isn't triggered so that doesn't work.

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

I'd much prefer to find out why those files are not being read.

  1. Are you sure they are there and have the exact same filename as the feature type? Do you get the Unexpected Input dialog when the files are not being read (if you've disabled that, go to Tools -> FME Options -> Workbench and press the "Reset Warning Dialogs" button)
  2. Could it be that the files are opened in another application while FME is trying to read them?
  3. Could it be that the structure (schema) of the files has been changed?

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • January 25, 2017

To test for no features I use something similar to the following

Creator to a feature merger supplier port with the features to test to the requestor port, merge on a constant, e.g. one then a terminator on the unreferenced port


vyaenec
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 25, 2017
redgeographics wrote:

I'd much prefer to find out why those files are not being read.

  1. Are you sure they are there and have the exact same filename as the feature type? Do you get the Unexpected Input dialog when the files are not being read (if you've disabled that, go to Tools -> FME Options -> Workbench and press the "Reset Warning Dialogs" button)
  2. Could it be that the files are opened in another application while FME is trying to read them?
  3. Could it be that the structure (schema) of the files has been changed?

Hi,

 

 

1. they are there and are the same. I will reset the warning dialogs.

 

2. They aren't open by another application. As you see in screenshot I can open them with right button > Inspect.

 

3. hasn't changed...

 

 

 


vyaenec
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 25, 2017
ebygomm wrote:

To test for no features I use something similar to the following

Creator to a feature merger supplier port with the features to test to the requestor port, merge on a constant, e.g. one then a terminator on the unreferenced port

Will test this out thanks.

 

 


redgeographics
Celebrity
Forum|alt.badge.img+50
vyaenec wrote:

Hi,

 

 

1. they are there and are the same. I will reset the warning dialogs.

 

2. They aren't open by another application. As you see in screenshot I can open them with right button > Inspect.

 

3. hasn't changed...

 

 

 

Right, judging by that blue line in the log window I expect the Unexpected Input will show at least some data (shapefiles) being read that can't be matched to feature types in your workspace. That may be by design, but it may give you a clue as to what's going on.

 

 

But then again, if you inspect the features by right clicking on the feature type and choosing the inspect option that proves the data is there and can be read by FME.

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 25, 2017

I agree with @redgeographics the better solution is to determine why certain feature types are not being read. That said there is a handy-dandy NoFeatureTester custom transformer that Aaron Koning created many years ago.


vyaenec
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • January 25, 2017
ebygomm wrote:

To test for no features I use something similar to the following

Creator to a feature merger supplier port with the features to test to the requestor port, merge on a constant, e.g. one then a terminator on the unreferenced port

Works fine Tnx

 

 


lau
Forum|alt.badge.img+3
  • June 16, 2017

I had the same problem. I added a Filter Type and it worked...


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