Problem
- I am receiving a CyclicOrgTreeError when trying to upload an employee CSV
- Error message when importing employees
Resolution
The CyclicOrgTreeError appears when there is a circle in your reporting structure within the CSV.
For example, let's say your company has three people. If Person A reports to Person B, Person B reports to Person C, and Person C reports to Person A, you have a cyclical reporting structure.
When trying to upload a CSV with a loop, you will be given an error that says:
`Cannot have manager loop. ${orgTreeLoopExplanation(
metadata.orgTreeLoopPatientZero,
)}`
To resolve this, you must the reporting loop within the CSV and correct it. So in the previous example, we could fix it by having Person A and B report to Person C and Person C report to no one.