Monday, April 25, 2016

PME merge was not created

[4/25/16 17:46:32:388 CDT] 0000010f NativeLog     E com.ibm.mdm.mds.log.LogAdapter error MPI_MemNextSect: integrity error (missing mpi_memhead?), getType='ASMEMBER', tabName='mpi_membktd', expected 14010480, found 14010423.



We deleted records from eme_rechead but we I belive somehow some records were missed in eme_recbktd
So, the tables were not in synch i.e. extra records were present in eme_recbktd which were not associated with eme_rechead and hence the error was coming when any Suspect party was getting loaded and PME merge was not created.

Exception Handling in Behavior Extension

Exception Handling in Behavior Extension


DWLStatus status = params.getExtensionSetStatus();


status = addError(theControl, TCRMErrorCode.UPDATE_RECORD_ERROR, ErrorReasonCode.Error_Reason_Code, e.getMessage());


params.setExtensionSetStatus(status);


by Ritwik Sen

Monday, April 18, 2016

Below code snippet can be used for throwing error/exception from External rule to Business Proxy..

TCRMExceptionUtils
.throwTCRMException(
new Exception(),
new TCRMInsertException(),
new DWLStatus(),
9L,
WCCICompositesComponentID.ORG_CALCULATION_UTIL_COMPONENT,
TCRMErrorCode.INSERT_RECORD_ERROR,
WCCICompositesErrorReasonCode.ORGCALCULATIONUTIL_NO_RECORD_IN_DUNS_TABLE,
control, this.errHandler);






toXML overloaded Method



XxxBObj.toXML("TCRM", "MDMDomains.xsd", 0,null, false);
//Use cautiously. It does not work well with metadata map. It modifies original object and assigns null to values to one's with empty value.





https://www.ibm.com/developerworks/community/forums/html/topic?id=f6f893b3-8a9a-444a-a5f2-fd7b52f0e452

MDMDomains.xsd | MDMCommon.xsd | Parser Error

Problem(Abstract)

When any extension XSD refers to types in the MDMDomains.xsd, all transactions that use the MDMCommon.xsd will fail with the error "Parser DWLTransaction failed. The format of the message is not correct or an application error occurred".

Symptom

All transactions that use the MDMCommon.xsd fail and return the error "Parser DWLTransaction failed. The format of the message is not correct or an application error occurred." The Throwable attribute in the response always says "Cannot resolve the name 'XXXXXX' to a(n) 'element declaration' component." regardless what request is about. An example of such response looks like below:
<DWLError>
<ComponentType>106</ComponentType>
<ErrorMessage>Parser DWLTransaction failed. The format of the message is not correct or an application error occurred.</ErrorMessage>
<ErrorType>READERR</ErrorType>
<LanguageCode>100</LanguageCode>
<ReasonCode>4928</ReasonCode>
<Severity>0</Severity>
<Throwable>com.dwl.base.requestHandler.exception.RequestParserException: src-resolve: Cannot resolve the name &apos;ProductBObj&apos; to a(n) &apos;element declaration&apos; component.</Throwable>
</DWLError>

Cause

If the request XML uses the MDMDomains.xsd then the problem won't occur. Batch processor will also fail in such case since it runs transactions internally to maintain its state and these transactions use MDMCommon.xsd.

The entity resolver of the request xml parser collects and combines all the extension XSDs (i.e. xsd-fragements) with no regard for which XSD the request XML uses. When the request XML uses MDMCommon.xsd, however, there is an extension XSD that refers to types in the MDMDomain.xsd, the combined XSD becomes invalid, which causes the problem.

Resolving the problem

If the client runs transactions directly, then changing the request xml to use MDMDomains.xsd instead of MDMCommon.xsd should work.

If the client runs transactions through batch processor, then both the request xmls in the batch input file or request xml templates and the batch processor internal transaction templates (all files in <batch_home>/templates/* folders) need to be changed to use MDMDomains.xsd instead of MDMCommon.xsd.
Good one for troubleshooting IBM Infosphere MDM

http://www-01.ibm.com/support/docview.wss?uid=swg27045725