Not applicable

Error in data request action. Object reference not set to an instance of an object.

After migration of Nintex Workflow 2007 to 2010, if a workflow contains an action to request data which was created in 2007, it generates error in data request action. Object reference not set to an instance of an object.

SharePoint log reports the following:
System.NullReferenceException: Object reference not set to an instance of an object.
at Nintex.Workflow.Administration.ContentDatabase.GetContentDatabase (SPWeb web)
at Nintex.Workflow.HumanApproval.ApproverCollection..ctor (NintexTask parentTask)
at Nintex.Workflow.HumanApproval.CollectDataFromUserTask..ctor (DatabaseID Int32, Int64 humanWorkflowID, NWWorkflowContext CTX)
at Nintex.Workflow.Activities.SetupCollectDataActivity.AfterOnTaskChanged (Object sender, ExternalDataEventArgs e)
at System.Workflow.ComponentModel.Activity.RaiseGenericEvent (dependencyEvent DependencyProperty, Object sender, T e)
at System.Workflow.Activities.HandleExternalEventActivity.RaiseEvent (Object [] args)
at System.Workflow.Activities.HandleExternalEventActivity.System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs>.OnEvent(Object sender, QueueEventArgs e)
at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run ()

 

any idea how to fix this?

0 Kudos
Reply
2 Replies
majid_sahib
Nintex Employee
Nintex Employee

Re: Error in data request action. Object reference not set to an instance of an object.

Hi Luisa,

I believe the issue around connecting to the NW2010DB content DB, for that particular SiteCollection. Please check the Database setup page under the Nintex workflow management, and also use the NWADMIN command:
NWAdmin Operations - Nintex Workflow 2010
UpdateContentDatabase
Description This operation is used to update a reference to a Nintex Workflow content database. When migrating a configuration database to another server, the internal reference to itself as a content database must be updated with this command.
Usage
NWAdmin.exe -o UpdateContentDatabase -serverName serverName [-databaseName databaseName] [- newServerName newServerName] [-newDatabaseName newDatabaseName] [-newFailoverPartner newFailoverPartner] [-integrated | -username username -password password]

If the above didnt work, try to deactivate/activate the SiteCollection feature Nintex Workflow 2010.
Thanks,
Majid

0 Kudos
Reply
Not applicable

Re: Error in data request action. Object reference not set to an instance of an object.

Hi Luisa, I believe the issue around connecting to the NW2010DB content DB, for that particular SiteCollection. Please check the Database setup page under the Nintex workflow management, and also use the NWADMIN command: NWAdmin Operations - Nintex Workflow 2010  UpdateContentDatabase  Description This operation is used to update a reference to a Nintex Workflow content database. When migrating a configuration database to another server, the internal reference to itself as a content database must be updated with this command.  Usage  NWAdmin.exe -o UpdateContentDatabase -serverName serverName [-databaseName databaseName] [- newServerName newServerName] [-newDatabaseName newDatabaseName] [-newFailoverPartner newFailoverPartner] [-integrated | -username username -password password]   If the above didnt work, try to deactivate/activate the SiteCollection feature Nintex Workflow 2010.

0 Kudos
Reply