cancel
Showing results for 
Search instead for 
Did you mean: 

Could not read attribute from price IDOC in grouping handler

Former Member
0 Kudos

Hi All,

I am trying to read the KUNNR attribute in COND_A04. (Price Feed), from Grouping handler to perform custom logic.

I am using 5.7 datahub and 5.5 version Hybris. Can you tell me if i am missing anything? I am getting the below error :

com.hybris.datahub.model.InvalidAttributeException: Field : E1KOMG-KUNNR is not defined for type : RawCOND_A and cannot be retrieved

My changes in Raw extension :

        <dependency>
         <extension>mycustom-canonical</extension>
         <extension>sappricing-raw</extension>
            <extension>sappricing-canonical</extension>
          </dependency>
 </dependencies>    
 
  <rawItems>
     <item>
         <type>RawCOND_A</type>
         <attributes>
             <attribute><name>E1KOMG-KUNNR</name></attribute> 
         </attributes>
         </item>
 </rawItems>    

 <canonicalItems>
      <type>CanonicalPrice</type>
               <attribute>
                 <name>priceType</name>
                 <transformations>
                     <transformation>
                         <rawSource>RawCOND_A</rawSource>
                         <expression>E1KOMG-KUNNR</expression>
                     </transformation>
                 </transformations>
             </attribute>
 </canonicalItems> 

In Canonical extension :

     <dependency>
         <extension>sappricing-canonical</extension>
     </dependency>
 </dependencies>

         <canonicalItems>
         <item>
         <type>CanonicalPrice</type>
         
         <status>ACTIVE</status>
         <attributes>
             <attribute>
                 <name>priceType</name>
                 <model>
                     <localizable>false</localizable>
                     <collection>false</collection>
                     <type>String</type>
                     <primaryKey>false</primaryKey>
                 </model>
             </attribute>
         </attributes>
     </item>
     </canonicalItems>



former_member224482
Active Contributor
0 Kudos

Attach the complete tomcat standard output from the startup of the datahub.
I expect extensions loading issues.

Be aware that the supported scenario is a Data Hub and platform running the same version.

Former Member
0 Kudos

Thanks a Lot Robin. I see the below error in tomcat logs. But the line at "lineNumber: 33; columnNumber: 10 is ", Which is a valid type. Can you guide me how to resolve the error?

  <type>CanonicalPrice</type>

Error: org.xml.sax.SAXParseException; lineNumber: 33; columnNumber: 10; cvc-complex-type.2.4.a: Invalid content was found starting with element 'type'. One of '{"http://www.hybris.com/schema/":item}' is expected.

former_member224482
Active Contributor
0 Kudos

Please attach the complete tomcat standard output from the startup of the datahub.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member224482
Active Contributor
0 Kudos

As the SAX error mention ... item}' is expected.