cancel
Showing results for 
Search instead for 
Did you mean: 

Illegal typecode 20801

Former Member
0 Kudos

Hi guys,

I ran this impex as export script: insert_update ElementsForSlot;&Item;creationtime[forceWrite=true,dateformat=dd.MM.yyyy hh:mm:ss];language(isocode)[unique=true];modifiedtime[dateformat=dd.MM.yyyy hh:mm:ss];owner(&Item);qualifier;reverseSequenceNumber;sequenceNumber;source(catalogVersion(catalog(id),version),uid)[unique=true,allownull=true];target(catalogVersion(catalog(id),version),uid)[unique=true,allownull=true]

And i got this exception:

FO | jvm 2 | main | 2017/11/07 12:36:42.158 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.79] INFO | jvm 2 | main | 2017/11/07 12:36:42.158 | at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] INFO | jvm 2 | main | 2017/11/07 12:36:42.158 | Caused by: de.hybris.platform.impex.jalo.header.UnresolvedValueException: cannot resolve value 'null' for attribute 'error reading attribute ElementsForSlot.target : illegal typecode 20801 - cannot find JNDI name' because: illegal typecode 20801 - cannot find JNDI name INFO | jvm 2 | main | 2017/11/07 12:36:42.158 | at de.hybris.platform.impex.jalo.exp.ImpExExportWriter.getAttributeValue(ImpExExportWriter.java:295) ~[impexserver.jar:?] INFO | jvm 2 | main | 2017/11/07 12:36:42.158 | at de.hybris.platform.impex.jalo.exp.ImpExExportWriter.getAllAttributeValues(ImpExExportWriter.java:265) ~[impexserver.jar:?] INFO | jvm 2 | main | 2017/11/07 12:36:42.158 | at de.hybris.platform.impex.jalo.exp.ImpExCSVExportWriter.writeLine(ImpExCSVExportWriter.java:227) ~[impexserver.jar:?]

But actually, item with typecode 20801 doesn't exist in the system.

ElementsForSlot typecode is 1085

ElementsForSlot.target (AbstractCMSComponent) typecode is 1084

What is the reason of exception? Someone can help me?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

segalerba
Explorer
0 Kudos

Hi Jurij,,

The typecode attribute must specify a unique number to reference the type. The value of the typecode attribute must be a positive integer between 0 and 32767 (2^15-1) and must be unique throughout the SAP Hybris Commerce as it is part of the PK generation mechanism. Typecode values between 0 and 10000 are reserved for hybris-internal use, typecode values larger than 10000 are free for you to use.

It's possible that 20801 doesn't exist but maybe it did and that's an the issue is there. Also it's possible that doing an update system solves the issue.

Former Member
0 Kudos

see https://help.hybris.com/6.6.0/hcd/8c6254f086691014b095a08a61d1efed.html there are also some exceptions for type codes that you can use:

  • commons extension (132xx)

  • processing extension (327xx)

  • Legacy xprint extension (244xx,245xx)

  • b2bcommerce extension (100xx)

Answers (2)

Answers (2)

Former Member
0 Kudos

I am having same issue , where typecode is not available in DB but the issue is coming : ain | 2018/11/30 15:23:10.608 | ... 326 more INFO | jvm 1 | main | 2018/11/30 15:23:10.608 | Caused by: de.hybris.platform.jalo.JaloSystemException: illegal typecode 28850 - cannot find JNDI name INFO | jvm 1 | main | 2018/11/30 15:23:10.608 | at de.hybris.platform.util.EJBTools.instantiatePK(EJBTools.java:146) ~[coreserver.jar:?] INFO | jvm 1 | main | 2018/11/30 15:23:10.608 | at de.hybris.platform.persistence.property.DBPersistenceManager.loadAndCacheInfo(DBPersistenceManager.java:251) ~[coreserver.jar:?]

Already checked deployments table , the typecode is not present . Any ideas ?

former_member620692
Active Contributor
0 Kudos

Please check Maintenance>Cleanup>Type system and if it shows any orphaned type(s), clean the same. Also, check other two tabs (Orphaned media files and Drop Type System) and clean them if you find anything there.

Former Member
0 Kudos

Guillermo, thanks for your answer. "Update running system" - was performed before.

Former Member
0 Kudos

- Hi , what did you do to fix this ?