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
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.
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.
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]
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6