# Common FlexiPage Deployment Errors
## "Invalid field reference"
**Cause:** Used `ObjectName.Field` instead of `Record.Field`
**Fix:** Change to `Record.{FieldApiName}`
**Example:**
```xml
Account.Name
Record.Name
```
## "Element fieldInstance is duplicated"
**Cause:** Multiple fieldInstances in one itemInstances wrapper
**Fix:** Each fieldInstance needs its own `` wrapper
**Example:**
```xml
Record.Name
Record.Phone
Record.Name
Record.Phone
```
## "Missing fieldInstanceProperties"
**Cause:** No uiBehavior specified
**Fix:** Add `fieldInstanceProperties` with `uiBehavior`
**Example:**
```xml
Record.Name
RecordNameField
uiBehavior
none
Record.Name
RecordNameField
```
## "Unused Facet"
**Cause:** Facet defined but not referenced by any component
**Fix:** Remove Facet or reference it in a component property
**Example:**
```xml
body
detailTabContent
detailTabContent
Facet
```
## "XML parsing error"
**Cause:** Unencoded HTML/XML in property values
**Fix:** Manually encode `<`, `>`, `&`, `"`, `'` in all `` tags
**Encoding order (important!):**
1. `&` → `&` (FIRST! Encode this before others)
2. `<` → `<`
3. `>` → `>`
4. `"` → `"`
5. `'` → `'`
**Example:**
```xml
Important text & notes
<b>Important</b> text & notes
```
## "Cannot create component with namespace"
**Cause:** Invalid page name (don't use `__c` suffix in page names)
**Fix:** Use "Volunteer_Record_Page" not "Volunteer__c_Record_Page"
**Example:**
```bash
# Wrong
sf template generate flexipage --name Volunteer__c_Record_Page
# Correct
sf template generate flexipage --name Volunteer_Record_Page
```
## "Region specifies mode that parent doesn't support"
**Cause:** Added `` tag to region
**Fix:** Remove `` tags - they're not needed for standard regions
**Example:**
```xml
header
Region
Replace
header
Region
```