HubDB: Error in help doc?

SOLVE
patpalingo
Member

I'm on step 1 of this, I copy the code for step 1, swap in the value for my db and when I try to save it gives an error and won't publish https://designers.hubspot.com/docs/tutorials/how-to-build-a-real-estate-listing-with-hubdb

 

0 Upvotes
1 Accepted solution

Accepted Solutions
EricSalvi
Solution
HubSpot Employee

Hey @patpalingo
Try this line instead. 

{% set table = hubdb_table_rows(668065, queryparam) %}

Let me know how you make out.

View solution in original post

6 Replies 6
EricSalvi
HubSpot Employee

Hey @patpalingo, what type of error are you receiving. Also when you say Step 1 and you swap in the value for your DB I assume you actually meant Step 2?
Make sure you set up the Database with the exact Columns and Types first. 

patpalingo
Member

Sorry, yes I mean Step 2. When I paste that in and swap in my db value it won't let me save

Here is error

The following validation error was found: TemplateSyntaxException: Error parsing 'hubdb_table_rows{{668065}}, queryparam)'. syntax error at position 26, encountered '}', expected ':'

0 Upvotes
EricSalvi
Solution
HubSpot Employee

Hey @patpalingo
Try this line instead. 

{% set table = hubdb_table_rows(668065, queryparam) %}

Let me know how you make out.

View solution in original post

patpalingo
Member

Thank you Eric, that worked

There is a similar thing in another step of that documentation.

I just need to figure out why it's printing some things like it is now haha

EricSalvi
HubSpot Employee

Try it out and if you need help please reach out.

0 Upvotes
mwhite
Participant

Adding this here because it's the same tutorial from question above:

In this Real Estate Listing Tutorial it asks us to setup a column named type using select options. However, the select options are being pulled from the database but it requires I type in select options? This throws off this column completely. Please advise as something maybe changed in the adding a Column type(Select) interface?

 

Thanks,

-Matt

0 Upvotes