That is probably because under some OS' the AppData translates to another subdirectory (Roming, LocalLow, Local for ex.) below AppData.
So it may not be giving you the desired path you are expecting and can not open the folder since the path is invalid.

What OS?