web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    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]

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    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
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans