Symptom
- EmailActivity is deprecated in C4C, but not deprecated in Business ByDesign.
- The add-on cannot create an EmailActivity business object in a BeforeSave ABSL script; the returned instance variable is not set.
- Error message: "Message (EMAIL_ACTIVITY, ROOT) Create not possible; source object inconsistent"
Environment
- SAP Business ByDesign
- SAP Cloud Applications Studio
Reproducing the Issue
- Navigate to the UI and modify any field.
- PDI BeforeSave event be trigger.
- Debug the BeforeSave ABSL; observe that the EmailActivity.Create(...) result is not set.
- Check the application log/debugger and see:
- "Create not possible; source object inconsistent"
- "Process type not determined for type code"
Resolution
- Verify scoping for Email Activity:
- Open Business Configuration and review scoping questions for Activity Management (email activities).
- If email activities are not in scope, enable the relevant scope.
- Activate and deploy changes:
- Finish scoping, save, and apply the BC changes.
- If applicable, activate your add-on and redeploy to ensure metadata is refreshed.
- Validate process type determination:
- Ensure a valid process type for EmailActivity exists and can be determined by the system.
- Review ABSL create logic:
- Set mandatory fields (for example, EmailActivity.Name) before calling EmailActivity.Create(...).
- Re-run the BeforeSave and confirm that the created instance is set.
- For implementation guidance, refer to the resources in the See also section.
See Also
- refer to: KBA 2443501 - Information Required for Scripting issues in PDI
- refer to: How to send an email with attachments in SAP Cloud Application Studio
- refer to: Tutorial: Sending emails from Business ByDesign
Keywords
EmailActivity, create not possible, source object inconsistent, process type not determined, BeforeSave, ABSL, ByDesign, activity management, scoping, business configuration, PDI, SDK, email activity creation, BO create failure, process type determination , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem
Product
SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions
SAP Knowledge Base Article - Public