cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade 2105 to 2205: Error when migrate data is selected

Yasbet_Alvarez
Explorer
0 Kudos

In cloud the error is:

The logs show the following:

platform-update-e2deb0cb08-411628-offlineupdate-798f8 log:Target exception: java.lang.IllegalArgumentException: unexpected parse error at commerceservices-items.xml: error parsing system commerceservices at lines [368-389] : extension 'b2bcommerce' not found within de.hybris.bootstrap.typesystem

platform-update-e2deb0cb08-411628-offlineupdate-798f8 log:2023-10-09 20:00:50,958 main ERROR JsonLayout contains an invalid element or attribute "pattern"

The extension is loading correctly:

Any idea how to correct it? I'd be really grateful

romitchhabra
Participant
0 Kudos

Can you please share the code from line 368-389 in commerceservices-items.xml

Yasbet_Alvarez
Explorer
0 Kudos

Sorry romit.c I solve the problem, thanks.

amishkumar
Member
0 Kudos

Hi yasbet.alvarez.godinez
I am facing same issue but not migrating data as i choosed initialize database as its new setup and getting below error
deployment stuck
main ERROR JsonLayout contains an invalid element or attribute "pattern"
could you please explain how did you resolve your issue or any idea on this?

View Entire Topic
GiuseppeRamella
Associate
Associate
0 Kudos

Hello,

The definition of typecode 10042 was moved from extension b2bcommerce to commerceservices.

 

 
In 2105.26, it started at line 712 of hybris/bin/modules/b2b-commerce/b2bcommerce/resources/b2bcommerce-items.xml.
 
In 2205.0, it starts at line 368 of hybris/bin/modules/commerceservices/resources/commerceservices-items.xml.
 
<itemtype code="FutureStock" autocreate="true" generate="true">
<deployment table="futurestock" typecode="10042" />
<attributes>
<attribute qualifier="productCode" type="java.lang.String">
<modifiers read="true" write="true" search="true" optional="false" />
<persistence type="property" />
</attribute>
<attribute qualifier="quantity" type="java.lang.Integer" >
<description>Amount that will be available</description>
<persistence type="property" />
</attribute>
<attribute qualifier="date" type="java.util.Date" >
<description>Data on which the product will be available</description>
<persistence type="property" />
</attribute>
</attributes>
<indexes>
<index name="productCodeIdx">
<key attribute="productCode" />
</index>
</indexes>
</itemtype>

This kind of issue is described in KBA 3273785, which points to API, Data Model, and Spring Framework Changes.

Regards,
Giuseppe