Showing posts with label Common Issues. Show all posts
Showing posts with label Common Issues. Show all posts

Unable to Create project in BCC(createProjectForProcess Exception)

ATG BCC Exception

Exception Details:
 

Logging Exception:

/atg/epub/workflow/process/WorkflowProcessManager       Error executing action createProjectForProcess[] on process instance 81200003; deleting the process instance   CONTAINER:atg.process.ProcessException; SOURCE:atg.epub.project.InvalidStateException: Process status is in a state where a new project cannot be created.

Why this error? 

BCC contains the workflows and process related to existing workflows in database, which are not in sync. So workflows and process needs to deleted and new workflows needs to loaded using server start up.

Solution:

Execute following scripts in versioning DB and restart BCC application. So when server starts up, it loads appropriate workflows into DB.

delete from EPUB_PR_HISTORY;
delete from EPUB_PROJECT;

delete from EPUB_PROC_TASKINFO;
delete from EPUB_WORKFLOW_STRS;

delete epub_workflow_info;
delete epub_coll_workflow;
delete from EPUB_IND_WORKFLOW;

delete from EPUB_PROC_HISTORY;
delete from EPUB_PROCESS;

delete from avm_asset_lock;

Its also good check to delete servers Ids.

ATG BCC Deployment "Preapre failed"

Prepare failed occurs during initial state of deployment. Prepare failed might be due to one of following reasons.
1. Live Data Source mismatch in Production.
2. Production RMI in non listening mode.


This issues occurs only where deployment server is switchable.



To solve the above problem, try following steps.

1. Move to Agents Tab and Click on "Switchable DataSources"



2. Make SwitchDataSource and ConfigFileSystem to Point to either DataSourceA or DataSourceB. Select the mismatch datasource and Switch selected datasources.

3. Move back to "Details" tab and resume the deployment.