question

MinaKamel-2235 avatar image
0 Votes"
MinaKamel-2235 asked DarrenGosbell-0123 answered

Get Cube size error

Hello, I have a script that was working just fine to and the functionality of it was to obtain the size of the cubes from SSAS and compare it to the trash hold that is set. we have upgraded our system from windows server 2016 to 2019 and I start noticing the error below. can some one please guide me on how I can fix it.

ERROR! Cannot bind argument to parameter 'CimSession' because it null.

windows-server-powershellwindows-server-2019sql-server-analysis-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DarrenGosbell-0123 avatar image
0 Votes"
DarrenGosbell-0123 answered

CimSession is a powershell concept, not related to SSAS directly so it looks like you have a powershell issue here (maybe trying to connect to an old server name)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LukasYu-msft avatar image
0 Votes"
LukasYu-msft answered LukasYu-msft commented

Could you share you script So we could take a look?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
If it is not convinient for you to share the script. You could try to investigate from the CimSession codes in the script . With reference New-CimSession


1 Vote 1 ·