Skip to main content

Hi everyone,

 

I have tried to follow the documentation to upload a file : https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/process-composer-upload-storage-file.html

The process looks like that :

What can be the cause of this error ? I know that the path of files is usually crdata:// but I do not know if and why that causes this problem

When I then add a message box after the Process Composer: Upload Storage file component in the bot ; to display the $File_Path_In_Storage$ variable I get : crdata://aari/v2/files/37?fn=<file name>.pdf

 

It seems that the upload was successful, but I can’t access the uploaded file.


I also note that there is a problem in the documentation at this step :

a type Document is expected, but the variable $File_Path_in_Storage is of type String.

The only Document variable that corresponds is $UploadBot.input[File_Reference_In_Storage]$


OK I got it !

The source of this problem is that I respected the rules and chose what was available.

There is no output of type Document in the output bot : the only choice is the input file

The solution is to force the name of the output and give a String where a Document is expected. (i.e. I wrote the name with my keyboard instead of selecting it with the tool “insert a variable”)

Then, it works as expected. But I fear it is not the best way of doing so.

 


Reply