Question

Start Jobs processor not passing string as a string

  • 18 September 2023
  • 1 reply
  • 24 views

I am trying to create a master flow that calls another pipeline but am having issues in that when I pass parameters, they seem to be converted to values, or at least they lose the quote marks

 

{
      "TDate": "2023-09-17",
      "FDate": "2023-09-14"
}

In the status window of the job called, they show up as  2023-09-17 and 2023-09-14, instead of “2023-09-17” and “2023-09-14”, and also update the job parameters without the quotes

 

 

If I try and calculate the dates 

{
      "TDate": "${record:value('/TDateY')}",
      "FDate": "${record:value('/FDateY')}"
}

I get the following error

START_JOB_05 - Failed to parse runtime parameters for job ID: START_JOB_05 - Failed to parse runtime parameters for job ID: 6f86b611-bfbe-4882-a47f-3aa41f0daeab:0f246ae0-4677-11ec-a298-93161f808487, error: com.fasterxml.jackson.core.JsonParseException: Unexpected character (' ' (code 160)): was expecting double-quote to start field name at [Source: (String)"{       "TDate": "2023-09-17",       "FDate": "2023-09-17" }"; line: 2, column: 2], error: com.streamsets.pipeline.api.StageException: START_JOB_05 - Failed to parse runtime parameters for job ID: 6f86b611-bfbe-4882-a47f-3aa41f0daeab:0f246ae0-4677-11ec-a298-93161f808487, error: com.fasterxml.jackson.core.JsonParseException: Unexpected character (' ' (code 160)): was expecting double-quote to start field name at [Source: (String)"{       "TDate": "2023-09-17",       "FDate": "2023-09-17" }"; line: 2, column: 2]

Where am I going wrong?

 


1 reply

Userlevel 5
Badge +1

@southwr62

I also used the runtime parameter in the start job and not getting any error.

Kindly provide me the sample pipeline ,so i can try to reproduce the error.

Reply