404 Directory Not Found in OneDrive

I created file archieving using formula like this in OneDrive, using formulas 

adityo_reksopra_0-1650248443022.png

and the files generated from Bot saved to default folder

adityo_reksopra_1-1650248526740.png

The FIle already redirected to appsheet default folder in one drive, but it always returned 404 Directory Not Found

the regnerated link

https://www.appsheet.com/template/gettablefileurl?appName=AssetOpname-office365-2147180&tableName=BA...

 

the error screenshot

adityo_reksopra_2-1650248652571.png

 

Solved Solved
1 12 1,273
1 ACCEPTED SOLUTION

Great, thanks for the extra details, I think I understand now.

It seems to me the issue is that you're trying to look up the file with a full path from your OneDrive root, when you should just be using a relative path.

I assume the data source is stored in the "AssetOpname...." folder, so if the files are being generated in the "Files" subfolder, you should just need to use the relative path of:

"Files/filename.pdf"

View solution in original post

12 REPLIES 12

I can't make sense of this. What are you trying to do?

I created bot (Create File) that saved in appsheet default folder :

appsheet/data/AssetOpname-office365-2147180/Files

i have a table that column type files that read default folder

but it returned 404 directory not found 

Steve
Platinum 4
Platinum 4

I don't use OneDrive, but this doesn't look right to me:

Steve_0-1650293874826.png

Did you type that in manually?

No I dont, i click the icon 

adityo_reksopra_0-1650331434255.png

and it pop up the menu to select the template, and after it finished, the link is automated generated.

The default folder is :

appsheet/data/AssetOpname-office365-2147180/Files

 

i tried multiple scenarios, in formulas that i created here, ini columns file type

adityo_reksopra_0-1650421168059.png

that results come up with this : 

appsheet/data/AssetOpname-office365-2147180/Files

/appsheet/data/AssetOpname-office365-2147180/Files

OneDrive/appsheet/data/AssetOpname-office365-2147180/Files

 

appsheet//data//AssetOpname-office365-2147180//Files

//appsheet//data//AssetOpname-office365-2147180//Files

OneDrive//appsheet//data//AssetOpname-office365-2147180//Files

 

but no one works

I still don't understand what exactly the issue is. Can you elaborate in more detail? Are you having trouble saving a Bot-created file to the appropriate directory? How are you trying to open it?

hi @Marc_Dillon sorry i don't clearly elaborate the issues.

1. I make a Create File Bot

adityo_reksopra_0-1650427076417.png

and it used default appsheet saved folder, in my apps the default saved folder is located in appsheet/data/AssetOpname-office365-2147180/Files, the bot works perfect, it can generate files. the result will be : 

adityo_reksopra_2-1650427941632.png

 

appsheet/data/AssetOpname-office365-2147180/Files/AssetOpname_a3c59e02 --> a3c59e02 is generated from UNIQUEID() function in appsheet that written in [Nomor BAST]

2. then, i want to make an action button, that can open the files after generated by bot while the status change to "approved"

adityo_reksopra_1-1650427275917.png

so i make behaviour when the status approved it created link to the generated files

CONCATENATE("appsheet/data/AssetOpname-office365-2147180/Files/",“AssetOpname_”, [Nomor BAST], “.pdf”) -> i created the link exactly same in number 1 --> in the appsheet default folder

adityo_reksopra_3-1650427990809.png

i thought there will be no error, becase the apps shown the file name

 

adityo_reksopra_5-1650428059405.png

but when i clicked it returned 404 Directory Not Found

adityo_reksopra_6-1650428114139.png

so i tried a couple link like this :

appsheet/data/AssetOpname-office365-2147180/Files

/appsheet/data/AssetOpname-office365-2147180/Files

OneDrive/appsheet/data/AssetOpname-office365-2147180/Files

 

appsheet//data//AssetOpname-office365-2147180//Files

//appsheet//data//AssetOpname-office365-2147180//Files

OneDrive//appsheet//data//AssetOpname-office365-2147180//Files

 

and it still keep returned error

 

I'm using the same formulas and procedure in Gdrive and theres nothing wrong, but the problems always in one drive.

Great, thanks for the extra details, I think I understand now.

It seems to me the issue is that you're trying to look up the file with a full path from your OneDrive root, when you should just be using a relative path.

I assume the data source is stored in the "AssetOpname...." folder, so if the files are being generated in the "Files" subfolder, you should just need to use the relative path of:

"Files/filename.pdf"

Thank you very much @Marc_Dillon i'm looking for the answers for a week, and the solution works perfect

Hi @adityo_reksopra ,

I have the same issue in onedrive, I have tried to figure out it following the thread but I couldn't. Can you help me by showing the final expression in the 'new value' and 'file name prefix' you used?

My files are saved in the same folder where is the template, but different sub folder (Files and Content)

thank you!

julio

Hi @Julio_Moyano 

this is my expression:
CONCATENATE("/Files/",“AssetOpname_”, [Nomor BAST], “.pdf”)

Thanks @adityo_reksopra 

I found the issue, the default app folder was not the same where the data spreadsheet is and template.

 

 

 

Top Labels in this Space