You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long story short, I have to create a report where I have a list of AD groups, the report follows the format AD Groupname as Sheetname, the groupmembers go into the sheets. Some groups are empty, and on those groups - this errors out.
The text was updated successfully, but these errors were encountered:
I would like to add: This is indeed caused by feeding $null into the width (-Autofit)
Not sure if this is a bug then, but if you use the switch and have empty values (PSObject), you will have a corrupt xlsx.
Not published in the gallery, but put in a test to skip applying autofit if there's no data - guessing there might be other switches with similar behavior. Thanks for pointing out where and why this was failing!
Long story short, I have to create a report where I have a list of AD groups, the report follows the format AD Groupname as Sheetname, the groupmembers go into the sheets. Some groups are empty, and on those groups - this errors out.
The text was updated successfully, but these errors were encountered: