Topic
  • 6 replies
  • Latest Post - ‏2010-10-22T06:16:08Z by SystemAdmin
SystemAdmin
SystemAdmin
938 Posts

Pinned topic READERR 796: Search for the following failed: Party

‏2010-08-05T11:47:24Z | mdm-migration
Hi Team,
I was trying to invoke a searchFSParty from my finder class .

TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
fspersonsearch.setLastName("tintumon");
try {
TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
TCRMPersonSearchResultBObj perSearchResult=(TCRMPersonSearchResultBObj)tcrmReps.getData();

} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

It was giving me ERROR - 10 READERR 796: Search for the following failed: Party
Same the case with TCRMCorePartyFinder.

But I am able to invoke a getContract()
new TCRMFinancialFinder().getContract(contractId, "1", "1", control);
successfuly inside the same class.

Could anyone tell me the reason ?.

Regards
Nikkie
  • SystemAdmin
    SystemAdmin
    938 Posts

    Re: READERR 796: Search for the following failed: Party

    ‏2010-08-05T14:47:15Z  
    Hi Nikkie,
    It might be because of the missing mandatory inputs. The transactionReference guide shows something like this.

    Usage Information

    At minimum, the person last name or organization name, and one contract element must be provided.

    Mandatory Input

    Contract
    LastName or OrganizationNameInquiry

    Thanks
    Sunil
  • SystemAdmin
    SystemAdmin
    938 Posts

    Re: READERR 796: Search for the following failed: Party

    ‏2010-08-16T11:41:35Z  
    Hi ,
    I was able to run succesfully a searchFSParty using the XML below.(Only last name)
    <TCRMTx>
    <TCRMTxType>searchFSParty</TCRMTxType>
    <TCRMTxObject> TCRMFSPersonSearchBObj</TCRMTxObject>

    <TCRMObject>
    <TCRMFSPersonSearchBObj >

    <LastName>singh</LastName>

    </TCRMFSPersonSearchBObj>
    </TCRMObject>

    </TCRMTx>
    </TCRMService>

    I also tried setting the service org: name as well as lastname in the code,but it still fails.

    Any clue?

    regards
    Nikkie
  • SystemAdmin
    SystemAdmin
    938 Posts

    Re: READERR 796: Search for the following failed: Party

    ‏2010-08-16T11:54:43Z  
    Hi ,
    I was able to run succesfully a searchFSParty using the XML below.(Only last name)
    <TCRMTx>
    <TCRMTxType>searchFSParty</TCRMTxType>
    <TCRMTxObject> TCRMFSPersonSearchBObj</TCRMTxObject>

    <TCRMObject>
    <TCRMFSPersonSearchBObj >

    <LastName>singh</LastName>

    </TCRMFSPersonSearchBObj>
    </TCRMObject>

    </TCRMTx>
    </TCRMService>

    I also tried setting the service org: name as well as lastname in the code,but it still fails.

    Any clue?

    regards
    Nikkie
    Hi,

    You need to call setControl (with a DWLControl object) on the TCRMFSPersonSearchBObj before using it to invoke the searchFSParty transaction.

    Catherine.
  • SystemAdmin
    SystemAdmin
    938 Posts

    Re: READERR 796: Search for the following failed: Party

    ‏2010-08-16T13:06:23Z  
    Hi,

    You need to call setControl (with a DWLControl object) on the TCRMFSPersonSearchBObj before using it to invoke the searchFSParty transaction.

    Catherine.
    Hi Catherinie,
    Thank you very much!!.:)

    The problem is solved.!
    My code now looks like:

    TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
    fspersonsearch.setLastName("Darnell");
    fspersonsearch.setControl(theBObj.getControl());
    try {
    TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
    Vector perSearchResultVect=(Vector)tcrmReps.getData();
    TCRMPersonSearchResultBObj perSearchResult= (TCRMPersonSearchResultBObj) perSearchResultVect.get(0);
    System.out.println("Given name---"+perSearchResult.getGivenNameOne());

    Once again thank you .

    Regards
    Nikkie
  • Thin.Francis
    Thin.Francis
    1 Post

    Re: READERR 796: Search for the following failed: Party

    ‏2010-10-22T06:03:26Z  
    dwprofile wrote:
    Hi Catherinie,
    Thank you very much!!.:)

    The problem is solved.!
    My code now looks like:

    TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
    fspersonsearch.setLastName("Darnell");
    fspersonsearch.setControl(theBObj.getControl());
    try {
    TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
    Vector perSearchResultVect=(Vector)tcrmReps.getData();
    TCRMPersonSearchResultBObj perSearchResult= (TCRMPersonSearchResultBObj) perSearchResultVect.get(0);
    System.out.println("Given name---"+perSearchResult.getGivenNameOne());

    Once again thank you .

    Regards
    Nikkie

    I have the similar question, Why your way does not work for me?
  • SystemAdmin
    SystemAdmin
    938 Posts

    Re: READERR 796: Search for the following failed: Party

    ‏2010-10-22T06:16:08Z  
    dwprofile wrote:
    Hi Catherinie,
    Thank you very much!!.:)

    The problem is solved.!
    My code now looks like:

    TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
    fspersonsearch.setLastName("Darnell");
    fspersonsearch.setControl(theBObj.getControl());
    try {
    TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
    Vector perSearchResultVect=(Vector)tcrmReps.getData();
    TCRMPersonSearchResultBObj perSearchResult= (TCRMPersonSearchResultBObj) perSearchResultVect.get(0);
    System.out.println("Given name---"+perSearchResult.getGivenNameOne());

    Once again thank you .

    Regards
    Nikkie

    I have the similar question, Why your way does not work for me?
    Hello This.Francis,
    Are you facing the same issue as Nikkie faced? Could you please provide more details ?
    Sunil