AGS to RD30 not working

 4 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Shane Jones
Veteran Member
Posts: 460
Veteran Member

    Can anyone see what is wrong with this:   The AGS works in process flow when I "Test" it however when I run it through the personnel action it returns that a "field is required"

    Any thoughts

    _PDL=LOGAN&_TKN=RD30.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Add&IDH-ID=&IDH-DESCRIPTION=&IDH-ID-TYPE=Employee&LMV-NAME-FIRST=&LMV-NAME-LAST=&IDH-WEB-USER=&WUR-TYPE=EM&IDH-STATUS=1&WUR-COMPANY=&WUR-EMPLOYEE=&LMV-E-MAI1=&WUR-PRODLINE=&WUR-ACCESS=N&WUR-ALLOWJOBQUEUE=N&_DELIM=%09&_OUT=TEXT&_EOT=TRUE

    Shane Jones
    Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
    Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
    ** Teach others to fish...
    John Henley
    Posts: 3353
      Try posting the AGS call via the browser (changing &OUT=TEXT to &OUT=XML and you should see which field is required. (I could tell you but that would ruin your fun!)
      Thanks for using the LawsonGuru.com forums!
      John
      Shane Jones
      Veteran Member
      Posts: 460
      Veteran Member

        The script works perfectly in the test section of Process Flow script builder ...   It also worked perfectly from the browser with the script below.   HOWEVER, it does not work when I run it from the "production" personnel action.   It throws an error - field is required.  

        Then I sent myself an email from the process flow to show each of the variables that are used in the script and they all showed correctly in the email.   I am not sure why it is having problems?

        Script (browser)

        http://vtl-2k3lawsontest/...9&_OUT=XML&_EOT=TRUE

         

         XML output

        xml version="1.0" encoding="ISO-8859-1" ?>

        [script removed]
        [script removed]
          <_PDL>LOGAN_PDL>
          <_TKN>RD30.1_TKN>
          <_OUT>XML_OUT>
          <_TDS>Ignore_TDS>
          <_EVT>ADD_EVT>
          <TC>RD30.1TC>
          <FC>AFC>
          <IDH-OBJ-ID>0IDH-OBJ-ID>
          <IDH-RECORD-TYPE>1IDH-RECORD-TYPE>
          <IDH-ID>abcdefgIDH-ID>
          <IDH-DESCRIPTION>testingIDH-DESCRIPTION>
          <IDH-ID-TYPE>EmployeeIDH-ID-TYPE>
          <IDT-DESCRIPTION>EmployeeIDT-DESCRIPTION>
          <LMV-NAME-PREFIX />
          <PT-NAME-PREFIX />
          <LMV-NAME-SUFFIX />
          <PT-NAME-SUFFIX />
          <LMV-NAME-FIRST>hijklmLMV-NAME-FIRST>
          <PT-NAME-FIRST>hijklmPT-NAME-FIRST>
          <LMV-NAME-MIDDLE-I />
          <PT-NAME-MIDDLE-I />
          <LMV-NAME-LAST>nopqrsLMV-NAME-LAST>
          <PT-NAME-LAST>nopqrsPT-NAME-LAST>
          <IDH-WEB-USER>abcdefgIDH-WEB-USER>
          <WUR-TYPE>EMWUR-TYPE>
          <WUR-TYPE>EmployeeWUR-TYPE>
          <IDH-STATUS>1IDH-STATUS>
          <IDH-STATUS>ActiveIDH-STATUS>
          <LMV-NAME-SEARCH />
          <PT-NAME-SEARCH />
          <IDH-DATE />
          <IDH-TIME>0IDH-TIME>
          <WEB-TAB>2WEB-TAB>
          <WUR-COMPANY>1WUR-COMPANY>
          <WUR-EMPLOYEE>11659WUR-EMPLOYEE>
          <WUR-REQUESTER />
          <WUR-APPROVE-CD />
          <WUR-VENDOR-GROUP />
          <WUR-VENDOR />
          <WUR-CUST-GROUP />
          <WUR-CUSTOMER />
          <WUR-BUYER-CODE />
          <WUR-PROSPECT />
          <WUR-PARTNER />
          <WUR-LOGIN />
          <LMV-E-MAIL1 />
          <PT-E-MAIL1 />
          <WUR-ACTIVITY-LIST />
          <WUR-ACGRP-COLLECT />
          <WUR-PRODLINE>PRODWUR-PRODLINE>
          <WUR-PRODLINE2 />
          <WUR-ACCESS>NWUR-ACCESS>
          <WUR-ACCESS>NoWUR-ACCESS>
          <WUR-ALLOWJOBQUEUE>NWUR-ALLOWJOBQUEUE>
          <WUR-ALLOWJOBQUEUE>NoWUR-ALLOWJOBQUEUE>
          <ADDRESS-TAB>0ADDRESS-TAB>
          <LMV-MATRIX-TYPE>PRIMARYLMV-MATRIX-TYPE>
          <LMV-ADDR-1 />
          <PT-ADDR-1 />
          <LMV-ADDR-2 />
          <PT-ADDR-2 />
          <LMV-ADDR-3 />
          <PT-ADDR-3 />
          <LMV-ADDR-4 />
          <PT-ADDR-4 />
          <LMV-ADDR-5 />
          <PT-ADDR-5 />
          <LMV-POSTAL-BOX1 />
          <PT-POSTAL-BOX1 />
          <LMV-POSTAL-CODE />
          <PT-POSTAL-CODE />
          <LMV-COUNTRY-CODE />
          <WCT-DESCRIPTION />
          <PT-COUNTRY-CODE />
          <LMV-STATE-PROV />
          <WSP-DESCRIPTION />
          <PT-STATE-PROV />
          <MOREADDR-TAB>0MOREADDR-TAB>
          <LMV-TAX-ID />
          <PT-TAX-ID />
          <LMV-NAME-LEGAL />
          <PT-NAME-LEGAL />
          <LMV-NICK-NAME />
          <PT-NICK-NAME />
          <LMV-PICTURE />
          <PT-PICTURE />
          <LMV-REGION-CODE />
          <PT-REGION-CODE />
          <WRG-REGION-DESC />
          <PT-REGION-DESC />
          <LMV-PORT-CD />
          <PT-PORT-CD />
          <WPR-PORT-DESC />
          <PT-PORT-DESC />
          <LMV-DISTRICT />
          <PT-DISTRICT />
          <LMV-LOCALITY />
          <PT-LOCALITY />
          <LMV-CONTACT-ADDR />
          <PT-CONTACT-ADDR />
          <TYP-MATRIX-STATUS />
          <ATTRIB-WIN>Additional AttributesATTRIB-WIN>
          <MORE-WIN>Mult Attribute TypesMORE-WIN>
          <CREDENTIALS-WIN>Sign-on CredentialsCREDENTIALS-WIN>
          <PHONE-TAB>0PHONE-TAB>
          <LMV-PHONE-PREFIX1 />
          <PT-PHONE-PREFIX1 />
          <LMV-PHONE-NUMBER1 />
          <PT-PHONE-NUMBER1 />
          <LMV-PHONE-SUFFIX1 />
          <PT-PHONE-SUFFIX1 />
          <LMV-MOBILE-PREFIX />
          <PT-MOBILE-PREFIX />
          <LMV-MOBILE-NUMBER />
          <PT-MOBILE-NUMBER />
          <LMV-MOBILE-SUFFIX />
          <PT-MOBILE-SUFFIX />
          <LMV-PAGER-PREFIX />
          <PT-PAGER-PREFIX />
          <LMV-PAGER-NUMBER />
          <PT-PAGER-NUMBER />
          <LMV-PAGER-SUFFIX />
          <PT-PAGER-SUFFIX />
          <LMV-FAX-PREFIX1 />
          <PT-FAX-PREFIX1 />
          <LMV-FAX-NUMBER1 />
          <PT-FAX-NUMBER1 />
          <LMV-FAX-SUFFIX1 />
          <PT-FAX-SUFFIX1 />
          <LMV-TELEX-NUMBER1 />
          <PT-TELEX-NUMBER1 />
          <ELECTRIC-TAB>0ELECTRIC-TAB>
          <LMV-PAGER-EMAIL1 />
          <PT-PAGER-EMAIL1 />
          <LMV-FAX-EMAIL1 />
          <PT-FAX-EMAIL1 />
          <LMV-URL />
          <PT-URL />
          <LMV-EDI-NBR1 />
          <PT-EDI-NBR1 />
          <LMV-DATE />
          <LMV-TIME>0LMV-TIME>
          <PT-IMX-MATRIX-TYPE />
          <_HK>abcdefg_HK>
          <FldNbr>TCFldNbr>
          <MsgNbr>000MsgNbr>
          <Message>Add Complete - ContinueMessage>
          RD30.1>
          XRD30.1>
        Shane Jones
        Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
        Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
        ** Teach others to fish...
        John Henley
        Posts: 3353
          When I ran your first version via the browser it said that IDH-DESCRIPTION was missing and was a required field.
          Thanks for using the LawsonGuru.com forums!
          John
          Shane Jones
          Veteran Member
          Posts: 460
          Veteran Member

            John,

            You were right......   When I checked the process flow it did not have a description populated.   Now it is working perfectly.

             

            THANKS

            Shane

            Shane Jones
            Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
            Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
            ** Teach others to fish...