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

Install error started 11/9 afternoon PT #515

Closed craig-lund closed 1 year ago

craig-lund commented 1 year ago

Hi Sean, since your update 8 days ago here has been 0 downloads. Up until this afternoon it was pulling the previous version. The new version gives me this...

PackageManagement\Install-Package : Package 'Microsoft.Xrm.Data.Powershell' failed to be installed because: The file 'C:\Users\VssAdministrator\AppData\Local\Temp\xnpxsdr0[Content_Types].xml' already exists. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

As a work around I added this to my install line

Install-Module -Name Microsoft.Xrm.Data.Powershell -RequiredVersion 2.8.14 -Force

seanmcne commented 1 year ago

@craig-lund thx for reaching out. The 0 downloads appears to be a problem with PowerShell Gallery, I've noticed none of my stats are updating, for some reason and I've reached out to the powershell gallery folks to see if they can help figure out why.

Re: the issue, the problem you're having was with a specific version that was released but subsequently fixed.
In the process of prepping an alpha/prerelease for the next update, it looks like 2.8.16 was re-listed and 2.8.17 was unlisted which caused the issue you're seeing.

I've gone in and reset the listed/unlisted state for .16 and made sure .17 is the latest release version. I'm not entirely sure how these were toggled during the releasing and testing of the latest alpha package - I'm going to review my scripts for release as well as double checking in the gallery again to ensure this doesn't happen again.

craig-lund commented 1 year ago

@seanmcne thanks for the quick response. I will check and see if the issue is resolved. Much appreciated.

seanmcne commented 1 year ago

FYI @craig-lund I'm going to ship an updated module 2.8.19, it's been tested on my end and tested by several folks running into the null issue when zero records are returned.

craig-lund commented 1 year ago

Thanks @seanmcne , I will work on validating any issues when we are in our production environment. For stability, I am still grabbing 2.8.14.

seanmcne commented 1 year ago

If it helps, here are the issues that occurred between .14 and now .19:

I'll be publishing .19 shortly which should have all of the above addressed.