Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

BAS-010014 Cannot open file with read access

Avatar

Avatar
Validate 1
Level 1
r93
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
r93
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
r93
Level 1

19-01-2017

I have a file on the Adobe Campaign application sever and I want to read the contents inside that file. I am able to search for the file and copy it to another

location but I want to open and read the file contents using the javascript activity. After running the javascript code i get this error:

BAS-010014 Cannot open file with read access (errno=2, No such file or directory) although the file does exist and im able to change the file location but cannot have direct access.

This is the Javascript code where I am attempting to read the file contents

var path = "Location of the file"

logInfo(path);

  var file = new File(path);

  file.open("r");

  for each(var line in file){

    logInfo(line);

   file.close();

}

Accepted Solutions (0)

Answers (0)