Data Protection Advisor - Error 400 for Pre or Post scripts
Summary: Getting an Error 400 when running a report that has a script associated with.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
The error is observed when attempting to run a report that has an associated script.
Observations from the server log (application server: <install dir>\emc\dpa\services\logs\server):
Error 400: Resulting file is outside common scripts directory
Observations from the server log (application server: <install dir>\emc\dpa\services\logs\server):
2021-01-22 11:24:10,556 ERROR [com.emc.dpa.restapi.util.DPAExceptionMapper] (http-/0.0.0.0:9002-3) Exception caught. Building error response. Exception was...: javax.ejb.EJBTransactionRolledbackException: Input validation failed for object ScheduledReport Original message: Resulting file is outside common scripts directory: <Path to customer defined script> (exception.input_validation_error) . Caused by: com.emc.dpa.common.exception.DPAException: Input validation failed for object ScheduledReport Original message: Resulting file is outside common scripts directory: <Path to customer defined script> (exception.input_validation_error)
Cause
The reason for this error is that DPA expects the scripts to be in a specific directory.
Scripts will not be processed if placed outside of the designed directory path.
Scripts will not be processed if placed outside of the designed directory path.
Resolution
As per the Admin Guide:
You must place scripts in the <install-dir>/services/shared/commands
Placing the script in the location above will resolve the problem.
You must place scripts in the <install-dir>/services/shared/commands
Placing the script in the location above will resolve the problem.
Affected Products
Data Protection AdvisorArticle Properties
Article Number: 000200217
Article Type: Solution
Last Modified: 10 Nov 2022
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.