KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy Error showing

  • Error showing

    Posted by bimangunarathne on July 23, 2024 at 1:19 pm

    when i run this code->”messages:(“exch_message”;csv)0: `$”:message.csv”” in kdb level 2 capstone project question number 1.7 its showing this error -> “message.csv. OS reports: No such file or directory” but the message.csv already in the FP.Data folder how to fix it

    bimangunarathne replied 2 months, 3 weeks ago 2 Members · 6 Replies
  • 6 Replies
  • megan_mcp

    Administrator
    July 23, 2024 at 1:30 pm

    Hi @bimangunarathne

    By running this line of code, you are searching for the messages.csv file in your current directory. You need to provide a file path to which your message.csv file currently sits in.

    It states in the project the location of the directory (screenshot below).

    As it is saved to variable csvPath, you can use that.

    If you have any questions, please feel free to let me know 🙂

    Thanks,

    Megan

  • bimangunarathne

    Member
    July 23, 2024 at 1:44 pm

    I run the code you shoing in the screen shot but still showing the same error is my code wrong?

    • megan_mcp

      Administrator
      July 23, 2024 at 1:47 pm

      Try replacing this part of your code:

      0: `$”:message.csv”

      With this:

      0: `$csvPath;

  • bimangunarathne

    Member
    July 23, 2024 at 1:48 pm

    this is the code i put in the 1.7 question

  • bimangunarathne

    Member
    July 23, 2024 at 1:56 pm

    now its showing char error if i chnage the “” mark its show ing syntax error

Log in to reply.