New answers tagged

0

I also faced the same issue, I solved like below. Before seeing this there is typo in your package name its ImportExcel not Import-Excel. First check this. Run below in Sitecore PowerShell Below for execution policy and TLS enablement. > Set-ExecutionPolicy Unrestricted -Scope CurrentUser > [Net.ServicePointManager]::SecurityProtocol = [Net....


1

In my case, the base template in the Site Node template was missing the _Modules template /sitecore/templates/Foundation/Experience Accelerator/Scaffolding/_Modules So, after adding this, the script error has been resolved.


0

My guess is that you need to add the -Path parameter when using -ID or instead just use -Item $item. The database is not known when calling the Get-ItemTemplate command. https://doc.sitecorepowershell.com/appendix/common/get-itemtemplate Get-ItemTemplate -Item $item


0

I just found the below working after some struggle. Like scriban we should be using the template field names which we can find from the parameter template of the rendering. $item = Get-Item -Path "master" -ID "{BB57FDB9-7A8F-424B-B59B-94B129E607FD}" $renderingItemId = "{EECE4E4B-4E5F-42FD-A934-7AFD048AFD03}" $placeholderId = ...


Top 50 recent answers are included