Adding A portal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tayling
    Member
    • Apr 2023
    • 60

    Adding A portal

    When adding a new portal user, on saving I get the error ' Error 400: Bad request

    Backend validation failure.

    Field: weightInOpportunitiesDistribution
    Validation: required

    The account does have an Opportuity record which appears to be filled correctly. The field weightInOpportunitiesDistribution is NOt set to required
    Any help gratefully recieved
    Cheers
    Tony
    Last edited by tayling; 04-16-2025, 08:28 AM.
  • victor
    Active Community Member
    • Aug 2022
    • 857

    #2
    If you are absolutely sure that the weightInOpportunitiesDistribution field is not required in Administration > Entity Manager > Account > Fields > weightInOpportunitiesDistribution, then make a Rebuild before creating a new Portal User. However, it is better to double-check that this field is not marked as Required and/or that this field has Dynamic Logic set that makes this field Required under certain conditions.

    Also, as an option, if the conditions described above are met, simply try to remove this field from Detail view -> save changes -> create Portal User.
    If it was created, then return weightInOpportunitiesDistribution field to Detail view.
    Last edited by victor; 04-16-2025, 01:48 PM.

    Comment

    • tayling
      Member
      • Apr 2023
      • 60

      #3
      Thanks Victor
      BUT i have ony just noticed that I do not have a field weightInOpportunitiesDistribution in the opportunities table - I do have amountWeightedConverted field which confused me but definitley not weightInOpportunitiesDistribution​.

      Where shoudld I find that field to check it is not required?

      Thanks

      Comment

      • victor
        Active Community Member
        • Aug 2022
        • 857

        #4
        Most likely, the weightInOpportunitiesDistribution field is created either in the Account entity. But it is better to look at the logs.

        - Enable Debug mode: https://docs.espocrm.com/administrat...ng/#debug-mode.
        - Reproduce the error.
        - Submit the EspoCRM error log. EspoCRM log files are located in {ESPO_ROOT}/data/logs/ directory. Most errors are logger there.

        Comment

        • tayling
          Member
          • Apr 2023
          • 60

          #5
          Thanks
          I followed that and the logs showed it was in users - with a label of Peso na Distribuição de Oportunidades - I have no idea where that came from - looks spanish. It was flagged as required which I disabled and all good now.

          Thanks very much

          Tony

          Comment

          Working...