I've attached the pd patch and csound file im using...

ilen prints the file length in seconds to the console. when I use the istatement you see in the csd file. But if I remove the i statement and place the same one in a message for pd to send to csound the compiler says PdToC.pd
ilen = na

why is this?
Many thanks

c_pd.csd