Symptom
- In the "Complete your E-Signature" step, the candidate is unable to sign the document properly as the "Click to Sign" button/function is not capturing the digital signature on the PDF form.
- When clicking on "Click to Sign", an application error is observed: "Looks like something went wrong!"
- How to fix the document template so that it captures the candidate's signature when clicking on "Click to Sign".
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP SuccessFactors Onboarding
Cause
The issue arises from the placement of the signature field on the PDF form after it was edited.
After clicking on "Click to Sign", an application error is observed -- "Looks like something went wrong!".
Developer Tools > Network:
{
"error" : {
"code" : "ServerErrorException", "message" : {
"lang" : "en-US", "value" : "Cannot invoke \"org.apache.pdfbox.cos.COSArray.get(int)\" because \"fieldAreaArray\" is null"
}
}
}
Resolution
- Adjust the positioning of the signature field by placing it correctly and make sure all the position parameters (left, top, height, width), x/y coordinates etc are in float and not integer.
- Delete and create the fields again to resolve this issue (*Trial and Error*) and while creating the field, ensure space is left from the margin and with other PDF content to avoid encountering this issue again.
There is no specific spacing dimensions for the signature field when configuring the document template.
There are just two (2) requirements when configuring a template:
- Position: The position of the signature field have to be in float and not integer.
- Location: The signature/date placeholders should be placed next to the title. The box must not overlap on any text or images in the document.
Keywords
esignature, issue, sign, signature, not, working, nothing, happens, click, sign, form, getting, signed, new, hire, candidate, ONB, OBD, OBX, onboarding, fieldAreaArray, null, Cannot, invoke, \"org.apache.pdfbox.cos.COSArray.get(int)\" , KBA , LOD-SF-OBX-DOC , Generation of Documents using PFS , Problem