Facing Error. Error 2101. AddProducts.csv could not be found

One or two times it worked. After that this error is popping up. I uploaded the .csv file in a designer section.

Capture

Capture1

This looks a bit cumbersome...
What about copying the file from the assets to shared storage?
Use the Copy method from the File component

Taifun

1 Like

How can I do that? From the asset means? Can you please explain with blocks if possible?

The purpose is to offer a .csv file (same file for all users) to users. So, I thought to embed the .csv file within the app, so users will share/download it.

What is wrong with it being in the assets (media folder) ?

1 Like

Yes, the file is in media section. I loaded within DataFile component in Designer section.

From the documentation
http://ai2.appinventor.mit.edu/reference/components/storage.html#File

CopyFile(fromScope,fromFileName,toScope,toFileName)
Copy the contents from the first file to the second file.

Let me suggest you to try something

Taifun

1 Like

Then you want to set your fileScope to Asset, and just use the filename in the DataFile read block. I already suggested this with an example in another topic, but you have chosen to ignore the advice provided..

1 Like

Yes, it is working now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.