# Issue While running the Code

**URL:** <https://forum.uipath.com/t/issue-while-running-the-code/501761>\
**Category:** Studio\
**Tags:** output-panel, question, studio\
**Created:** [December 25, 2022, 6:02pm UTC](https://forum.uipath.com/t/issue-while-running-the-code/501761 "2022-12-25T18:02:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Raj](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/bharat_raj/32/293251_2.png) [@Bharat\_Raj](https://forum.uipath.com/u/Bharat_Raj)\
**Post date:** [December 25, 2022, 6:02pm UTC](https://forum.uipath.com/t/issue-while-running-the-code/501761/1 "2022-12-25T18:02:33Z")

</div>

Hi Team,  
While running the code i am getting below Error.  
Kindly suggest a solution.

Error ERROR Validation Error Internal constraint exception while running constraint with name ‘Constraint’ against activity of type System.Activities.Statements.Sequence with name ‘Sequence’. Exception was: System.NullReferenceException: Object reference not set to an instance of an object.  
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs)  
at System.Activities.Validation.ActivityValidationServices.RunConstraints(ChildActivity childActivity, ActivityCallStack parentChain, IList`1 constraints, ProcessActivityTreeOptions options, Boolean suppressGetChildrenViolations, IList`1& validationErrors) Task2\_Need to Download spread sheet and add items to the given Application.xaml

---

<div class="post-metadata">

**Author:** ![AutumnBreeze](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/autumnbreeze/32/361565_2.png) [@AutumnBreeze](https://forum.uipath.com/u/AutumnBreeze)\
**Post date:** [December 25, 2022, 9:54pm UTC](https://forum.uipath.com/t/issue-while-running-the-code/501761/2 "2022-12-25T21:54:30Z")

</div>

If you are using powershell invoke, it gives this error currently. Unavoidable bug. A similar bug was found in a few other components with this update.

---

<div class="post-metadata">

**Author:** ![Bharat\_Raj](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/bharat_raj/32/293251_2.png) [@Bharat\_Raj](https://forum.uipath.com/u/Bharat_Raj)\
**Post date:** [December 26, 2022, 9:46am UTC](https://forum.uipath.com/t/issue-while-running-the-code/501761/3 "2022-12-26T09:46:16Z")

</div>

Tq 🙂 for that info
