Using "remove-all-assets" RQL Query on a Versioned Repository Throws Error: "atg.repository.RepositoryException: current development line null is not an open workspace"

(Doc ID 2278070.1)

Last updated on JUNE 27, 2017

Applies to:

Oracle Commerce Platform - Version 11.0 and later
Information in this document applies to any platform.

Symptoms

Deleting repository data (as described in this documentation page) fails: Repository Guide -> SQL Repository Reference -> SQL Repository Definition Tag Reference -> <remove-all-items>

The <remove-all-items> tag is a procedural tag for removing all items in the repository. This tag is enabled only if the system property atg.allowRemoveAllItems is set on application startup. 
You can set this property by adding -Datg.allowRemoveAllItems to the JAVA_ARGS in your <ATG11dir>/home/localconfig/environment.bat or environment.sh file.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms