The workflow history was >6m records, so I have redirected all workflows to rite to other custom history logs while running a job to purge 1k records every 15 minutes. When I attempt to check the history on new items, jam getting the same error for those workflows. These are SP Designer workflows that have worked for months. I attempted to validate views/delete a view against which I trigger alerts to myself for troubleshooting. But I cannot retrieve the list or views bc of these errors:
$mysiteurl= "//my-site.mydomain.com:port"
$spSite=get-spSite -identity $mysiteurl
$spWeb=$spSite.openweb()
$wflist=$spweb.getlist("/lists/workflow history")
Exception calling "GetList" with 1 Argument(s):"(nativehr)0x80070003(/nativehr)(native stack)(/native stack)"at line1char23 $wfList=$spWeb.GetLst(((( ("/Lists/workflow history") +category info:not specified(:)[],methodinvocationexception +FullyQualifiedErrorid:DotNetMethodException
Any assistance is greatly appreciated