Capstone Project fails optRef table type

when I run the meta for the optRef table i get the same schema as what is expected but when I run the test i get “exercise2.1 Fail (optRef Has Correct Format" “”“ ").

my table meta below:

c t f a
option_id s
inst_id j
opt_type s
strike j
expiry d

code used to create the table - optRef:@[refServiceHandle;`getOptionRef;(uniqueOpts)]

optRef:select from option where option_id in uniqueOpts

optRef: update “D”$expiry from optRef

The table has 99 rows

Any help would be greatly appreciated.

Hi @ross_curtis ,

I’d need some more of your code to be able to troubleshoot properly, I’m not sure what your “option” table is.

A simpler way to create the optRef table would be:

optRef:refServiceHandle (`getOptionRef;uniqueOpts);

It should have 100 rows, you don’t need to run that second line where you filter on uniqueOpts as that is what the getOptionRef API is doing.

Hope this helps,

Laura