Search code examples
sitecoretds

Getting errors when deploy Sitecore solution with multiple TDS projects from scratch


Getting various errors if deploy full solution from scratch. Works fine if I deploy my TDS projects one by one in right order.

Sample error:

error TDS0005: Deploy of /sitecore/layout/renderings/customer/business planning/latest promotion failed. Reason: Field 'VaryByCustomer' does not exist in template 'Controller rendering'


Solution

  • The out-of-the-box solution to this problem is to use the "Multi-project Properties" tab in your TDS project properties.

    In general, you should not deploy your TDS projects separately. Instead, you should define base template references and package bundling to define which project depends on which. Then you build and deploy only the project/package on the top of the dependency hierarchy you've defined via "Multi-project Properties".

    You can read more about this in the official TDS documentation:

    https://www.hhogdev.com/help/tds/propmulti