Service was not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bradaks
    Active Community Member
    • Aug 2017
    • 251

    Service was not found

    Getting this error on a workflow:

    [2019-05-16 00:09:02] Espo.ERROR: CronManager: Failed job running, job [5cdca9d2335acbd30]. Error Details: Service 'Payment' was not found. [] []


    Any ideas?
  • bradaks
    Active Community Member
    • Aug 2017
    • 251

    #2
    Permissions are set up and everything looks good there.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hello.

      The EspoCRM does not have the Service 'Payment' at all. Try to clear the cache of your web browser and EspoCRM. What workflow do you try to run that cause such error?

      Comment

      • bradaks
        Active Community Member
        • Aug 2017
        • 251

        #4
        We have a custom entity named Payment. The workflow is triggered when a payment is created. That is the error when a workflow gets triggered.

        Comment

        • Maximus
          Senior Member
          • Nov 2018
          • 2731

          #5
          Please go to /EspoCRM/custom/Espo/Custom/Services and check if there exists some file like Payment.php with the next content
          <?php

          namespace Espo\Custom\Services;

          class Payment extends \Espo\Core\Templates\Services\Base
          {
          }
          Note, that this example for the entity of the Base type (pay attention to the last word "Base" in this row
          class Payment extends \Espo\Core\Templates\Services\Base
          For example, If you have created an entity of Event type, you should replace Base with Event.

          Comment

          • bradaks
            Active Community Member
            • Aug 2017
            • 251

            #6
            Payment does not have a php file in services at all. I attempted to manually create one with the Base service and the CRM errors out.

            Comment

            Working...