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.


    Access your files securely from anywhere

      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









                                                                                                              • Related Articles

                                                                                                              • 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.
                                                                                                              • Alternative way to setup Postman Collection in Zoho Writer API

                                                                                                                To complete the Postman Collection setup in Zoho Writer API, you need to import the JSON files as listed below: Zoho Writer API Collection JSON file Zoho Writer API Environment JSON file How to import Zoho Writer API Collection JSON file? First, ...
                                                                                                              • 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 ...
                                                                                                              • How to create custom service via deluge connection for "OAuth2" Authentication Type?

                                                                                                                1. Navigate to the Connections page in Zoho Writer.  2. Then, click on Go to Connections > Create Connection in the top-right corner. 3.  Select Custom Services tab > Create New Service.  4. Under service details, provide the following information: ...
                                                                                                                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