Error "Wrong datatype for the Parameter Input" when I try to update

Error "Wrong datatype for the Parameter Input" when I try to update

I have created a custom function that is supposed to put the current date in a date type field in Zoho People, Jobs form.
I have checked and the label names are correct. P_TimesheetJob for Jobs and Actual_End_Date for my newly created field within the Jobs Form. The data type for this newly created field is "date"!
I have set the argument job_id to equal the ID field.

This is the code:

current_date = zoho.currentdate;

updaterecord = Map();

record = zoho.people.getRecordByID("P_TimesheetJob",job_id);


updaterecord.put("Actual_End_Date",current_date);
record = zoho.people.update("P_TimesheetJob",updaterecord);

info record;

This is the error I get when I try to save & execute:


{"response":"{\"message\":\"Error occurred\",\"uri\":\"/api/forms/json/P_TimesheetJob/updateRecord\",\"errors\":{\"code\":7204,\"message\":\"Wrong datatype for the Parameter Input\"},\"status\":1}"}

Some help with this would be much appreciated.
I have also tried with a text field and it stills gives me this error.

Thank you.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Meet the Zoho People experts in your city!

                                                Dear users,   We are delighted to invite you to the Zoho People's user community meetup. We are stoked to visit our users in their cities and help them with all things Zoho People.   Join us for a day of insightful Zoho sessions, interactions with other


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now