Loading
Industries Order Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Apex CPU Time Limit Exceeded Error in Industries Order Management

          Apex CPU Time Limit Exceeded Error in Industries Order Management

          When submitting an order, if you get an error saying Apex CPU time limit exceeded, the most likely cause is that the LoggingEnabled custom setting is set to true. To resolve the problem, set LoggingEnabled to false.

          The LoggingEnabled setting uses more processing power than is necessary for day-to-day operations. Support occasionally requests that customers turn it on for debugging, but otherwise, it's best to leave it off.

          To set the LoggingEnabled custom setting to false, follow these steps:

          1. In the Quick Find box of Lightning environment Setup, enter Custom Settings, then click Custom Settings.
            An image of the Setup button.
          2. Find General Settings and click the Manage link next to it.
            The Custom Settings screen, with Manage highlighted next to General Settings.
            If General Settings isn't available, add a new entry under Custom Settings.
            1. In the Custom Settings, click New.
            2. In the Custom Settings Definition, add General Settings in the Label field and GeneralSettings in the Object Name field.
            3. Click Save.
          3. Click the Edit link next to LoggingEnabled.
            If LoggingEnabled setting isn't available, add a new entry under General Settings.
            1. In the General Settings, click New.
            2. In the Data Type, select Text.
            3. In the New Custom Field, add LoggingEnabled in the Field Label field and 8 in Length field.
            4. Click Next.
            5. Click Save.
          4. Replace the text in the Value field with the word false and click Save.

            Logging is now disabled, and OM requires less processing, which reduces the likelihood of receiving the Apex CPU time limit exceeded error when you submit an order.

           
          Loading
          Salesforce Help | Article