Hi,
This post is made so that if anyone else (also future me) gets this error, here's the solution.
Background, all of a sudden yesterday, my KUKA.SIM simulation model (.vcmx) for one of our projects stopped working and started giving the following error:
Unhandled exception on starting the simulation.
Could not find a part of the path 'C:\Users\JaiIyer\AppData\Local\Temp\Kuka Mada\pc0m3ghb\KRC\R1\System\$config.dat'.
To resolve this, click the Robot and go to the components properties>RCS and make sure that RobotDataGeneration is selected. If it's already selected, as was in my case, I unselected it and gave the path "C:\Users\JaiIyer\AppData\Local\Temp\Kuka Mada\" in RobotDataFolder, saved the file ran the simulation, to which KUKA.SIM gave the same error. Then I went back into RCS and selected RobotDataGeneration again, and this time everything went back to normal.