2

I am having issues getting a simple SQL query to work in ModelBuilder. It works fine when I use it with the standard "Select features by attributes tool", but ModelBuilder doesn't find the required fields.

"Sheet1$.Number" is not NULL AND Pipe.CLASS = 'IS17' AND "Sheet1$.CLASS" not like '17'

ERROR 000230: Failed selecting with "Sheet1$.Number" is not NULL AND Pipe.CLASS = 'IS17' AND "Sheet1$.CLASS" not like '17'
An expected Field was not found or could not be retrieved properly.
An expected Field was not found or could not be retrieved properly. [Pipe]
Failed to execute (Make Feature Layer).

closed as off-topic by PolyGeo Jan 27 '17 at 4:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • is Pipe a feature in a file gdb? if not, it might require delimiters as well, described here – fluidmotion Oct 19 '14 at 12:24
  • Thanks @fluidmotion, it is an FGDB - I think the issue may be the fields from the joined table. If I strip the query down to basics, it will return anything native to the fgdb however when attempting to extract anything from the joined fields; it fails. – GEOREID Oct 19 '14 at 12:31
  • is the join defined in modelbuilder? or is modelbuilder working on a layer within the project rather than the feature in the fgdb? – fluidmotion Oct 19 '14 at 13:03
  • To try and progress this would you be able to show us what some simple test data and a simple model would look like that would enable us to reproduce what you are describing, please? Also, what version of ArcGIS are you using? – PolyGeo Jan 27 '17 at 4:24