2 Replies Latest reply on Feb 23, 2018 2:19 PM by Rajesh PR

    Control-M Automation v9.00 - Using OrderDate option

    Rajesh PR

      Control-M version = 9.0.00

      CLI version = 9.0.4 (node: 8.9.4)

       

      Issue: Build using CLI gives the below error, the error goes away if the option "OrderDate" is not used. But as per the documentation, "OrderDate" is supported in this version of control-M. Please let me know if I am missing something.

       

      Error:

      {

        "errors": [

          {

            "message": "An internal error occurred while validating the folder TESTATMT01"

          }

        ]

      }

       

      Input JSON:

      {

          "Defaults": {

              "ControlmServer": "UTest",

              "Application": "TST",

              "SubApplication": "TESTATMT01",

              "OrderMethod": "None",

              "RunAs": "xxxx",

              "Host": "111111",

              "DaysKeepActive": "5",

              "Job": {

                  "ActionIfFailure": {

                      "Type": "If",

                      "CompletionStatus": "NOTOK",

                      "mailToTeam": {

                          "Type": "Mail",

                          "Subject": "%%JOBNAME failed",

                          "Message": "%%JOBNAME failed",

                          "To": "dummy@dummy.com"

                      }

                  },

                  "init": {

                      "Type": "Resource:Semaphore",

                      "Quantity": "1"

                  },

                  "111111": {

                      "Type": "Resource:Semaphore",

                      "Quantity": "1"

                  },

                  "test-init": {

                      "Type": "Resource:Semaphore",

                      "Quantity": "1"

                  }

              }

          },

          "TESTATMT01": {

              "Type": "Folder",

              "firstjob": {

                  "Type": "Job:Command",

                  "Command": "script.ksh %%PARM1",

                  "Description": "none",

                  "When": {

                      "WeekDays": [

                          "SUN",

                          "MON",

                          "TUE",

                          "WED",

                          "THU",

                          "FRI",

                          "SAT"

                      ],

                      "FromTime": ""

                  },

                  "Variables": [

                      {

                          "PARM1": "file1"

                      }

                  ],

                  "addInCondition": {

                      "Type": "WaitForEvents",

                      "Events": [

                          {

                              "Event": "TESTATMT01-lastjob", "OrderDate": "PreviousOrderDate"

                          }

                      ]

                  }

              }

          }

      }