Hello All,

I have added two new fields to a entity in data-source-config.xml file.
On running full-import it gets indexed fine and I can see the values for
those two fields just like other fields.

However on adding a nested entity under that entity and using a
TemplateTransformer on nested entity I am unable to see values for those
two fields.Rest fields from parent entity are showing the values without
any issues.

<<data-source-config.xml>>

<entity name="attributevalues"
dataSource="mongod"
transformer="TemplateTransformer"
onError="continue"
query="SELECT
attrValsidStr,orgidStr,name,attrNameId,access_name,hexColor,image,updatedAt
FROM attributevalues WHERE attrValsidStr IN ${skus.skuAttrValIdListStr}"
deltaImportQuery="SELECT
attrValsidStr,orgidStr,name,attrNameId,access_name,hexColor,image,updatedAt
FROM attributevalues WHERE orgidStr = '${dataimporter.request.orgid}' AND
attrValsidStr IN ${skus.skuAttrValIdListStr} AND attrValsidStr =
'${dataimporter.delta.attrValsidStr}'"
deltaQuery="SELECT attrValsidStr FROM attributevalues WHERE orgidStr =
'${dataimporter.request.orgid}' AND updatedAt &gt;
'${dataimporter.last_index_time}'"
parentDeltaQuery="SELECT idStr FROM skus WHERE orgidStr =
'${dataimporter.request.orgid}' AND skuAttrValIdListStr =
'${attributevalues.attrValsidStr}'"
>
<field column="access_name" name="attrval_access_name" />
* <field column="hexColor" name="attrval_hexColor" />*
* <field column="image" name="attrval_image" />*
<field column="updatedAt" name="attrval_updatedAt" />
<entity name="attributenames"
dataSource="mongod"
transformer="TemplateTransformer,AttributesFieldTransformer"
onError="continue"
query="SELECT idStr,orgidStr,name,access_name,updatedAt FROM attributenames
WHERE idStr = '${attributevalues.attrNameId}'"
deltaImportQuery="SELECT idStr,orgidStr,name,access_name,updatedAt FROM
attributenames WHERE orgidStr = '${dataimporter.request.orgid}' AND idStr =
'${attributevalues.attrNameId}' AND idStr = '${dataimporter.delta.idStr}'"
deltaQuery="SELECT idStr FROM attributenames WHERE orgidStr =
'${dataimporter.request.orgid}' AND updatedAt &gt;
'${dataimporter.last_index_time}'"
parentDeltaQuery="SELECT attrValsidStr FROM attributevalues WHERE orgidStr
= '${dataimporter.request.orgid}' AND attrNameId =
'${attributenames.idStr}'"
>
<field column="attrval_access_name"
template="${attributevalues.access_name}" />
*<field column="attrval_hexColor" template="${attributevalues.hexColor}" />*
* <field column="attrval_image" template="${attributevalues.image}" />*
<field column="attrval_updatedAt" template="${attributevalues.updatedAt}" />


Here's the schema definition for those two fields :

<<schema.xml>>

  <field name="attrval_hexColor" type="string" indexed="true" stored="true"
/>
 <field name="attrval_image" type="string" indexed="true" stored="true" />

Any idea on what could be the issue here?

Regards,

Abhijit

Reply via email to