Hi all,
We've been running the CATS API to sync our companies, jobs, candidates and applications from our jobs website database into our CATSone account, and we've now got a problem with an application from one candidate (everything else is running fine).
Here's the error we get when running a standard add_pipeline call:
<pre>
Response <?xml version="1.0" encoding="utf-8"?>
<response success="false"> <error code="412">Candidate ID invalid or not found.</error>
</response> (between brackets): [SimpleXMLElement Object
( [@attributes] => Array ( [success] => true )
[id] => 105188695 [status_id] => 3882135 [status_title] => Applied via Workhere [activity_id] => 472266166 ) ] Data sent: Array ( [candidate_id] => 116371516 [joborder_id] => 6070622 [status] => Applied via Workhere) </pre>
It says the issue is that the candidate ID is invalid or not found, but I can't see a reference to the candidate ID in this code... the candidate's ID number is
138428337.
The main problem is that our system is set up to continue sync attempts until it gets a successful response... the thing is, despite the error, it actually IS adding the candidate to the pipeline and so this one is stuck in a loop until we can figure out why it isn't working. So far, the candidate has been added over 6,000 times to this pipeline...
Can anyone see what's wrong here? I've looked in our MySQL database and can see that the cats_id field against this candidate is the correct ID identified above... I can add this candidate to other pipelines - it's just this candidate and this pipeline in particular.
All I can think is maybe the error is being caused by the fact that the candidate is already IN the pipeline..? Even though if I force the API to add a candidate to a pipeline they are already in, it gives a successful response? Help? Please??