Vault Job Processor added programmatically

Vault Job Processor added programmatically

alder_moriggi
Enthusiast Enthusiast
749 Views
1 Reply
Message 1 of 2

Vault Job Processor added programmatically

alder_moriggi
Enthusiast
Enthusiast

Hi all, I have a problem with a job added programmatically in Job Processor (Vault Workgroup 2019).

The job is added correctly in the Vault job queue (below I reported the instructions used):

 

2020-12-29 12_07_38-Window.png

 

2020-12-29 12_10_08-Window.png

 

But when the Job Processor runs it doesn't work correctly.

The following messages are reported in the job processor log file

 

General 29/12/2020 11:47:22
An item with the same key has already been added.

General 29/12/2020 11:47:22
Unable to update job success/failure

 

The Job is "in processing" but it is not completed.

 

2020-12-29 12_16_05-Window.png

 

Any suggestions?

 

TIA

Alder

0 Likes
Accepted solutions (1)
750 Views
1 Reply
Reply (1)
Message 2 of 2

alder_moriggi
Enthusiast
Enthusiast
Accepted solution

OK, I solved it.

I replace

 

m_Active_Connection.WebServiceManager.JobService.AddJob(l_Job_Name, l_Job_Name & ":" & Row.Cells(l_File_Field).Value.ToString(), l_JobParams.ToArray(), 100)

 

with

 

m_Active_Connection.WebServiceManager.JobService.AddJob(l_Job_Name, l_Job_Name & ":" & Row.Cells(l_File_Field).Value.ToString(), New JobParam() {l_JobParam_1, l_JobParam_2}, 100)

 

and everythings work fine

0 Likes