SAP Knowledge Base Article - Public

3095959 - Save rejected by validation

Symptom

The below error message prevents a document from being saved on Cloud for Customer and Business ByDesign solutions:

Save rejected by validation (Solution YABCEFGY_, Business Object ABC, Node XYZ) (where YABCEFGY_ represents an add-on; ABC represents the BO name and XZY the node name)

Environment

  • SAP Cloud for Customer
  • SAP Business ByDesign 

Reproducing the Issue

  • Open any work center and view.
  • Select any document ID.
  • Edit the document.
  • Click on Save button. 

Cause

The error happens due to the add-on solution mentioned on the error message.

On this add-on, there is a Validation-OnSave ABSL script created for the Business Object and Node stated on the error.

If this validation script rejects the save and no message is raised from the script coding, the system generic message is shown instead.

Resolution

The partner responsible for the add-on has to enhance the code logic from the Validation-OnSave script by raising a meaningful error message in case the save is rejected, so the user knows why the document cannot be saved.

Keywords

save, rejected, by, validation, PDI, SDK, script , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions