-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Somebody broke the CSV file #784
Comments
Hi @mprentice22153 not sure what is causing that to encode incorrectly. I republished another another version. Can you see if you are still hitting the issue? If so I will have to investigate further. Thanks |
@Nicholak-MS Still getting the same problem. I'm not seeing the issue in the downloaded CSV when I get it direct from the website via a web browser. Interesting that it is the first field in the CSV. Apologies for saying it has been happening for a couple weeks. I thought it was happening before I started my vacation in April but I can't find evidence. I've definitely been seeing it this week. Not sure where the issue is currently |
@mprentice22153 |
I have not rebooted my system for almost a month but will soon and can test, just in case something is whacky. When I download the CSV via a browser and save it, this works fine:
|
Thanks @mprentice22153 for the testing assistance here from your side. I am able to confirm downloading from the site works as well. I haven't tried via PS. But curious to hear if rebooting helps your side. If not I will do a little reconfig on my side to see if we can get it working again. Thanks |
@Nicholak-MS @mprentice22153 |
This ticket should not have been closed. I have rebooted my system and confirmed I'm still seeing the 3 question marks. I've built a workaround into my function but I really shouldn't need to.
|
Hi @mprentice22153 I have taken down the CSV and rebuilt from an entirely new csv file and made it available to download. Curious if this solves the encoding issue you are running in to. Can you please run a test? Thanks, |
@Nicholak-MS My workaround works and my scripts are working again but odd that this is happening. I guess you'll just have to turn it into an API request and forego the CSV. ;-)
|
Hi @mprentice22153 , can you help me to test a theory please? I think I traced the timing of the start of this issue back to a new row that was added that starts with digits, it is the only row of its kind... So I removed the row temporarily to see if that is the root of the issue. Could you try your original PS code and see if that removes the "???". Thanks! |
Please review the format of the CSV file. It has been broken for a couple weeks.
When I run this, which is what I have used for the past few years:
$M365Products = convertFrom-CSV (Invoke-WebRequest -Uri $MicrosoftFileLocation).tostring()
and then:
$M365Products |gm
The output is:
TypeName: System.Management.Automation.PSCustomObject
Name MemberType Definition
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
???Product_Display_Name NoteProperty string ???Product_Display_Name=10-Year Audit Log Retention Add On
GUID NoteProperty string GUID=c2e41e49-e2a2-4c55-832a-cf13ffba1d6a
Service_Plans_Included_Friendly_Names NoteProperty string Service_Plans_Included_Friendly_Names=Auditing 10Year Retention Add On
Service_Plan_Id NoteProperty string Service_Plan_Id=7d16094b-4db8-41ff-a182-372a90a85407
Service_Plan_Name NoteProperty string Service_Plan_Name=Auditing_10Year_ Retention_ Add_On
String_Id NoteProperty string String_Id=10_ALR_ADDON
What are those 3 question marks "???" in front of Product_Display_Name
Thank you.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: