Explore: Step-by-Step Guide to Troubleshoot ZDK Errors in Zoho CRM Client Script

Explore: Step-by-Step Guide to Troubleshoot ZDK Errors in Zoho CRM Client Script

Concern

Occasionally, CRM users may encounter a common problem with Client Scripts, where a script fails at the ZDK (i.e., Zoho Development Kit) level and is unable to fetch data from CRM modules.

In such situations, users often wonder what steps they can take on their own to resolve the problem. In this post, we will walk through a few troubleshooting steps that you could try from your end and observe the outcome.

The purpose of this post is to explain the scenarios in detail. Also, to raise an awareness about the steps which needs to be taken on customer’s end to troubleshoot this problem and providing a guidance about the information that is required by Zoho to debug further on our end.

Common Errors in Logs/Console

When the user executes a client script, they may face any of the following errors.
  1. Unable to recognise any module (i.e., Leads)
  2. Undefined is not an object (evaluation ‘(await(await ZDK.Apps).CRM).Contacts’)
  3. ZDK.Apps.CRM: undefined
  4. When users type ZDK.Apps.CRM. -- It would not list any CRM modules

Example Code

  1. var leads = ZDK.Apps.CRM.Accounts.fetch();
  2. leads[0].Last_Name;
In the above first line, we use the ZDK method, and it may fail sometimes by throwing any of the above errors, which leads to a complete script logic failure.

Troubleshooting Guide

Let us try the below possible troubleshooting steps to resolve the above errors at the user's end: 

Method1: Adding a Dummy Field into Layout

We request the user to add a dummy field into any module's layout and save. This action ensures that the ZDK in backend regenerates and it could resolve the problem instantly.

-> A user can go to any Module (i.e. Contacts) -> Layout in Zoho CRM and add a dummy field (i.e. Single Line), then Save the Layout.

Navigate to Setup (⚙️) in Zoho CRM >> Customization >> Modules & Fields >> Module >> Layout




-> Once the field is added and saved, the layout. Try performing a Hard Refresh of the browser page and check if the Client Script is working fine.

Method2: Changing API name of any field

We request the user to make a temporary API name change in any field (not used primarily) in the module (i.e., Contacts). This action will also regenerate the backend code level changes, and it could resolve the problem at the user's end immediately.

Navigate to Setup (⚙️) in Zoho CRM >> Developer Hub >> APIs and SDKs >> API Names >> Module >> rename API name



Once the above step is completed, try performing a Hard Refresh of the browser page and check if the Client Script is working fine.

Alert
We strongly recommend the users to revert the Module / Field API name to previous name to avoid any disruptions in future related to Integration with Zoho or Third Party service or avoid conflicts related to API based integrations.

What we need from Partners:

After performing the above methods, if it still does not work, then we would require to check the exact reason in our backend with logs. We would request you to provide the below information:
AlertPlease do not skip any questions.

1. Share the user's CRM Org ID and email address so that we can check the details in our backend.

2. Type the following and confirm if it shows the CRM Module. If yes, select the module and complete the line as per syntax, then check if script works. Share the outcome on this.

Start Typing - ZDK. then selects Apps. then select CRM. then select check if CRM modules listed. 

3. Share a Small Recording in which replicate it by executing a script and show the browser console logs.

To check the Browser Console Logs ==> Give a right click on the screen -> Click Inspect -> Choose the Console & Network tabs and check if there are any errors. Ensure to show the full-page recording.

4. Share the complete script as text file and usage in detail for us to understand in better.

5. Share the complete Client Script configuration screenshot – showing Module, Event & Event Type for our better understanding.

6. Since when you are facing the reported problem. Approximate Date & Time would be helpful to validate in our backend logs.

7. Check internally, if there are any recent configration or updates in Zoho CRM - such as: adding Picklist field or new options or any field with special character. 



Please share all the above information collectively with partner-support@zohocorp.com.

NotesLikewise, for all Europe & UK Partners, please share the above information collectively with partner-support@eu.zohocorp.com.

        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          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







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    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


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            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 Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                      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