Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Recursive Table Bug on Table that has been deleted

1602713854

Edited 1602714000
Villagelder
Pro
Marketplace Creator
I am getting the error below when using Recursive Table API. It is referring to an old item in a table that doesn't exist anymore. I've gone through and made new tables (with new names) and deleted the old references just to be sure. However, I am still getting this error. It is like the table, and item referencing the tables, still exist somewhere that I cannot see. The table where this line item existed has been deleted. The line itself no longer exists. The two tables being referred to, no longer exist. (From RecursiveTables): An error occured parsing this roll: book of [[ 1t[subject] ]] of the [[ 1t[interest] ]] Error: Cannot read property 'id' of undefined Help is much appreciated, Villagelder
1602748221
Ziechael
Forum Champion
Sheet Author
API Scripter
What triggers the error? Are you using a pre-existing macro or a manual API call?
1602767452
Villagelder
Pro
Marketplace Creator
This is a sequence of calls. The most concerning thing to me is that is referencing a record that is no where to be found in my order of operations. Here is my sequence of events: Click this macro Runs this code Calls this table Referencing these tables Results on line 1 of trinketmaker are good, but anything else results in the error. Also subject and interest tables do not exist (deleted), nor does that line causing the error exist (deleted, but still referenced somewhere). The cannot read property 'id' of undefined means that line of code is trying to reference tables that don't exist. That is a correct statement. However, the line item with 'subject' and 'interest' doesn't exist (visibly) in any tables. Thanks, Villagelder
1602768103
Ziechael
Forum Champion
Sheet Author
API Scripter
What are the contents of the tables called tomes, course and geo-dragonlance? It sounds like somewhere in the chain of table calls a result of the non-existent tables is being attempted, if any of the rows in those tables results in a call to subject or interest (sounds like the tomes table most likely) then you'll need to amend, delete or remove them.
1602768377
Villagelder
Pro
Marketplace Creator
Wow. I feel foolish...  :) You were right on. Thanks!
1602768914
Ziechael
Forum Champion
Sheet Author
API Scripter
Haha, no worries... happy to help. You aren't likely the first, nor likely the last to make similar mistakes. Welcome to the club ;)