# 'VisualBasicValue\<Object\>': Compiler error(s)

**URL:** <https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060>\
**Category:** RPA Discussions\
**Tags:** coding\
**Created:** [July 17, 2023, 9:27pm UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060 "2023-07-17T21:27:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sindhu\_09](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sindhu_09/32/401763_2.png) [@Sindhu\_09](https://forum.uipath.com/u/Sindhu_09)\
**Post date:** [July 17, 2023, 9:27pm UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/1 "2023-07-17T21:27:54Z")

</div>

Currenlty, I am working around data table.  
I have created the data table and declared output as variable, I have used message box. while running the flow I have executed with Step Into and passed the output data table variable, encountered the below error. Please let me know how to resolve the issue?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/0/a/80a8d44555813a1a0ea078051a82f607e2731878.png)

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [July 17, 2023, 11:57pm UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/2 "2023-07-17T23:57:43Z")

</div>

Hi,

Can you share the xaml as file, if possible?

Regards,

---

<div class="post-metadata">

**Author:** ![ByteBreaker](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/bytebreaker/32/410625_2.png) [@ByteBreaker](https://forum.uipath.com/u/ByteBreaker)\
**Post date:** [July 18, 2023, 12:45am UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/3 "2023-07-18T00:45:17Z")

</div>

You have declared two variables, can you please provide more context to these?  
**dt\_output**  
**dtoutput**

What are you trying to achieve here? If you just want to see output of MessageBox and you provide output variable from Build DataTable it’ll just show output as “TableName”.

---

<div class="post-metadata">

**Author:** ![Parvathy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/parvathy/32/484539_2.png) [@Parvathy](https://forum.uipath.com/u/Parvathy)\
**Post date:** [July 18, 2023, 1:08am UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/4 "2023-07-18T01:08:01Z")

</div>

Hi @Sindhu_09

To print your data table data in your message box use “Output Data Table” Activity as it converts a data table to string output by giving the input has dtoutput and print your data table.

Giving dtoutput directly to message box will give you below image

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/a/b/cab44874f1e00ab301f65e7abb9be0fd48dedc0e.png)

If you want the contents in the data table you can follow below steps of the image:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/4/3/643bc98fff5c5a5a18309c3fea11edd1f4806765.png)

In the above image,  
output of “Build Data Table” is: dtoutput  
Output of “Output Data Table” is: Output  
Output variable is an string variable and printed in Message Box.

Hope you understand!!  
Regards,y

---

<div class="post-metadata">

**Author:** ![Quenton\_Wayne\_Rebello](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/quenton_wayne_rebello/32/411792_2.png) [@Quenton\_Wayne\_Rebello](https://forum.uipath.com/u/Quenton_Wayne_Rebello)\
**Post date:** [July 18, 2023, 5:07pm UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/5 "2023-07-18T17:07:10Z")

</div>

This error may have come due to the scope of variable getting over. Since you are currently in main, the variable scope is not created yet. After stepping into the main sequence and build datatable, the error might change to null or values you entered.

If you want to see result of message box using step into, you can add a dummy activity like log message and put a breakpoint at that. Once testing is over this dummy activity can be deleted

---

<div class="post-metadata">

**Author:** ![Sindhu\_09](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sindhu_09/32/401763_2.png) [@Sindhu\_09](https://forum.uipath.com/u/Sindhu_09)\
**Post date:** [July 19, 2023, 5:02pm UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/6 "2023-07-19T17:02:05Z")

</div>

Thanks for all the suggestions. I have deleted multiple variable and declared the variable and it worked fine

Thank you so much everyone

---

<div class="post-metadata">

**Author:** ![Parvathy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/parvathy/32/484539_2.png) [@Parvathy](https://forum.uipath.com/u/Parvathy)\
**Post date:** [July 20, 2023, 1:37am UTC](https://forum.uipath.com/t/visualbasicvalue-object-compiler-error-s/564060/7 "2023-07-20T01:37:52Z")

</div>

Hi @Sindhu_09

You can use Build Data Table too and follow the above steps. It will give you expected output.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/4/3/643bc98fff5c5a5a18309c3fea11edd1f4806765.png)

Hope it will help you  
If you find this as solution for your query mark it as solution to close the loop.  
Happy Automation  
Regards
