Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Message: The detail cannot be updated because the parent is not editable.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderLineCreate]

(0) ShareShare
ReportReport
Posted on by 75

I have a plugin that create salesorder and add salesorderdetail for the salesorder , it worked fine but now this plugin throw this error 

Message: The detail cannot be updated because the parent is not editable.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderLineCreate] 

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Message: The detail cannot be updated because the parent is not editable.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderLineCreate]

    Hi,

    It looks like you have installed PSA or Field Service solution as this plugin is related to these apps. As you can't change this plugin, you need to contact Microsoft Support to help out with this. Alternatively if you are not using PSA/ FS then you can simply deactivate this plugin.

    Hope this helps.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Message: The detail cannot be updated because the parent is not editable.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderLineCreate]

    Hi

    You get that error message because the order has already been changed to the read-only status before the sales order details (order line item) added like suggested by Charles. If your plugin does note close the order, it is most likely there is are real-time workflows or other plugins on order that close the order based on some condition. Could you please check your plugin codes and workflows to find out which one is making the order read-only. If they are changing for a reason, you may end up adding more condition to those plugins or workflows to not to close all the orders.

  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at
    RE: Message: The detail cannot be updated because the parent is not editable.; [Microsoft.Dynamics.Sales.Plugins: Microsoft.Dynamics.Sales.Plugins.PreOperationSalesOrderLineCreate]

    Hello,

    Check the status of the parent sales order, it might be fulfilled or other state where changes cannot be applied when adding the salesorderline (price calculation...).

    Check this link for salesorder statuses: [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/salesorder?view=dynamics-ce-odata-9]

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans