X_I_Product_Category.load: NO Data found for I_Product_Category_ID=

22 views
Skip to first unread message

Crispian Blackbourn

unread,
Jul 18, 2023, 5:51:04 AM7/18/23
to IDempiere
Hi Community,

Hope you are all well? 

Would someone be able to help me with this please? 

I've created a plugin to import Product Categories much in the same fashion as ImportBPartner and ImportProduct.
I used the Model Generator in eclipse to create my I and X classes and have written my ImportProductCategory class (which i include).

It all seems to work as anticipated except I get these sort of errors in the console which increase in number dependant on the amount of errors ;

10:23:17.215===========> X_I_Product_Category.load: NO Data found for I_Product_Category_ID=1000142 [256]
java.lang.Exception
at org.compiere.model.PO.load(PO.java:1493)
at org.compiere.model.PO.load(PO.java:1410)
at org.compiere.model.PO.load(PO.java:1368)
at org.compiere.model.PO.<init>(PO.java:226)
at org.compiere.model.PO.<init>(PO.java:162)
at co.uk.opensourceit.base.model.X_I_Product_Category.<init>(X_I_Product_Category.java:68)
at co.uk.opensourceit.base.factory.ModelFactory.getPO(ModelFactory.java:40)
at org.compiere.model.MTable.getPO(MTable.java:524)
at org.compiere.model.MRecentItem.getLabel(MRecentItem.java:361)
at org.adempiere.webui.dashboard.DPRecentItems.refresh(DPRecentItems.java:275)
at org.adempiere.webui.dashboard.DPRecentItems.updateUI(DPRecentItems.java:333)
at org.adempiere.webui.util.ServerPushTemplate$1.onEvent(ServerPushTemplate.java:58)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.invoke(DesktopImpl.java:1856)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleInfo.access$1100(DesktopImpl.java:1843)
at org.zkoss.zk.ui.impl.DesktopImpl$ScheduleListener.onEvent(DesktopImpl.java:1867)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3191)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3161)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:3103)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)
at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1884)
at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1656)

It would appear that the class is searching for data that has been processed and subsequently deleted - can anyone enlighten me as to where the problem is happening and any clues as to how to fix please?

Many thanks in advance

Crispian

ImportProductCategory.java

Jesús Castillo

unread,
Jul 18, 2023, 7:55:10 AM7/18/23
to idem...@googlegroups.com
Hi,

This is not an error from the import process, It happens because of the refresh in the Recent items panel. I think taht you change  a record in the Import window manually, That it put in a recent item, after the import process, that item is dropped, Then the log shows you that error.
 
Atte: Jesus Castillo.


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/1236934068.2334478.1689673859216%40mail.yahoo.com.

Crispian Blackbourn

unread,
Jul 18, 2023, 8:00:46 AM7/18/23
to idem...@googlegroups.com

Hi Jesus,

Does that mean its nothing to worry about?

Thanks

Crispian

Jesús Castillo

unread,
Jul 18, 2023, 8:05:05 AM7/18/23
to idem...@googlegroups.com
Hi, 

Yes, It does. In the error log you can not see the import class. It means that everything in ok.
 
Atte: Jesus Castillo.

Mailtrack Remitente notificado con
Mailtrack
07/18/23, 08:02:58 AM

Reply all
Reply to author
Forward
0 new messages