I have a template that loops through thousands of content items to publish a list of files, but some files throw an error on the location generate because the items have lost thier folder relationship.
#set($clonedItem = $sys.assemblyItem.clone())
#set($ret = $clonedItem.setParameterValue(“sys_context”,“394”))
#set($pubpath = $rx.location.generate($clonedItem))
Is there a way to do error handling on the template to see if the location function call will error and render and error message instead?