cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Error running NWAdmin.exe -o PurgeWorkflowData

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

Labels: (1)
0 Kudos
Reply
4 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: Error running NWAdmin.exe -o PurgeWorkflowData

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

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error running NWAdmin.exe -o PurgeWorkflowData

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

 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error running NWAdmin.exe -o PurgeWorkflowData

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   

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Error running NWAdmin.exe -o PurgeWorkflowData

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

0 Kudos
Reply