Rehire Resource - Missing ActionRequest id

Sort:
You are not authorized to post a reply.
Author
Messages
Jessica M
Advanced Member
Posts: 34
Advanced Member

    I have created a process flow for ReHIre Resource (GHR) as our HR dept wanted this to go to HRAdmin for approval vs the immediate approve.

    The landmark trans node is using the following query:

    _dataArea="" & _module="hr" & _objectName="Employee" & _actionName="FindRehireResource" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize="30" & _relationName="" & _setName="" & _asOfDate="" & _effectiveDate="" & ActionRequest="" & Employee="" & HROrganization="100"  (it also includes all the non-key fields, but wasn't sure it was necessary to post all that).

    I am getting the error "Application Error Missing Action Request ID".  The action request variable is populated, so I am wondering if it is an issue with the "FindRehireResource" action.  This same query works in our test system, however our test system has been upgraded to v10.

    Is anyone familiar with this error message?

    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      Hi Jessica M,

      In the sample you posted, I don't see any values in _dataArea or ActionRequest.  Are they actually populated in your node?  It's likely that LawsonGuru stripped out your variable references (it tends to do that with anything in angle brackets).  Please post the call from the IPA log after the variables have been substituted so we can see what is really being passed - not the results, just the transaction call.


      What specifically are you trying to do with this node, just return the Rehire data?  

       

      By the way, you may want to use "FindMergedRehireResource" instead of just "FindRehireResource".  This will pull the RehireResource action parameters, and it will also pull in the existing data for any fields that weren't changed via the action.  For example, if the employee was rehired and their name didn't change, then a "FindRehireResource" will not have any values in the Name fields, but "FindMergedRehireResource" would pull the previous values from the employee's record.  The "FindMergedWhatever" is often preferable for actions where data may remain the same - Rehire, Transfer, etc.

      Kelly

      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      Jessica M
      Advanced Member
      Posts: 34
      Advanced Member

        Sorry, I didn't catch that when I copied/pasted. Here is the corrected version.

         _dataArea="" & _module="hr" & _objectName="Employee" & _actionName="FindRehireResource" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize="30" & _relationName="" & _setName="" & _asOfDate="" & _effectiveDate="" & ActionRequest="" & Employee="" & HROrganization="100"

        Yes, I am trying to obtain the rehire data for email notifications to our various staff and for the HRAdmin approval.   I will try the FindMergedRehireResource. 

        Thank you.

        Jessica M
        Advanced Member
        Posts: 34
        Advanced Member

          IPA log:

            Landmark:GetReHireResource Executing transaction_dataArea="ltm" & _module="hr" & _objectName="Employee" & _actionName="FindRehireResource" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize="30" & _relationName="" & _setName="" & _asOfDate="" & _effectiveDate="" & ActionRequest="014e9c5c-1d63-0000-0000-69c04e9ed286" & Employee="94843" & HROrganization="100" & Aboriginal & AccountingUnit & AcctCategory & ActionAttachment.File & ActionAttachment.FileSizeBytes & ActionAttachment.FileSizeMB & ActionAttachment.MaxAttachmentSize & ActionAttachment.MaxAttachmentSizeMB & ActionAttachment.MimeType & ActionAttachment.Title & ActionAttachment1.File & ActionAttachment1.FileSizeBytes & ActionAttachment1.FileSizeMB & ActionAttachment1.MaxAttachmentSize & ActionAttachment1.MaxAttachmentSizeMB & ActionAttachment1.MimeType & ActionAttachment1.Title & ActionAttachment2.File & ActionAttachment2.FileSizeBytes & ActionAttachment2.FileSizeMB & ActionAttachment2.MaxAttachmentSize & ActionAttachment2.MaxAttachmentSizeMB & ActionAttachment2.MimeType & ActionAttachment2.Title & ActionAttachment3.File & ActionAttachment3.FileSizeBytes & ActionAttachment3.FileSizeMB & ActionAttachment3.MaxAttachmentSize & ActionAttachment3.MaxAttachmentSizeMB & ActionAttachment3.MimeType & ActionAttachment3.Title & Activity & AdjustedStartDate & AdmissionNumber & AlienExpiration & AlienNumber & AncestorDirectSupervisorCode & AncestorDirectSupervisorInitiator & AnniversaryDate & AnnualHoursPer1FTE & AssignmentIsSupervisor & AssignmentType & Authorization & BargainingUnit & BirthCity & BirthCountry & Birthdate & CHSAutoDeposit & CHSAutomaticTimeRecord & CHSPensionClassCodes & ChartAccount.Account & ChartAccount.ChartName & ChartAccount.EnterpriseGroup & ChartAccount.SubAccount & CollectiveAgreement & CollectiveAgreementCategory & CollectiveAgreementPosition & ContinuousEmploymentDate & CostCenter & DataPrivacyConsent & DeathDate & Deceased & DirectSupervisor & DirectSupervisorInitiator & Disability & DisabilityType & DischargeDate & EEO4Function & EligibleForRehire & Employee_action_comment & Employee_effective_date & Employee_reason_code & Ethnicity & ExemptFromOvertime & FTE & FirstDateWorked & GLCompany & Gender & GeographicDifferentialCode & HRContactActor & HRContactInitiator & HRGeneralistActor & HRGeneralistInitiator & HROrganizationUnit & HispanicOrLatinoOrigin & HomeCountry & IndirectSupervisor & IndirectSupervisorInitiator & Job & LastDatePaid & LastDateWorked & LegacyEmploymentNumber & LegalEntity & LegalEstablishment & Location & MaritalStatus & MilitaryReserve & Name.Affix & Name.AffixHelp & Name.Alias & Name.AliasHelp & Name.FamilyName & Name.FamilyNameHelp & Name.FamilyNameInitial & Name.FamilyNamePrefix & Name.FamilyNamePrefixHelp & Name.FamilyNameWithPrefix & Name.FirstAndLastName & Name.FormOfAddress & Name.FormOfAddressHelp & Name.FormerName & Name.FullFamilyName & Name.FullFamilyNamePlus & Name.FullFamilyNameWithAffix & Name.FullFamilyNameWithAffixAndQual & Name.FullFamilyNameWithQualification & Name.FullNormalPresentationName & Name.FullPresentationName & Name.GivenName & Name.GivenNameHelp & Name.GivenNameInitial & Name.Initials & Name.MaidenName & Name.MiddleInitial & Name.MiddleInitialPlus & Name.MiddleInitialPlusDot & Name.MiddleName & Name.MiddleNamePlus & Name.PreferredFamilyName & Name.PreferredFirstAndLastName & Name.PreferredFullNormalPresentationName & Name.PreferredFullPresentationName & Name.PreferredGivenName & Name.PreferredGivenNameHelp & Name.PreferredPresentationName & Name.PreferredSimpleCorrespondenceName & Name.PreferredSimplePresentationName & Name.PresentationName & Name.Qualification & Name.QualificationHelp & Name.SimpleCorrespondenceName & Name.SimplePresentationName & Name.UiDisplayName & Nationality & NationalityCountry & NoticePeriodAfterTrialPeriod & NoticePeriodDuringTrialPeriod & NotionalSalary & NotionalSalaryCurrencyCode & NumberOfMonths & OptOutOfWorkingTime & OtherAmount1 & OtherAmount1Currency & OtherAmount2 & OtherAmount2Currency & OtherAmount3 & OtherAmount3Currency & OtherAmount4 & OtherAmount4Currency & OtherAmount5 & OtherAmount5Currency & OtherDate1 & OtherDate2 & OtherDate3 & OtherDate4 & OtherDate5 & OverBudget & ParentAncestorDirectSupervisorCode & PayFrequency & PayGrade & PayRate & PayRateCurrency & PayRateType & PayStep & PaymentSchedule & PersonResponsibleActor & PersonResponsibleInitiator & PointOfOrigin & Position & PreferredJobTitle & ProfessionalCategory & Project &ReferringSource & RelationshipStatus & RelationshipToOrganization & Religion & RenewalDate & RenewalNotificationDate & ReplacedEmployee & RequestedBy & RequesterEmail & RequesterWorkPhone & RetirementDate & SalaryStructure & SalaryStructureGrade & SeniorityDate & Shift & Source & SpecificSource & StartDate & StepAndGradeSchedule & TerminationDate & TerminationNoticeDate & TrialPeriod & TrialPeriodEndDateOverride & Union & VeteranCode & VisibleMinorities & WorkAssignmentComments & WorkAssignmentOption & WorkEligibilityDocument1.Expiration & WorkSchedule & WorkType & WorkingRemotely & WorksCouncilDateRange.Begin & WorksCouncilDateRange.End & WorksCouncilRole&EffectiveDate
            Landmark:GetReHireResource Application Error Missing ActionRequest ID.
            Variables:
            lastReturnMessage(Type=String) (variable size > 1K)
            lastErrorCode(Type=Integer) = 18
            lastOutputData(Type=Object) =
            lastInformationCode(Type=Integer) = 0
            GetReHireResource_errorCode = 18
            GetReHireResource_informationCode = 0
            GetReHireResource_returnMessage = com.lawson.bpm.landmark.LandmarkApplicationException: Missing ActionRequest ID.
           at com.lawson.bpm.landmark.DirectLandmarkAdapter.createAndThrowLandmarkApplicationException(DirectLandmarkAdapter.java:1503)
           at com.lawson.bpm.landmark.DirectLandmarkAdapter.execute(DirectLandmarkAdapter.java:669)
           at com.lawson.bpm.processflow.workFlow.flowGraph.FgaLandmark.startActivity(FgaLandmark.java:299)
           at com.lawson.bpm.processflow.workFlow.flowGraph.FgActivity.execute(FgActivity.java:574)
           at com.lawson.bpm.processflow.workFlow.flowGraph.FgProcess.run(FgProcess.java:1984)
           at com.lawson.bpm.eprocessserver.grid.ExecuteFlowImpl.executeFlow(ExecuteFlowImpl.java:294)
           at com.lawson.bpm.eprocessserver.grid.ExecuteFlowImpl.executeFlow(ExecuteFlowImpl.java:88)
           at com.lawson.bpm.eprocessserver.grid.ExecuteFlowImpl.executeFlow(ExecuteFlowImpl.java:74)
           at com.lawson.bpm.eprocessserver.ProcessFlowEngine.execute(ProcessFlowEngine.java:145)
           at com.lawson.bpm.eprocessserver.ProcessFlowEngine.startProcessAt(ProcessFlowEngine.java:101)
           at com.lawson.bpm.eprocessserver.KBConnection.startProcess(KBConnection.java:108)
           at com.lawson.bpm.eprocessserver.KBConnection.execute(KBConnection.java:85)
           at com.lawson.bpm.eprocessserver.KBConnection.run(KBConnection.java:65)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:619)
          Caused by: com.lawson.rdtech.type.DoesNotExistException: Missing ActionRequest ID.
           at com.lawson.rdtech.framework.BusinessViewEvaluator.findRequestAction(BusinessViewEvaluator.java:1481)
           at com.lawson.rdtech.framework.BusinessViewEvaluator.findValidatedActionRequest(BusinessViewEvaluator.java:1622)
           at com.lawson.rdtech.framework.BusinessViewEvaluator.findActionRequest(BusinessViewEvaluator.java:1537)
           at com.lawson.rdtech.framework.BusinessClassEvaluator.execute(BusinessClassEvaluator.java:243)
           at com.lawson.webservs.service.ServiceLocalContainer.execute(ServiceLocalContainer.java:490)
           at com.lawson.webservs.service.ServicePooledExecutor.execute(ServicePooledExecutor.java:74)
           at com.lawson.rdtech.type.ServiceStub.execute(ServiceStub.java:374)
           at com.lawson.bpm.landmark.DirectLandmarkAdapter.execute(DirectLandmarkAdapter.java:665)
           ... 14 more

            GetReHireResource_outputData =
            GetReHireResource_recordCount = 0
            GetReHireResource_recordCount = 0
            GetReHireResource_complete = false
            GetReHireResource_hasNext = false
            GetReHireResource_hasPrevious = false
          Activity name:GetReHireResource id:2 failed @ 07/20/2015 12:45:51 PM
            Error evaluating expression this_errorCode
            Error evaluating expression this_informationCode
            Error evaluating expression this_returnMessage
            Error evaluating expression this_outputData
           
          Error encountered executing process

          Process: CHSReHireResource
          Activity id: [object Object]

          Error code: undefined
          Information code: undefined

          Return message: undefined

          Output data:
          undefined

           

            Executing End-GetReHireResource because activity GetReHireResource encontered an error

          Woozy
          Veteran Member
          Posts: 709
          Veteran Member

            That's more helpful. Please try removing the employee number and HROrganization number and just reference those fields as return variables. When you put in the ActionRequest, it is a unique key so you don't need the others, and it can cause IPA to be confused if you do attempt to include them. For troubleshooting, try just using this query and see if you get a return value:

            _dataArea="ltm" & _module="hr" & _objectName="Employee" & _actionName="FindRehireResource" & _actionType="SingleRecordQuery" & _pageSize="30" & ActionRequest="014e9c5c-1d63-0000-0000-69c04e9ed286" & Employee

            Kelly Meade
            J. R. Simplot Company
            Boise, ID
            Jessica M
            Advanced Member
            Posts: 34
            Advanced Member
              I still got the same error when I removed employee number and HROrganization. So I removed that node and re-created it and it seems to be working using the FindRehireResouce. If I changed to FindMergedRehireResource, I got this error:

              Exception: com.lawson.bpm.landmark.LandmarkApplicationException: Exception thrown on server
              Communications trace
              null
              Jessica M
              Advanced Member
              Posts: 34
              Advanced Member
                Pardon my typo, that should have said FindRehireResource.
                Woozy
                Veteran Member
                Posts: 709
                Veteran Member
                  Wow. That's the sort of solution that makes me tear my hair out, but sometimes that is all that works.

                  I'm surprised the FindMergedRehireResource didn't work. Maybe they've changed it so it automatically merges old and new when you use FindXYZ - though we use the FindMerged quite a bit and haven't seen any errors. Odd.

                  Anyway, I'm glad you figured it out! Good Luck!
                  Kelly
                  Kelly Meade
                  J. R. Simplot Company
                  Boise, ID
                  Jessica M
                  Advanced Member
                  Posts: 34
                  Advanced Member
                    Thank you so much for your help!
                    You are not authorized to post a reply.