seanmcne / Microsoft.Xrm.Data.PowerShell

This module uses the CRM connection from Microsoft.Xrm.Tooling.CrmConnector.Powershell and provides common functions to create, delete, query, and update data as well as functions for common tasks such as publishing, and manipulating System & CRM User Settings, etc. The module should function for both Dynamics CRM Online and On-Premise environment.
201 stars 64 forks source link

Ignored -ConcurrentThreads param #484

Closed ManuInNZ closed 2 years ago

ManuInNZ commented 2 years ago

Hi

not sure how to confirm but it looks as though the ConcurrentThreads switch get ignore as I un the Import-CrmDataFile.

using PS 5.1 and module version 1.0.0.60

triggered with

      $conn = Get-CrmConnection -ConnectionString "$(ConnectionString)"
      $importParams = @{
          CrmConnection = $conn
          DataFile = "$(Pipeline.Workspace)/Data.zip"
          ConcurrentThreads = "6"
      }
      Import-CrmDataFile @importParams -EmitLogToConsole -Verbose -ErrorAction Stop

Logs extract

DataMigrationUtility.Import Information: 8 : Processing EntityA (threaded (1)), Imported 1728 of 3383
Microsoft.Xrm.Tooling.ConfigurationMigration.Powershell Information: 8 : Processing EntityA  (threaded (1)), Imported 1728 of 3383--Working
DataMigrationUtility.Import Verbose: 16 : Connection 1 has imported 1728 of 3383 : 1728 
VERBOSE: Processing EntityA  (threaded (1)), Imported 1728 of 3383--Working

To me , it seems to report using only one thread.

Any ideas ?

ManuInNZ commented 2 years ago

Nope ?

seanmcne commented 2 years ago

Hi ManuInNZ sorry this fell off my radar, I'd open a ticket as this cmdlet is provided by the Microsoft product team and not part of this modules functions/cmdlets. I agree though, it does look to be using only 1 thread.

ManuInNZ commented 2 years ago

Working with MCS on a customer project now and i have asked them to create one internally too.

Cheers Manu

On Thu, 28 Oct 2021, 07:30 Sean McNellis, @.***> wrote:

Hi ManuInNZ sorry this fell off my radar, I'd open a ticket as this cmdlet is provided by the Microsoft product team and not part of this modules functions/cmdlets. I agree though, it does look to be using only 1 thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell/issues/484#issuecomment-953200014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4R3AAIIGWDZUWP5KZCZW3UJBAK5ANCNFSM5DDHG6FA .

seanmcne commented 2 years ago

Thanks! Also feel free to reach out to me on Teams as well (if you have an account internally or you're federated) and we can chat about the issue as well.