Skip to content

v17: uSync Template Import Fails with “Failed to create template” on Umbraco 17.5.3 #1044

Description

@gohil-chetan

I am facing an issue with importing a template using uSync on our production/IIS environment.

Environment
Umbraco: 17.5.3
uSync: 17.3.6
Hosting: IIS
Runtime Mode: Production
ModelsBuilder: Nothing

I created a new template locally and the uSync import works successfully on my local environment.

However, after publishing the code and hosting the application on IIS, the same uSync import fails when I try to import the template.

Configuration

The relevant appsettings.json configuration is:

"Umbraco": {
"CMS": {
"Runtime": {
"Mode": "Production"
},
"Global": {
"UseHttps": true
},
"ModelsBuilder": {
"ModelsMode": "Nothing"
},
"WebRouting": {
"UmbracoApplicationUrl": "https://<REPLACE_WITH_YOUR_PRIMARY_DOMAIN>/"
}
}
}
Error

The uSync API returns the following response:

{
"handlerAlias": "TemplateHandler",
"success": false,
"itemType": "ITemplate",
"message": "Failed to create template",
"exception": null,
"change": "Import",
"fileName": "Single Item 4537ecd6-4518-4054-bfe7-1d8344d88c67",
"name": "LinkTreeNew",
"path": null,
"requiresPostProcessing": true,
"detailMessage": null,
"details": null,
"key": "4537ecd6-4518-4054-bfe7-1d8344d88c67"
}

The template name is LinkTreeNew.

We are using docker to deployment process.

Could you please help us identify why the template import is failing on the IIS/production environment?

Is there any additional configuration, permission, runtime setting, or uSync setting required for template imports in Umbraco 17.5.3 / uSync 17.3.6 when running in Production mode on IIS?

Please also let us know if there are any logs or additional debugging steps we should enable to get the underlying exception causing “Failed to create template.”

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions