2 Replies Latest reply: Jan 11, 2013 2:02 AM by 984238 RSS

    OIM11gR2 - recon events stuck in Data Received status

    user1175296
      Hi,
      reconciliation events created by SAP-ER 9.1.2 connector by Trusted Recon process are normally created in "Data Received" status; to process them using OIM11gR1 (11.1.1) I usually run the job named "Non Scheduled Batch Recon".
      Now we are with OIM11gR2 (11.1.2), the Trusted Recon events generated by SAP-ER 9.1.2 connector are still created in "Data Received" sttaus but if I run the job "Non Scheduled Batch Recon" the events are not processed and their status does not change.

      Any help/suggestion?

      Thanks,
      Gabriele.
        • 1. Re: OIM11gR2 - recon events stuck in Data Received status
          Kevin Pinsky
          You can use the following code to process them and hope once done, you next recon task will complete correctly and it will process:

          >
          public void retryReconEvents(String resource){
          try{

          ReconSearchCriteria crit = new ReconSearchCriteria();
          crit.addExpression(EventConstants.RECON_EVENT_RSRC_NAME, resource,ReconSearchCriteria.Operator.EQUAL);
          crit.addExpression(EventConstants.RECON_EVENT_STATUS,"Data Received",ReconSearchCriteria.Operator.EQUAL);
          crit.setConjunctionOp(ReconSearchCriteria.Operator.AND);

          Vector order = new Vector();
          order.add(EventConstants.RECON_EVENT_KEY);

          boolean noEvents = false;
          int success = 0;
          int failed = 0;
          while(!noEvents){
          int counter = 0;
          List<ReconEvent> reconEvents = eventMgmt.search(crit, order, true, 0, 500);
          int size = reconEvents.size();
          for (ReconEvent reconEvent:reconEvents){
          long reconKey = reconEvent.getReKey();
          //System.out.println("************* Recon Event [" + reconKey + "] **************");
          counter++;
          try{                       
          reconIntf.processReconciliationEvent(reconKey);
          success++;
          }catch(Exception e){
          System.out.println(e.getMessage());
          crit.addExpression(EventConstants.RECON_EVENT_KEY,reconKey,ReconSearchCriteria.Operator.NOT_EQUAL);
          failed++;
          }

          System.out.println("Resource[" + resource + "]"+ counter + "|" + size + "|reconKey[" + reconKey + "]Success[" + success + "]Failed[" + failed + "]");
          }

          if (size==0)noEvents = true;

          }


          }catch(Exception e){
          e.printStackTrace();
          }
          }
          >

          -Kevin
          • 2. Re: OIM11gR2 - recon events stuck in Data Received status
            984238
            hi kevin,

            where i can running that code ?

            thanks