back to top

Column Names to Avoid and Build Errors for Object Entities in Creatio

When adding columns to an entity/object in Creatio, there are a few column names you need to avoid. The object editor won’t stop you from using these column names, but you’ll see a build error when publishing the object if you don’t avoid these.

Scenario

You’re adding columns to an object, which can be a new object or an existing one. Let’s say you’ve added a Product lookup to a Contact named UsrProduct. Later, you add a text column named UsrProductName. When you publish the changes, you get the following error:

CS0102: The type ‘Contact’ already contains a definition for ‘UsrProductName’

You check and only see the one column named UsrProductName in the object, but still the error persists and you’re unable to publish the changes.

Explanation

What is happening here is the following. When you add a lookup column, the C# code that makes up the object itself really adds two properties behind the scenes, that exist only in the generated C# for the object. If we added a lookup named “TheLookup” these are:

  • TheLookupName
  • TheLookupId

So, in the scenario above, when we added our lookup named UsrProduct, the generated C# for the object contained two properties, one named UsrProductName and UsrProductId. It does this because when it loads the data for this object, it retrieves the selected lookup value’s Id, to store in the Id property, and the lookup value’s display value, to store in the Name property.

What causes the error is that the object editor allowed you to also add a text property named UsrProductName, so now the generated C# code contained two properties with the same name – which is what caused the error.

Solution

Obviously, to avoid the error, never add a column that is the same name as a lookup that ends in “Id” or “Name”. If you’ve already added this, and experiencing the error I mentioned above, you can fix this by simply removing the property you added ending in Name, and readd it with some other name.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Using the AI Prompt to Create Dynamic Folders in Creatio

Using Creatio's AI prompt to create the filter for a dynamic folder works best if you specifically ask for that, and if you are as clear and direct as possible about the filtering, conditions.

Related Articles

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Videos