Object reference not set to an instance ONLY when the WFLW is called by another WFLW

  • 1 February 2016
  • 3 replies
  • 0 views

Badge +3

Hello All,

 

I have built a sub workflow that goes and creates a database item for members of a group.

The workflow has a step for creating a reference from a database using list method, then goes onto another step that is for each and does the creation of an item on a different database.

the workflow when started manually or by a separate form works just great. however when I call this workflow from a parent workflow I get this error on the reference creation step:

 

28083 ServerEvent: Object reference not set to an instance of an object.
InnerException: Exception has been thrown by the target of an invocation.
InnerException: Object reference not set to an instance of an object.

 

I am using the K2 service to start it from within the other workflow. 

 

Any ideas on why it would work only when not called by a parent workflow?

 

EDIT

 

After digging I find in the host server log this message :

 

"18545013","2016-02-01 10:21:32","Error","General","0","ErrorMessage","Default Activity","0 Object reference not set to an instance of an object.","anonymous","0.0.0.0",

 

Any one have any ideas?


3 replies

Badge +9

When you started the workflow on its own, did you use the service account as well?

Badge +3

Yes.

 

Now the issue is even weirder, just trying to create the same reference in a K2 designer workflow and getting that error. without even calling a second workflow. 

 

gives the same error. 

Badge +9

could you post some screenshots of the event configuration?

Reply