on my studio web i added an activity of http request the result is a binary file, i saved the result in a variable Response attachement of type IlocalResource, but i cannot retrieve it even if i know the path .
i tried the path exist it return no file/folder exist with the expression RsponseAttachement.LocalPath
i want just to upload the file on storage bucket or on a local folder in my computer.
ResponseAttachement : FileSystemLocalItem { Context=null, CreationDate=[01/01/1601 00:00:00], FullName=âattachment_3b612f3a-51b4-4a85-b4d2-240868125e58.binâ, IconUri=null, ID=â/tmp/5485e960-63e7-4797-a513-5dc3cc2241fd/Input/attachment_3b612f3a-51b4-4a85-b4d2-240868125e58.binâ, IsFolder=false, IsResolved=false, LastModifiedDate=[01/01/1601 00:00:00], LocalPath=â/tmp/5485e960-63e7-4797-a513-5dc3cc2241fd/Input/attachment_3b612f3a-51b4-4a85-b4d2-240868125e58.binâ, Metadata=Dictionary<string, string>(0) { }, MimeType=null }
thanks all for your help
Hi @Youssef_OUAJDI1
Refer below post please, should help you. Please Verify your resource path
The ResourcePath is literally a full path to the file you want to download (including the filename).
Thus, you simply have to construct it like this:
"Directory" + Now.ToString(âdd MMMM_yyyyâ) + "\yourFileName.pdf"
Paste this into the ResourcePath and it will save the file in the correct directory.
Hello Sonalia ;
i already checked this topic unfortuantly in studio web their is no ResourcePath. i can give a name to my file but i canât do anyhing else, all the variables are generated by web studio.
Best Regards
loginerror
(Maciej KuĆșmicz)
June 11, 2025, 7:04pm
4
Hi @Youssef_OUAJDI1
On your second screenshot, the path exist should be checking for a file, not for a folder.
But either way, you can refer to the file exactly with that .LocalPath modifier, allowing you to upload the file to the storage bucket.
You can also use the O365 or GSuite activities to upload the file to cloud, in case you have a sync from those set up on your local machine.
hello Thanks for the help;
i tried to do the upload file to storage bucket unfortunatly i have an error using the local file
when i tried to use the file resource i have this error
the responseAttachment_1.LocalPath is not empty the value is correct .
Thanks for help again.
Best Regards,
Hi @Youssef_OUAJDI1
Could you please verify the value provided under file?
Response.localpath refers to path where that file is present and also includes the file name?
Also are you referring to right variable?
In your very first screenshot, variable is responseattachment.local path
In here you are using responseattachment 1.localpath
Hello Sonalia;
thank for your help i didn t understand your point; but this is my variable
i tried the path.getFileName(ResponseAtachement.localPath) but have same error .
Best Regards.
@Youssef_OUAJDI1
When you use path exists on below variable do you get the success?
Responseattachment.localpath
Can you specify the reference in path exists activity?
And then use that variable in storage bucket to upload the file?
@Youssef_OUAJDI1
Also could you confirm if orchestrator folder name is dev only?
And your storage bucket name is correct?
Hello;
the folder bucket and bucket Name is from a drop down menu from the activity .
the path exist return true
i tried the reference from the path exist but still have same error.
Best regards.
@Youssef_OUAJDI1
Can you try â\â like this with double quotes in where to upload property?
Upload Storage File 1: Invalid blob file path â""â Error code: 3103
using the expression editor i have another error
@Youssef_OUAJDI1
Can you provide the only file name there?
Destination needs to be the name of the file in storage bucket not \
Sorry I meant under where to upload property, only provide the file name.. under file , full path was fine only
1 Like
Thank you so much ;
that was the solution
1 Like
@Youssef_OUAJDI1
Now that your issue is resolved, kindly consider closing the topic by marking the post that helped as a solution.
Thanks.
1 Like
system
(system)
Closed
June 18, 2025, 5:53pm
19
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.