Workflow Error
Hello,
We have a workflow set in place, called 'Transformer Change Out'. It basically allows you to select a transformer on a map that's been changed out in a field and then fill out info in a form and submit.
Recently, we are getting the error while selecting the transformer:
There was a workflow error running activity: Exception has been thrown by the target of an invocation. Workflow 'TransformerChangeOut' failed Unhandled exception: 'Object reference not set to an instance of an object.' in activity '1.531: If Unit 3 = 0 or N/A'. Object reference not set to an instance of an object.
The problem is the error doesn't come on other transformers only on a few. Hence, it's hard to troubleshoot what's causing the issue since I can select other transformers and submit the form.
Please, let me know how to resolve it.
Thanks.
-
The issue is in the check in (I guess) an If activity. A reference is expected to contain a value, but contains Nothing / an empty object. I guess the check is done on a field value, and I guess the value will be different between transformers, that's why it goes wrong on some transformers.
The solution will be to modify the check.
0 -
Thank you for your time to respond.
To be honest with you I am not sure what you mean by 'modifying the check'. Or where I would go to modify it. If you could explain this a little bit more in depth, that would be appreciated.
Thanks.
0 -
Which activitty is the activity referenced by 1.531 (you can search on this number in the Workflow Designer search function)
Which expression is used there / which check is done?Perhaps you can upload the workflow here?
0 -
Thanks, I think I found it. I think the activity/check says if the transformer unit ID3=0 then flag it as an error. I can be wrong here. We have many transformers where Unit ID 3=0 and don't have issue to proceed to the next step.
Anyway, the workflow is quite long. Would it be possible to email it to you? It doesn't seem like I can attach a file using this application. Thanks.
0 -
Sure nico.burgerhart(at)sweco.nl
0 -
Hi,
Just to let you know I was able to resolve the error. The issue was that the value was expected to be 0 and in GIS the value was Null. Hence, when I updated the relevant fields to 0, the workflow error no longer comes up.
Thanks for helping me out to troubleshoot.
1
Please sign in to leave a comment.
Comments
6 comments