title: How to fetch local attribute value through QuerySpec in Windchill
body: <p>I created a local string type attribute on a type in Windchill. I'm trying to fetch the value of that attribute using QuerySpec but it's throwing the following exception:</p>
  
  <blockquote>
    <p>2019-04-16 20:53:05,092 INFO [ajp-nio-127.0.0.1-8011-exec-5]
    wt.system.err - wt.query.QueryException: Attribute
    "ptc_str_89typeInfoLCSProduct" is not a member of class "class
    com.lcs.wc.product.LCSSKU" 2019-04-16 20:53:05,092 INFO
    [ajp-nio-127.0.0.1-8011-exec-5] wt.system.err - Nested exception is:
    Attribute "ptc_str_89typeInfoLCSProduct" is not a member of class
    "class com.lcs.wc.produ</p>
  </blockquote>
  
  <p>Following is my code:</p>
  
  <pre><code>    String colorwayId = product.getFlexType().getAttribute("colorwayID")
              .getColumnName();
      QuerySpec qs = new QuerySpec(); 
      int classIndex = qs.appendClassList(typeDefRef.getKey().getClass(), false); 
      ClassAttribute ca = new ClassAttribute(
              typeDefRef.getKey().getClass(), colorwayId);
      qs.appendSelect(ca, new int[] { classIndex }, false);
      QueryResult qr = PersistenceHelper.manager.find(qs);
  </code></pre>