Skip to main content

Hi,

 

I have created a very simple use case in which file is uploaded in form and in Task BOT I am try to store the file in local storage.

While doing so i am getting below error:

java.lang.Exception: Fail to save content of https://community.cloud.automationanywhere.digital/storage/v1/file/eyJhbGciOiJSUzUxMiJ9

StorageFileUri must start with crdata://. Invalid StorageFileUri:

 

Steps performed:

  1. Form created: Element selected → Select file
  1. Task created: Action selected → Process composer: Get storage file → Input variable of type file selected
  1. Process created: Select form → Select BOT task → Assign values from form to task. 

 

 

 

 

Hi ​@MaitryP108831,

 

Please change the Input value of the Taskbot to below.

 

$&ProcessRequest{input}{File0}.File:toRepositoryPath$

 

Note: Your Taskbot should be having a File-Type variable


Hi ​@Padmakumar 

 

I tried assigning repository path but task bot still refers http:// path only

crdata://aari/v2/files/4002?fn=InputFile.txt

 

 

 


Hi ​@Padmakumar 

 

I tried assigning repository path but task bot still refers http:// path only

crdata://aari/v2/files/4002?fn=InputFile.txt

 

 

 

Your Task bot should only need the File: Assign action. And it should be  having one Input variable (string variable) and one Output Variable(File Variable).

 


@MaitryP108831 ​@Padmakumar With this latest Process Composer, I found it’s best to have TWO inputs to your Task Bot: One LIST variable and one FILE variable.

In your Task Bot, use a String: Extract to get the filename. Use the “after”, the LIST variable index 0 (e.g., $lFiles[0]$) and “?fn=” and send the results to a String value. That is the filename you uploaded.

Then, use Process composer: Get storage file, and you can save it to a path with the filename String variable from above.

In the Process itself, send the File element from the Form to the File variable (uncast) and send the same File variable to the input LIST variable, cast as a LIST. This is to allow multiple file inputs from the form.

This works in the latest Process Composer, where the instructions I saw earlier only works in the old Process Composer.