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 .
×

Error: getSheetItem / getComputed throws on D&D 2024 (Beacon) sheet: “Cannot read properties of undefined (reading ‘initiative_bonus’)”

GroupInitiative now crashes the sandbox whenever it reads initiative from a D&amp;D 2024 by Roll20 (Beacon) character. It happens with just one token selected, linked to a Beacon sheet. The same setup last worked on Wednesday, Oct 21. I had no combat sessions in between, and the first failure was Monday, Oct 26. It has failed every time since. To rule out GroupInitiative, I tested with a minimal standalone script. With one Beacon-linked token selected, it runs await getSheetItem(charId, 'initiative_bonus') inside a try/catch. Result: getSheetItem threw: Cannot read properties of undefined (reading 'initiative_bonus') So the failure happens in the API server itself, not in any script. Full error from GroupInitiative (1-click version): TypeError: Cannot read properties of undefined (reading 'initiative_bonus') at getComputed (file:///home/node/d20-api-server/api.js:773:30) at getComputedProxy (1-CLICK: GroupInitiative [Tab 25]:40:29) at Object.func (1-CLICK: GroupInitiative [Tab 25]:440:22) at 1-CLICK: GroupInitiative [Tab 25]:1341:33 at Array.reduce (&lt;anonymous&gt;) at 1-CLICK: GroupInitiative [Tab 25]:1324:48 at Array.map (&lt;anonymous&gt;) at GetBonuses (1-CLICK: GroupInitiative [Tab 25]:1310:31) at findInitiativeBonus (1-CLICK: GroupInitiative [Tab 25]:1387:23) at runNextTicks (node:internal/process/task_queues:65:5) This looks like the same regression reported in July 2025: <a href="https://app.roll20.net/forum/post/12441895/possible-new-group-initative-bug-typeerror-cannot-read-properties-of-undefined-reading-initiative-bonus" rel="nofollow">https://app.roll20.net/forum/post/12441895/possible-new-group-initative-bug-typeerror-cannot-read-properties-of-undefined-reading-initiative-bonus</a> . Then, the error came from api.js:674 , and Concentration broke the same way on constitution_save_mod . Any script that reads Beacon computed values is probably affected now too. Setup: Sandbox: v1.5 2026-08-19 (from the Mod console) Sheets: D&amp;D 2024 by Roll20 (Beacon) for PCs, 2014 legacy sheet for some NPCs Mods: GroupInitiative (1-click), Combat Master 2.49 Since the sandbox build predates the breakage, I suspect something that changed between Oct 21 and Oct 26, possibly a D&amp;D 2024 sheet update, rather than the sandbox itself. Happy to provide more details or a test game if that helps.
1793111184

Edited 1793116671
AmadeusVF
Pro
API Scripter
It seems they changed something in the Beacon Sheet functions getsheet and setsheet, none of my scripts can read or set value using those function in the API. So, we should wait to see what they are going to do and probably update all the scripts that use those functions.
1793116192

Edited 1793122144
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'm not getting the error above in the console log when running group initiative, but it is definitely crashing the sandbox. Escalated.
I am getting the error.
Hey folks,&nbsp; I'm looking into this. I'll let you know when we have a clearer idea of what could have caused this change. Thanks for your patience!
1793130144
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks, Nic!
Hey folks, Thank you for your patience, I've pushed a fix that should have resolved this problem. If you're still having issues, please message me directly and I'll work with you to resolve it.
Thank you