Why java.lang.Object exception is thrown in mergeAndDownload Task OR API? How to prevent it?

Why java.lang.Object exception is thrown in mergeAndDownload Task or API? How to prevent it?

Reason: 

  1. This error will be thrown when the Writer server cannot return the merged file within 40 secs. Because, deluge execution time limit is only 40 seconds for each API.
  2. Whereas, 'MergeAndDownload' operation cannot be completed within 40 sec as it needs to undergo file conversion process (which depends on the file size). 

Solution:

  1. 'MergeAndDownload' task has been deprecated; hence, it is not possible to use it in deluge script.
  2. As an alternative, you can use MergeAndStore task or API and store the merged document in Zoho Workdrive.
Merge and Store task will not work for Zoho Creator service users. Please use the deluge script provided in the Merge and Store API.


    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                    Manage your brands on social media

                                      Zoho Desk Resources

                                      • Desk Community Learning Series


                                      • Digest


                                      • Functions


                                      • Meetups


                                      • Kbase


                                      • Resources


                                      • Glossary


                                      • Desk Marketplace


                                      • MVP Corner


                                      • Word of the Day


                                        Zoho Marketing Automation

                                          Zoho Sheet Resources

                                           

                                              Zoho Forms Resources


                                                Secure your business
                                                communication with Zoho Mail


                                                Mail on the move with
                                                Zoho Mail mobile application

                                                  Stay on top of your schedule
                                                  at all times


                                                  Carry your calendar with you
                                                  Anytime, anywhere




                                                        Zoho Sign Resources

                                                          Sign, Paperless!

                                                          Sign and send business documents on the go!

                                                          Get Started Now




                                                                  Zoho TeamInbox Resources



                                                                          Zoho DataPrep Resources



                                                                            Zoho DataPrep Demo

                                                                            Get a personalized demo or POC

                                                                            REGISTER NOW


                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • How to merge Subform Fields via Merge API's in Writer?

                                                                                                    1. Create a Merge template in Writer with related (RL) fields Sample Merge Template consisting of both Normal and RL fields: Hello <<Contacts.First Name>> Send a mail to <<Contacts.Email>> Invoice Owner Invoice Number Created By Due Date ...
                                                                                                  • Creating a Connection via Deluge in Writer

                                                                                                    Connections are used to authenticate requests that are sent to other services and can be utilized in Custom functions. To retrieve the required information from another service into Zoho Writer, you need to create a connection that integrates Zoho ...
                                                                                                  • How to lock a document to prevent any more edits from collaborators?

                                                                                                    You can lock a document to prevent more edits from collaborators by marking the document as final. To mark a document as final: 1. Open the document in Writer 2. Click on Distribute from the top right of the editor and then click on Mark as Final.
                                                                                                  • How to change the "From address" for merge and send action via deluge?

                                                                                                    1. For mergeAndSend task -> from, cc, bcc, password parameters are not yet updated in deluge task. To use them, you will have to use Writer API with invoke url. Sample snippet for invoke url: param = Map(); param.put("message", "Please find \n your ...
                                                                                                  • Merge and Store V2 API

                                                                                                    Purpose: In Merge and Store V1 API, the response will be returned along with the RID only after the merge is completed. In Deluge Script, the maximum timeout will be 40 secs. In some cases, the merge operation will exceed 40 secs which fails the DRE ...
                                                                                                    Wherever you are is as good as
                                                                                                    your workplace

                                                                                                      Resources

                                                                                                      Videos

                                                                                                      Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                      eBooks

                                                                                                      Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                      Webinars

                                                                                                      Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                      CRM Tips

                                                                                                      Make the most of Zoho CRM with these useful tips.



                                                                                                        Zoho Show Resources