# Invalid\_dataprep\_syntax

**URL:** <https://community.amazonquick.com/t/invalid-dataprep-syntax/14524>\
**Category:** Q&A\
**Tags:** error, dataset, quick-sight\
**Created:** [June 12, 2023, 6:00am UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524 "2023-06-12T06:00:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clayton\_Barton](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@Clayton\_Barton](https://community.amazonquick.com/u/Clayton_Barton)\
**Post date:** [June 12, 2023, 6:00am UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/1 "2023-06-12T06:00:26Z")

</div>

Soon as I add the 4th table, I start to get this error, but when I remove the table, the rest of the data works fine.  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/8/83963c8837b231fa9cf053648c39c0915b8a57d1.png)  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/6/63988013fb70209bf1b58c9ae8507c1fe58f1682.png)

---

<div class="post-metadata">

**Author:** ![Naveed](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/naveed/32/961_2.png) [@Naveed](https://community.amazonquick.com/u/Naveed)\
**Post date:** [June 12, 2023, 6:24am UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/2 "2023-06-12T06:24:55Z")

</div>

Hi,

We used many tables in dataset but no issue.  
In your case you can check the field/column mapping and data type of a table which create issue.

In my experience, if you are using the database at the backend. Simple create view of your query and create dataset. It will simply upload your data and you can use the features of SQL too .  
🙂

Regards,  
Naveed Ali

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [June 12, 2023, 8:20am UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/3 "2023-06-12T08:20:32Z")

</div>

Hi @Clayton_Barton - The 4th table is from a different data source? Please confirm, if all data sources are not same data source , i believe you should use SPICE or make the 4th data source in SPICE and then do the join.

Also if possible, you can also follow @Naveed approach to have a view at DB layer and use the view for reporting.

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![ArunSanthosh](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/arunsanthosh/32/3292_2.png) [@ArunSanthosh](https://community.amazonquick.com/u/ArunSanthosh)\
**Post date:** [June 13, 2023, 4:56pm UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/4 "2023-06-13T16:56:32Z")

</div>

@Clayton_Barton - You should ideally be able to mix data from multiple sources within a dataset without any issue. So, I would recommend filing a case with AWS Support where we can dive into the details so that we can help you further. Here are the steps to [open a support case](https://docs.aws.amazon.com/awssupport/latest/user/case-management.html). If your company has someone who manages your AWS account, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team or whomever manages your AWS account. They should be able to open an AWS Support case on your behalf. Hope this helps!

Regards,  
Arun Santhosh

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [June 13, 2023, 7:21pm UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/5 "2023-06-13T19:21:45Z")

</div>

Thanks @ArunSanthosh - Can we do a join with different data sources without SPICE. Although I will do a POC, just checking with you on this Quickly. If yes, How Quick Sight is processing this operation? Any details will really appreciated?

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![ArunSanthosh](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/arunsanthosh/32/3292_2.png) [@ArunSanthosh](https://community.amazonquick.com/u/ArunSanthosh)\
**Post date:** [June 14, 2023, 6:48pm UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/6 "2023-06-14T18:48:20Z")

</div>

Hi @Sanjeeb2022 - Different data sources are handled in SPICE. When you bring in a different data source and define the join, Quick Sight will automatically change the query mode to SPICE.

Regards,  
Arun Santhosh

---

<div class="post-metadata">

**Author:** ![ArunSanthosh](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/arunsanthosh/32/3292_2.png) [@ArunSanthosh](https://community.amazonquick.com/u/ArunSanthosh)\
**Post date:** [June 14, 2023, 6:49pm UTC](https://community.amazonquick.com/t/invalid-dataprep-syntax/14524/7 "2023-06-14T18:49:43Z")

</div>

Archived on June 14, 2023, 6:49pm UTC


