Skip to main content
Nintex Community Menu Bar

Error running NWAdmin.exe -o PurgeWorkflowData

  • July 30, 2020
  • 4 replies
  • 75 views

Forum|alt.badge.img+2

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  

4 replies

Forum|alt.badge.img+14
  • Nintex Employee
  • July 30, 2020

@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).


Forum|alt.badge.img+2
  • Author
  • Rookie
  • July 30, 2020

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

 


Forum|alt.badge.img+2
  • Author
  • Rookie
  • September 16, 2020

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   


Forum|alt.badge.img+14
  • Nintex Employee
  • September 16, 2020

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