Skip to main content

WPC method getEntryByPrimaryKey() is returning a null value


Technote (FAQ)


Question

When using the method getEntryByPrimaryKey() from Websphere Product Center (WPC) to retrieve information from a new created entry, you received "null" as the return result.

Cause

You cannot getEntryByPrimaryKey() to retrieve the result of a newly created entry. This is working as designed.

Answer

You need to save an entry first by calling the method, such as, saveEntryByPrimaryKey(), so that it is stored in the database, before calling getEntryByPrimaryKey() to retrieve the result. The scripting library reference mentions this in the deprecated getCtgItemByPrimaryKey(), but not for getEntryByPrimaryKey().

Cross reference information
Segment Product Component Platform Version Edition
Information Management InfoSphere Master Data Management Server for Product Information Management AIX, Linux, Solaris 6.0, 9.0, 9.1
Information Management InfoSphere Master Data Management Collaboration Server AIX, Linux, Solaris 10.0

Product Alias/Synonym

MDMCS
Infosphere Master Data Management Collaboration Server
WPC
MDMPIM
MDM Server for PIM
WebSphere Product Center
InfoSphere MDM Server for PIM
InfoSphere Master Data Management Server for Product Information Management

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere Product Center

Scripting/API


Software version:
5.3.2


Operating system(s):
AIX, Linux, Solaris


Reference #:
1288726


Modified date:
2012-11-02

Translate my page

Content navigation