/
/
Find duplicate and orphaned locations in a Procore project
For project teams who ask their AI assistant to audit a Procore project's location tree for duplicates, missing codes, orphans and empty leaves.
On this page
Connector
Connect Procore, pick your AI tool and paste the prompt.
The problem
Location trees collect duplicates and orphans
Locations are added by hand and by import until the same name sits twice under one parent and some entries have no code or no parent. Reports get confusing and the problem is buried in the tree.
Without PopdockAI
- Expand the location tree level by level
- Spot repeated names under the same parent
- Check each location for a code
- Find out which leaves hold no assets
With PopdockAI
- The whole tree and its assets are pulled at once
- Repeated names under one parent are flagged
- Missing codes and missing parents are listed
- Read-only, with the tree shown as an indented list
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Audit the locations on project `{project-name}`.
**Step 1: Pull the locations**
Call `procore-get-locations` with `project-name` set to `{project-name}`. Call `procore-get-project-assets` with `project-name` to see which locations hold assets.
**Step 2: Check**
* Duplicate `name` under the same `parent-id`.
* Locations with no `code`.
* Locations whose `parent-id` does not exist.
* Locations holding no assets (leaf locations only).
**Step 3: Report**
The location tree as an indented list, then each problem group with the location name and id.
**Rules & Guidelines:**
* This prompt is read-only. Do not call any write tool: Every `procore-create-*`, `procore-update-*`, `procore-delete-*`, `procore-sync-*`, `procore-add-*`, `procore-bulk-*` and `procore-send-*` tool, plus `procore-respond-*`, `procore-terminate-*`, `procore-restart-*`, `procore-refresh-*`, `procore-reset-*`, `procore-link-*` and `procore-retrieve-*`, are off limits.
* Report only values the tools returned. Do not estimate or fill gaps.
* If `{company}` is not blank, pass it as `company` on every call.
**Validation:**
* If the project has no locations, say so and stop.
* If more than 500 locations return, report problems only.Who it's for
One answer, three teams that use it
Project engineers
Tidy the tree before reporting starts
Find duplicates and missing codes in one pass, before logs are filed against them.
Check the Riverside Tower locations for duplicates and missing codes.
Document controllers
Keep codes consistent
Get a list of locations with no code so each one can be given a proper reference.
Which locations on Northwind Plaza have no code?
Asset managers
See which locations hold nothing
Find leaf locations with no assets, so you can tell empty areas from gaps in the register.
On Fabrikam Depot, which leaf locations hold no assets?
How it works
What PopdockAI does when you ask
You name the project and your AI assistant reads its locations and assets. It tests the tree against four rules and lists each problem group, and it changes nothing.
Ask
You name the project to audit.
Pull
It reads the project's locations and the assets they hold.
Check
It tests for repeated names, missing codes, missing parents and empty leaves.
Report
You get the tree as an indented list, then each problem group with names and ids.
What PopdockAI provides
The tools behind the answer
Ready made tools for Procore and one secure connection to your AI tool. No code, no exports.
procore-get-locations
procore-get-project-assets
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Know exactly which locations to fix
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
