Error: Invalid number of columns in query

Highlighted
sdelobel
Level 2
Error: Invalid number of columns in query
Jump to solution
Hi,

After create my connection with sucess to my postgresql database.

I've the following error when I import my table in my project :

An invalid argument has been encountered : Invalid number of columns in query (2, expected 0) SELECT * FROM "public"."ape_ref" LIMIT 10000. Please check dataset schema

Could you explain me the reason of this error ?
0 Kudos
1 Solution

Accepted Solutions
sdelobel
Level 2
Re: Error: Invalid number of columns in query
Jump to solution

If you create a new dataset (postgresql in my case) with just filling fields and click on CREATE button





The error "Invalid number of columns in query" appear





The reason of the problem is your dataiku schema is empty.





To correct this one, click on CHECK DATA button and RELOAD SCHEMA USING DETECTED DATA button





Now, you can use your dataset after you push CREATE button 🙂

View solution in original post

0 Kudos
3 Replies
UserBird Dataiker
Dataiker
Re: Error: Invalid number of columns in query
Jump to solution

Hi,



Can you try the following: go to your table, then Settings -> Schema -> Reload schema from table





Cheers,



Du Phan

0 Kudos
sdelobel
Level 2
Re: Error: Invalid number of columns in query
Jump to solution
Thanks it's works now
0 Kudos
sdelobel
Level 2
Re: Error: Invalid number of columns in query
Jump to solution

If you create a new dataset (postgresql in my case) with just filling fields and click on CREATE button





The error "Invalid number of columns in query" appear





The reason of the problem is your dataiku schema is empty.





To correct this one, click on CHECK DATA button and RELOAD SCHEMA USING DETECTED DATA button





Now, you can use your dataset after you push CREATE button 🙂

View solution in original post

0 Kudos
Labels (2)