Skip to main content

Notifications

Announcements

No record found.

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]

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
    RaviKashyap 55,410 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
    Kokulan 18,048 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
    Charles Abi Khirs 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans