I am working with a Job function, and I faced the following error when processing job parameters:
Error processing job parameters or calling Basic I/O function: unable to find the type of initialization. Kindly specify one.
I am unsure what this error means or how to resolve it.
This error might occur if you have removed the jobRequest parameter in your job function or haven't passed context while initializing Catalyst.
To resolve this issue, ensure that your function includes both jobRequest and context parameters, as shown below:
module.exports = async (jobRequest, context) => { // Add "jobRequest" in this line
console.log('Hello from index.js');
const capp = catalyst.initialize(context);
};
Adding the jobRequest parameter ensures that the function processes job parameters as expected and including context allows the function to initialize correctly.