Skip to main content

Good afternoon,


I'm attempting to run the purge command below, and getting an NullReferenceException error.  Does anyone have any tips on how to specify the URL so that it will work?


 


NWAdmin.exe -o PurgeWorkflowData -url https://selfservicecert.OurOrganization.ca/forms/requests/Finance/OT_Dev/Lists/Overtime_Callback_Dev/All.aspx -lastActivityBeforeLocal 2020-06-18T00:00:00


 


The error I'm getting is: 


Command line execution error: System.NullReferenceException: Object reference not set to an instance of an object.at Nintex.Workflow.Administration.ConfigurationDatabase.ReadConfigValue()


 


Thank-you,


 


Adam  

@abeaton Are you trying to purge a list or a site, that looks like a list url that would require a different parameter -listName (https://help.nintex.com/en-us/nintex2016/current/#sp2016/NWAdmin/PurgeWorkflowData.htm).


Thank you @leighburke, - that's a very helpful reference!  I've tried using the workflow name instead, but am getting the same error... with and with quotes around the name.


NWAdmin.exe -o PurgeWorkflowData -workflowName "OC CB OT Approval Workflow" -lastActivityBeforeLocal 2020-06-18T00:00:00


 


NWAdmin.exe -o PurgeWorkflowData -workflowName OC CB OT Approval Workflow -lastActivityBeforeLocal 2020-06-18T00:00:00


 


I'm getting a set further an able to run the command now, - but getting a message saying: Command line execution error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))


 


I can run commands like get-spsite, - what additional permissions might be required?


 


Adam   


@abeaton Did you the run the Management console as admin? If you are still getting errors I would suggest contacting support(support@nintex.com).


Reply