# Validation Error (System.Xaml.Serialization) (UiPath.Excel.WorkbookApplication)

**URL:** <https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212>\
**Category:** Help\
**Tags:** excel, activities\
**Created:** [September 5, 2019, 8:24am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212 "2019-09-05T08:24:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasoul](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rasoul/32/115742_2.png) [@Rasoul](https://forum.uipath.com/u/Rasoul)\
**Post date:** [September 5, 2019, 8:24am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/1 "2019-09-05T08:24:59Z")

</div>

Hello guys, could someone help me with the following validation errors?

P.S the bot works perfectly only when I click the Validation Button these pops up and I would like to eliminate them in order to publish the Bot, I would really appreciate your help

 ![Capture](https://global.discourse-cdn.com/uipath/original/3X/0/c/0c0ef4f01eb528c453afeadf467c95babb64f8e3.png)

 ![Capture1](https://global.discourse-cdn.com/uipath/original/3X/f/8/f872121f16bccb1d19f60f8eed291a023d7e829b.png)

---

<div class="post-metadata">

**Author:** ![Natapong](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/natapong/32/123807_2.png) [@Natapong](https://forum.uipath.com/u/Natapong)\
**Post date:** [September 5, 2019, 8:38am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/2 "2019-09-05T08:38:07Z")

</div>

@Rasoul

Could you please try to import Microsoft.Office.Core to your project namespace

Please refer below link

> [@"Word document is not defined" error encountered during validation](https://forum.uipath.com/t/word-document-is-not-defined-error-encountered-during-validation/147256/2):
>
> @Anna.Fortuito Welcome to UiPath forum In this case, You need to import namespace for Microsoft office. Microsoft.Office.Core [image] After you import Microsoft.Office.Core, you will able to publish package with Word Application Scope. I hope it will be help you

---

<div class="post-metadata">

**Author:** ![inp](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@inp](https://forum.uipath.com/u/inp)\
**Post date:** [September 5, 2019, 8:51am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/3 "2019-09-05T08:51:59Z")

</div>

@Rasoul Create Workbook variable in **Excel Application Scope** so it will be resolve

---

<div class="post-metadata">

**Author:** ![Rasoul](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rasoul/32/115742_2.png) [@Rasoul](https://forum.uipath.com/u/Rasoul)\
**Post date:** [September 5, 2019, 8:51am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/4 "2019-09-05T08:51:59Z")

</div>

Perfect! the first validation issue is resolved, any ideas about the other one ?

---

<div class="post-metadata">

**Author:** ![Rasoul](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rasoul/32/115742_2.png) [@Rasoul](https://forum.uipath.com/u/Rasoul)\
**Post date:** [September 5, 2019, 9:08am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/5 "2019-09-05T09:08:17Z")

</div>

Okay I was also able to find System.Xaml.Serialization from imports and it worked, even thu I tried finding it many times before, but apparently I had to find it manually not in the search bar !

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [September 8, 2019, 9:08am UTC](https://forum.uipath.com/t/validation-error-system-xaml-serialization-uipath-excel-workbookapplication/148212/6 "2019-09-08T09:08:20Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
