Digital Exchange

 View Only
last person joined: yesterday 

This community is a place to discuss Blue Prism DX assets and development.

  • 1.  MSAL VBO Authentication Issues

    Posted 02-09-2023 19:01

    I have been trying to use the MSAL (2.1.0) VBO to authenticate with a registered app to access the Graph API. I am unable to perform any action as they all result in the same error message:

    Internal : Could not execute code stage because exception thrown by code stage: One or more errors occurred.

    I am unable to dig any deeper due to the generic message it returns. I have not modified the VBO in any way and have made sure these prerequisites are installed:

    1. Collection Manipulation
    2. File Management
    3. Windows Compressed File
    4. Microsoft.Identity.Client.dll that was provided by the MSAL download has been placed in C:\Program Files\Blue Prism Limited\Blue Prism Automate\

    I am at a loss as to where to look next as there doesn't seem to be any discussion around this yet. I have even installed this VBO in a fresh installation of Blue Prism 6.9 just to make sure there aren't existing conflictions in our DEV area. What am I missing?



    ------------------------------
    Tim Argenbright
    ------------------------------


  • 2.  RE: MSAL VBO Authentication Issues

    Posted 02-09-2023 22:59

    Hi @Tim Argenbright

    This is due to an AggregateException being thrown. You should be able to capture it by adding an additional catch like this:

    catch (AggregateException err) {
      Exception = err.ToString();
    }
    

    Just add the above code snippet immediately after the close curly brace of the MsalServiceException catch block.

    Cheers,



    ------------------------------
    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange
    ------------------------------



  • 3.  RE: MSAL VBO Authentication Issues

    Posted yesterday

    Hi @Eric Wilson,
    I'm facing MSAL Authentication issue with the below error. I imported the MSAL.NET v2.2 version with the dll. I have performed the prerequisites as mentioned in the Guide. Can you help me to resolve the issue.

    MSAL.Desktop.4.42.1.0.MsalServiceException:

    ErrorCode: request_timeout

    Microsoft.Identity.Client.MsalServiceException: Request to the endpoint timed out. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Platforms.net45.Http.DnsSensitiveClientHandler.<SendAsync>d__2.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Http.HttpManager.<ExecuteAsync>d__14.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Http.HttpManager.<ExecuteWithRetryAsync>d__12.MoveNext()

       --- End of inner exception stack trace ---

       at Microsoft.Identity.Client.Internal.Requests.RequestBase.<HandleTokenRefreshErrorAsync>d__26.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

       at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.<ExecuteAsync>d__2.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Internal.Requests.RequestBase.<RunAsync>d__12.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor.<ExecuteAsync>d__3.MoveNext()

    Inner Exception: System.Threading.Tasks.TaskCanceledException: A task was canceled.

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Platforms.net45.Http.DnsSensitiveClientHandler.<SendAsync>d__2.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Http.HttpManager.<ExecuteAsync>d__14.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

       at Microsoft.Identity.Client.Http.HttpManager.<ExecuteWithRetryAsync>d__12.MoveNext()

    StatusCode: 0

    ResponseBody: 

    Headers:



    ------------------------------
    Amrutha Sivarajan
    ------------------------------



  • 4.  RE: MSAL VBO Authentication Issues

    Posted 21 hours ago

    Hello @Amrutha Sivarajan,

    We're going to need more information.

    • What version of Blue Prism are you using?
    • Which action on the MSAL VBO are you calling?
    • Can you post a screenshot of the action properties (make sure to obscure any sensitive data)?
    • I assume you've set the Tenant ID and other properties?

    Cheers,



    ------------------------------
    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange
    ------------------------------



  • 5.  RE: MSAL VBO Authentication Issues

    Posted 8 hours ago

    Thank you @Eric Wilson for the swift response.

    Below are details you have asked for:
    1. We are using BP7.0 and have configured the Azure as mentioned in the User Guide.

    2.  At the stage for Authentication, when it calls the 'Get Auth Token - Client Secret' action, it takes a while to execute and returns the above error message.

    3. Screenshots below:



    ------------------------------
    Amrutha Sivarajan
    ------------------------------



Welcome to the Blue Prism Digital Exchange Community!

The Blue Prism Digital Exchange is a "shop window" for new and emerging technologies—a platform that puts powerful RPA and AI capabilities into the hands of business leaders. Users can find and apply pre-built AI capabilities, in the form of downloadable integrations and Visual Business Objects (VBOs), to automated processes. These assets connect and integrate Digital Workers, existing systems and processes to Blue Prism's technology partners, creating a solid foundation of AI-enabled Intelligent Automation that's scalable and sustainable.

Blue Prism Digital ExchangeDX Asset IdeasContact DX Support

FAQs

The Blue Prism Digital Exchange (DX) is an online marketplace where businesses can instantly access, apply and share pre-built AI, cognitive and advanced RPA technologies from best-in-class providers. These assets easily connect to existing digital workers, systems and processes to enhance automation capabilities.
The Digital Exchange is free to all users. Most of the content on the DX is free to download but there are some submissions that do have a cost associated. The submissions with a cost are advertised on the asset card and profile. No unwanted costs will be applied to any users.
You can visit and browse the Digital Exchange here. If you would like to consume or download any material it is necessary to create an account on the Blue Prism Portal first.
Everyone can access the Digital Exchange and consume the assets on it. If you would like to contribute to the marketplace it is necessary that you create an account and sign up as a partner.