This article explains why publishing a LearningProgramPlan from the Program Plan Builder fails with a generic toast error and how to resolve it. Customers describe this as: "getting error while trying to publish LearningProgramPlan using Program Plan Builder" and "clicked Publish (or used Clone & Edit in builder) and it just shows Something went wrong." The exact error displayed at the top of the screen is: "Error notification. Something went wrong. Try again, and if the issue persists, contact Salesforce Customer Support and ask for help." The publish action triggers Salesforce to lock the parent LearningProgramPlan record while it inserts the child LearningProgramPlanRqmt records derived from the Builder's draft JSON. If a custom after-insert trigger on LearningProgramPlanRqmt issues a synchronous DML update against the same parent LearningProgramPlan (for example to flip a custom isPublished__c flag), the trigger cannot acquire the row lock and the Builder transaction fails with the generic notification. The same generic error appears when using the Clone & Edit in builder action before publish. This issue applies to Education Cloud on Lightning Experience in Enterprise, Performance, Unlimited, and Developer editions, and is tracked as Known Issue KI-65478. A separate but related symptom — "Access to entity 'LearningProgramPlan' denied. Entity: LearningProgramPlan is not API accessible" when creating or editing the record from the UI — is caused by missing object permissions on LearningProgramPlan and is addressed in Cause 2 below.
005385225

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.