How to pass rowOptions to DuplicatePage

I’m writing a formula and am running into an error:

“Could not cast “All” to enum with keys
Visible | All | None”

According to the docs:

This parameter is used to specify which rows should be included. It should be one of - All, Visible, None. If set to All, all rows including those hidden by a view will be included. If set to Visible, only visible rows will be included. If set to None, none of the rows will be included. This option is only used if duplicateOptions is not “CreateViews”.

I tried simply the word All, I tried it with single and double quotes and even with back quotes but either it doesn’t run at all or it gives me the error above.

It’s probably something really simple but I have no clue.

Hi @Pascal_Clarkson and welcome to the Coda Community,

It’s much easier for me and others to help you if you share your doc with us. We can take a look into the formulas and everyone can make a copy of the document so we don’t get in the way of each other.

Please follow this guide to share your doc with us:


Extracted it into a new doc to share:

Can you allow edit or copy?

it’s set to allow copy,…

Changing All to all fixed it . . . this is a bug.

Oh thanks! Knew it had to be something silly like that.
I thought things usually are case-insensitive in coda.
Writing that makes me think how this is a string and might be slightly differently handled.

Thank you!