The scenario is as follows:
Source: Source Document Library
Workflow: Pre-Workflow --> It will move the document from Source Document Library to Target Document Library
Target: Target Document Library
Workflow: Main Workflow--> This is should execute once any document is getting created or updated by Pre-Workflow
Execution Policy: On Creation/Updation of Document in Target Document Library
Problem: Main Workflow is not getting executed by Pre-Workflow, once any document is getting created.
*
[Please correct me if the scenario is something else.]
*
Solution:
- If you run the Pre-Workflow using System Account, then Main Workflow will not be started automatically. So please start the Pre-Workflow using any other account than System Account. Log in to the site using other account than System Account
- If the Main Workflow is not getting executed after changing the log in account. Add a step in the Pre-Workflow by which you need to update a test metadata field in the newly created item in the Target Document Library. This step needs to be executed after copying of the document in the Target Document Library. By doing this the Main Workflow will be executed on change of the document.
Above solution should solve your problem.