2022.05.05 12:20 AM
Hi,
I have created the following file as part of Capstone Project using the commands given below. Looks like the file been successfully created in expected folder as its visible on KX Project Development environement (screenshot attached)
/developer-1.5.0-linux/workspace/__nouser__/funds_capstone/ORIG_HOME/badTrades.csv
save `:ORIG_HOME/badTrades.csv
hsym `$ORIG_HOME"/badTrades.csv"
However, the test 3.4 is keep failing with the below error. How can we check what exactly is missing and how it can be resolved?
--> Error
>> exercise3.4 Fail "abort" "abort in before block due to error \"/developer-1.5.0-linux/workspace/__nouser__/funds_capstone/badTrades.csv. OS reports: No such file or directory\""
2022.05.05 02:06 AM
Hi Venu,
The issue here is likely to do with the filepath. When i try to resolve what you have above first without using save you can see what the filepath is.
q)`:ORIG_HOME/badTrades.csv
`:ORIG_HOME/badTrades.csv
// ORIG_HOME is a variable so needs to be joined accordingly
q)hsym `$ORIG_HOME"/badTrades.csv"
`:d n
// this is closer! just missing the join operator between the first and second part..
You can check out the Working with Files module to learn more about creating filepaths and using hsym.
I will add a hint below if you are still stuck - hope this helps.
save `$ORIG_HOME,"/badTrades.csv"
Thanks,
Michaela
2022.05.05 02:06 AM
Hi Venu,
The issue here is likely to do with the filepath. When i try to resolve what you have above first without using save you can see what the filepath is.
q)`:ORIG_HOME/badTrades.csv
`:ORIG_HOME/badTrades.csv
// ORIG_HOME is a variable so needs to be joined accordingly
q)hsym `$ORIG_HOME"/badTrades.csv"
`:d n
// this is closer! just missing the join operator between the first and second part..
You can check out the Working with Files module to learn more about creating filepaths and using hsym.
I will add a hint below if you are still stuck - hope this helps.
save `$ORIG_HOME,"/badTrades.csv"
Thanks,
Michaela
2022.05.05 03:08 AM
Got it! Thanks for the quick reply.
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.