0

I have installed vanilla Sitecore instance 9.1 Initial release. After that installed Sitecore Powershell 5.0 was followed by SXA 1.9.

I'm trying to create a tenant or site to set up a local site facing an error like the one below.

ManagedPoolThread #15 19:09:40 ERROR Cannot bind argument to parameter 'Model' because it is null.

Steps to reproduce:

  1. Right-click the content node then creates a tenant folder.
  2. Click create the tenant.
  3. Right-click the created tenant and click site.
  4. Enter the site name and choose the theme etc.
  5. Powershell script starts to create the site.
  6. Facing the below issue.

Note: Validated Tenant template (from tenant templates) has this base template {3BC304DB-FE8F-4AA8-B95C-8C331E823F4C} (/Sitecore/templates/Foundation/Experience Accelerator/Scaffolding/_Modules)

enter image description here

7
  • Find your tenant item and check Tenant Templates location field. Perhaps there is a broken link. Commented Nov 29, 2022 at 23:10
  • tenant and tenant template location filed are tagged properly. Commented Nov 30, 2022 at 10:13
  • you might want to check this link: tothecore.sk/2019/07/29/sitecore-sxa-create-site-failure Commented Nov 30, 2022 at 11:05
  • I tried but this is not helpful for my issue Commented Nov 30, 2022 at 14:26
  • It fails to get tenant templates location in Show-NewSiteDialog cmdlet. Don't focus on the 2nd error. It just says that there is an attempt to pass empty/null model to New-Site cmdlet. Your Tenant item has either broken link or for some reason item cannot be resolved. ($tenantItem.Templates) OR tenant item itself cannot be resolved. You can test this cmdlet (Script Library/SXA/SXA - Scaffolding/Functions/Cmdlets/MultisiteContext/Get-TenantItem) if it returns tenant when you will pass your site location as arg (probably tenant in your case not a site folder I am guessing). Commented Nov 30, 2022 at 23:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.