Skip to content

Publishing a Reference-type custom attribute on a custom entity (referencing another custom entity's attribute) fails with a compilation error during LU publish, even though the referenced entity and attribute both deployed successfully and every other attribute on the same entity publishes fine.

Answer

Try deleting and recreating that specific reference attribute rather than troubleshooting the underlying compile error directly — in one confirmed case, this resolved a publish-time compilation error on a reference attribute with no other clear explanation for what was wrong; notably, creating a brand-new entity with an equivalent reference attribute from scratch didn't reproduce the same error, suggesting it was tied to some stale state on that specific attribute definition rather than a fundamental problem with reference attributes generally.

← Browse Developer Studio, deployment, and upgrades questions