So I know what is happening, I just don't know how to fix it.
I have the same problem others have had with setting design layout values that initially throw the error because a value isn't set soon enough at load.
I have a horizontal container that holds a horizontal gallery.
Gallery items are populated with:
Sort(colTabs,ID,SortOrder.Ascending)
colTabs is defined in the OnStart to create the tab values themselves.
The error happens because of this calculation (which is setting template width in the gallery dynamically):
Parent.Width/CountRows(Self.AllItems)
I tried using Coalesce as suggested in another post but that didn't work. Although maybe the problem was in my syntax.
The modified code I tested was:
Parent.Width/Coalesce(CountRows(Self.AllItems),200)
It didn't work though. I still get a divide by zero error which doesn't make sense to me. If CountRows isn't returning a number, then the Template width should use 200 as the denominator and I shouldn't get an error.
Appreciate any guidance provided.