Hi Sneha - It appears you're experiencing a Git metadata inconsistency issue in SnapLogic. This is a known problem that can occur when there are conflicts between the Git tracking state and the actual repository structure.
Understanding the Issue
The error message "Project is checked out as a subdirectory of repository: ITV-Staging/Business Apps/ALLOC8. Please untrack the project space" suggests that:
1. Metadata Inconsistency: SnapLogic's internal Git metadata believes the project is part of a larger repository structure, even though the project space itself doesn't appear to be tracked
2. Subdirectory Conflict: The system thinks your project is a subdirectory of a larger Git repository, which is preventing the untrack operation
Recommended Solutions
Option 1: Untrack at the Project Space Level
Since the error mentions "Please untrack the project space," try untracking from the project space level rather than individual projects:
1. Navigate to Project Manager
2. Select the "Business Apps" project space (not individual projects)
3. Right-click and select "Untrack from Git" from the project space menu
4. Commit the changes to finalize the untrack operation
Option 2: Use Hard Reset During Checkout
If you want to start completely fresh:
1. Create a new Git repository for your projects
2. Use the "Hard Reset" option when checking out:
1. Select Hard Reset checkbox to replace all assets and discard uncommitted changes
2. Select Discard Untracked Files to remove any untracked files
3. This will clean up any metadata inconsistencies
Option 3: API-Based Untracking
If the UI method fails, you can use the SnapLogic Public API:
GET https://{controlplane_path}/api/1/rest/public/project/untrack/{project_path}
Where project_path follows the format: /{env_org}/{project_space}/{project_name}
Prevention for Future
To avoid this issue in the future:
Be consistent with Git operations at either project space or project level
Always commit changes after Git operations
Avoid mixing project space and individual project Git operations
Use trunk-based development as recommended by SnapLogic
The metadata inconsistency you're experiencing is indeed a known issue that can occur when Git tracking states become misaligned. The solutions above should help you resolve this and start fresh with proper Git tracking.