Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

OrganzationServiceFault error while creating a Price list item

(2) ShareShare
ReportReport
Posted on by 32
Hello Experts,
 
The users having a role other than System Admin are getting OrganizationServiceFault error, when they create a Price list item.
 
 
System admin users are not getting this error. I believe it is related to some permission but couldn't figure it out.
 
The user role has full access to Product table.
 
Attached is the error log.
 
Thanks,
Priyank
Categories:
  • Suggested answer
    AS-15041545-0 Profile Picture
    36 on at
    OrganzationServiceFault error while creating a Price list item
    Check the Create, update and Append and Append To permissions on all related tables including smaller tables like Default Unit
     
    Cheers Anne
  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    5,970 Super User 2025 Season 1 on at
    OrganzationServiceFault error while creating a Price list item
    Hello Priyank,
     

    The error message "OrganizationServiceFault" with the error code 0x80040265 and the details pointing to ApiExceptionMessageName: PrivilegeDenied strongly indicates that the users lacking the System Administrator role are missing a specific privilege required to create Price List Items.

    The fact that System Administrators can perform this action without issue confirms that the core functionality is working correctly, and the problem lies within the security role assignments of the other users.

     

    Here's a breakdown of the likely cause and how to troubleshoot and resolve this:

    Root Cause: Missing Privilege on a Related Entity or Operation

    While the user role has full access to the Product table, creating a Price List Item involves interactions with other related entities and potentially specific operations. The error message points to a plugin Microsoft.Dynamics.SalesPro.Plugins.PreValidationPriceListItemCreate, which suggests the privilege check is happening during the pre-validation stage of creating the Price List Item.

    Troubleshooting Steps to Identify the Missing Privilege:

    1. Review Related Entities: Creating a Price List Item typically involves:

      • Price List: The Price List to which the item is being added.

      • Unit Group: The unit of measure for the product in this price list.

      • Currency: The currency of the price list.

      Ensure the user's role has the necessary Read, Create, Write, and potentially Associate/Disassociate privileges for these entities. Even if they don't directly create these records during the Price List Item creation, the system might perform checks against existing ones.


    2. Examine Specific Operations: There might be specific, granular privileges related to price list management that are not explicitly tied to the entity level. Look for privileges that contain keywords like:

       

      • Price List

      • Price List Item

      • Add to Price List

      • Manage Prices

      • Discount List (as Price List Items can be linked to discount lists)

      These privileges might reside under different tabs within the Security Role editor (e.g., Core Records, Sales).


    3. Analyze the Plugin Execution: The error details mention the plugin Microsoft.Dynamics.SalesPro.Plugins.PreValidationPriceListItemCreate. This plugin is likely performing the privilege check. While you can't directly see the plugin's code without customization, the fact that it's triggering the "PrivilegeDenied" error is a key indicator. The plugin might be checking for a privilege that isn't obvious just from looking at the Product entity.

    4. System Administrator Comparison: Carefully compare the security role of a working System Administrator with the role(s) of the users experiencing the error. Look for any differences in privileges related to the entities mentioned in step 1 and any operations related to pricing and sales.

    5. Enable Auditing (Temporary): Temporarily enable auditing on the Price List Item entity and related entities (Price List, Unit Group, Currency) for the "Create" operation. After a non-admin user attempts to create a Price List Item and gets the error, review the audit logs. The logs might provide more context about which operation or entity access was denied.

    6. Check for Customizations: If your system has any custom security roles, custom plugins, or custom workflow steps related to Price List Item creation, review their logic. A custom component might be enforcing additional privilege checks.

       


    7.  

    Steps to Resolve the Privilege Issue:

    1. Open the Security Role Editor: Navigate to Settings > Security > Security Roles.

    2. Identify the Affected User Role(s): Open the security role(s) assigned to the users experiencing the error.

    3. Review Privileges Tab by Tab: Carefully go through each tab in the Security Role editor (e.g., Core Records, Sales, Marketing, Service, Customization, Business Management).

    4. Grant Necessary Privileges: Based on your analysis in the troubleshooting steps, grant the necessary Read, Create, Write, and potentially Associate/Disassociate privileges for the Price List, Unit Group, and Currency entities.

    5. Look for Specific Pricing/Sales Operations: Within the relevant tabs (especially Sales), search for and grant any specific privileges related to managing price lists, adding price list items, and discounts.

    6. Test Thoroughly: After making changes to the security role, have the affected users attempt to create Price List Items again. Ensure the error is resolved and that they can perform the action successfully.

    7. Iterate if Necessary: If the error persists, go back to the troubleshooting steps and continue investigating other potential missing privileges.


    8.  

    Example of Potential Missing Privileges:

    Based on common scenarios, some privileges you might need to explicitly grant (beyond full Product access) are:

    • Price List: At least Read privilege at the Organization level. Create and Write might be needed depending on whether users also need to create or modify Price Lists themselves.

    • Unit Group: At least Read privilege at the Organization level.

    • Currency: At least Read privilege at the Organization level.

    • Specific "Add Price List Item" or similar operation privilege (look carefully within the Sales tab).

    •  

    By systematically reviewing the privileges of the affected user roles, especially concerning related entities and specific pricing operations, you should be able to identify and grant the missing privilege that is causing the "PrivilegeDenied" error when creating Price List Items. Remember to test thoroughly after each change to the security role.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Suggested answer
    Holly Huffman Profile Picture
    5,510 on at
    OrganzationServiceFault error while creating a Price list item
    Good morning, afternoon, or evening depending on your location!
     
    Thank you for sharing the detailed error log. Based on the information provided, the OrganizationServiceFault error appears to stem from a "PrivilegeDenied" exception, indicating insufficient permissions for the affected users when creating a Price List Item. The error also references a plugin step, which suggests that a PreValidationPriceListItemCreate plugin may be enforcing additional access or validation checks.
    Steps to Address the Issue:
    1. Review Security Role Permissions:
      • Confirm that the affected users have Create, Read, Write, Delete permissions for the Price List Item entity.
      • Ensure permissions for related entities such as Price List are also granted.
    2. Plugin Investigation:
      • Analyze the PreValidationPriceListItemCreate plugin referenced in the error log.
      • Verify whether the plugin introduces additional privilege checks or dependencies on specific fields/entities.
    3. Field-Level Security:
      • Check if any fields within the Price List Item entity are subject to field-level security restrictions.
    4. Testing:
      • Assign a temporary, unrestricted security role to the affected users to confirm whether the error persists.
      • If resolved, incrementally reintroduce permissions to pinpoint the missing access.
     
    Hope this is helpful :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans