I create a bot to generate a .pdf fle from the data that im add to table, but when i try to see the pdf document by cliking in the document icon, open in another tab showing the error…
I already search for this type of error and already try many different ways, but no success..
If the file is in Root > appsheet > data > AllcostOcorrencias-301956931 > Relatorios, and the gSheet is in the app folder AllcostOcorrencias-301956931, you need to start the path from there, like CONCATENATE(“/Relatorios/OCF”,[_RowNumber]-1,“.pdf”)
If you add a Drive shortcut for the desired folder to the root folder where your gSheet is, you can simplify your filepath to just start directly at “/{folder name}/{file name}”
If the folder name is changed to “Reports” but your app formula or initial value has written the path name as “Relatorios”, the app won’t find that file of course.
Btw.. using [_ROWNUMBER]-1 is probably not a good idea. If someone deletes one row from the spreadsheet and then add a new one, it’s possible that you have now two rows with the same file name.