Exception in template (Designs/alsiano/_parsed/industry-ingredients-description.parsed.cshtml): System.ArgumentException: System name of the target item cannot be an empty string.
Parameter name: metadata
   at Dynamicweb.Content.Items.Queries.Repository..ctor(ItemType metadata)
   at Dynamicweb.Content.Items.Queries.StorageFactory.CreateRepository(ItemType metadata)
   at Dynamicweb.Content.Items.Queries.StorageManager.GetByPageId(String systemName, Int32 pageId, Boolean draft)
   at CompiledRazorTemplates.Dynamic.afbeeffde.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using System.Web @using Dynamicweb.Content.Items; <!--@If(2=3)--> <html><body> </body></html> <!--@EndIf--> <div id="ingredient-container"> <div class="row"> <div class="col-xs-12 col-md-7"> @GetValue("Item.Product_Description") <br> <ul class="ingredient-info-box-list clearfix"> @foreach ( var item in GetLoop("Item.Products").ToList().OrderBy(x => x.GetString("Ecom:Product.Name"))) { <li><p>@item.GetValue("Ecom:Product.Name")</p></li> } </ul> </div> <div class="col-xs-12 col-md-offset-1 col-md-4"> <div class="contact-specialist"> <h4>Contact our specialists</h4> <div class="contact-specialist-container"> @{ var found = false; for(var i = 10; i > 0; i--) { if(!found){ var level = GetInteger("DwPageID_" + i.ToString()); if(level != 0){ var pageItems = Item.GetItemsByPageId(level); foreach(var item in pageItems){ if(item.SystemName == "Alsiano_Ingredients_Background"){ if(!String.IsNullOrEmpty(item["Contacts"].ToString())){ var contacts = item["Contacts"].ToString().Split(','); if(contacts.Length > 0){ foreach (var id in contacts) { var contact = Item.GetItemById("Alsiano___Specialists_contacts", id.ToString()); var contactEmail = contact["Email"]; <p>@contact["Name"]</p> <p class="muted">@contact["Position"]</p> <div class="row"> <div class="col-md-12 specialist-phone-box"> <i class="fa fa-phone fa-pull-left"></i> <p class="specialist-phone">@contact["Phone"]</p> </div> <div class="col-md-12 specialist-email-box"> <i class="fa fa-envelope-o fa-pull-left"></i> <a class="specialist-email" href="mailto:@contactEmail">@contactEmail</a> </div> </div> } found = true; } } } } } } } } </div> </div> </div> </div> </div>