Announcement

Collapse
No announcement yet.

Error saving new entries for entities basic and basic plus in service portal.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error saving new entries for entities basic and basic plus in service portal.

    Error in data/logs:
    ERROR: (400) Field validation failure; entityType: Service, field: assignedUser, type: required.; POST /640a0507f3161e17b/Service; line: 54, file: /var/www/espocrm/application/Espo/Core/Exceptions/BadRequest.php [] []


    php 8.1
    MariaDB 10.3.23
    EspoCRM 7.3.3

    How to reproduce:
    1. Create a new entity of type basic with the name Service.
    2. Enable the Access to the new entity “Services” in Portal Roles for a given role or create one along with a portal user that is assigned to the role. In addition allow to create, read, edit and delete the entity for that role.
    3. Assign the new entity “Services” to a portal tab list or create a new portal.
    4. Login as portal user go to the new entity “Services” and create a new entry for the entity. On save the error message:
    "Error 400: Bad request
Backend validation failure.
    Field: assignedUser
Validation: required"
    is shown and the log file entry above.

    If you create an entity of type person there is no error, but for basic plus the same error is thrown.

  • #2
    It's not a bug. If you need portal users to create records with assigned user field set as required, you need to fill the assigned user id field with formula. Or make the field not required.
    Last edited by yuri; 03-29-2023, 08:35 PM.

    Comment


    • #3
      Dear Yuri,
      Thanks for clarification. With this we can proceed our feasibility study and will soon order the advanced pack for process management.
      With best regards
      Dieter

      Comment

      Working...
      X