Help with AWS activities (sending to Bucket)

Hi guys, what’s up?

I have the following problem:

Context: I need to send an .xlsx file to an AWS S3 Bucket. I have a user with full access to the bucket, either to get an object or just to list the information. I made a python version (using Boto3 ) with this same user and it worked.

Problem: When I do the “Upload Object from File” activity from UiPath.AmazonWebServices.Activities, I get an access denied return, even with the correct information.

Suspicions: I believe that the fact that I’m not putting “temporary session token” may be influencing it, but I couldn’t find any information to get this Token via UiPath.

Does anyone have a solution? I’m having a lot of trouble
Example flow:
image

Error:
image

@Felipe_Almeida

  1. Session token is not mandatory…even if not given that is fine…
  2. Can you open locals panel and show exception detils from there
  3. Can you verify by printing the secret and key id

Cheers

The execution of the process:



Error:

@Felipe_Almeida

  1. When exception occurs expand the exception details from locals panel
  2. As per error are you havign upload permissions? sometimes proxy settings might stop the file from being uploaded as well

cheers

Yes, this user I am using has Upload permission. Regarding the Proxy configuration, I don’t know.

Exception:
image


This is message:

RemoteException wrapping UiPath.AmazonWebServices.Core.AWSException: Failed to get the bucket details: Access Denied
Error: Access Denied  ---> RemoteException wrapping Amazon.S3.AmazonS3Exception: Access Denied  ---> RemoteException wrapping Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. 
   at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler\_netstandard\HttpRequestMessageFactory.cs:line 595
   at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler\_netstandard\HttpRequestMessageFactory.cs:line 546
   at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler\HttpHandler.cs:line 185
   at Amazon.Runtime.Internal.RedirectHandler.InvokeAsync[T](IExecutionContext executionContext) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\RedirectHandler.cs:line 0
   at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\Unmarshaller.cs:line 85
   at Amazon.S3.Internal.AmazonS3ResponseHandler.InvokeAsync[T](IExecutionContext executionContext) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Services\S3\Custom\Internal\AmazonS3ResponseHandler.cs:line 58
   at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) in C:\codebuild\tmp\output\src856464873\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:line 99
	--- End of inner exception stack trace ---

@Felipe_Almeida

Is the object name correct?

It ahould include any prefix that it has…it would be exactly matching

Cheers

Sorry friend, I couldn’t understand what you said.

Could you give an example?

@Felipe_Almeida

Can you show the container screenshot of your aws

The objectkeyname you provided can you please check that

Cheers

you say that?
image

@Felipe_Almeida

I can see that but can you verify the object key name from aws

Cheers