{"action":"closed","issue":{"url":"https://api.github.com/repos/PowerShell/SqlServerDsc/issues/1051","repository_url":"https://api.github.com/repos/PowerShell/SqlServerDsc","labels_url":"https://api.github.com/repos/PowerShell/SqlServerDsc/issues/1051/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/SqlServerDsc/issues/1051/comments","events_url":"https://api.github.com/repos/PowerShell/SqlServerDsc/issues/1051/events","html_url":"https://github.com/PowerShell/SqlServerDsc/issues/1051","id":298691698,"node_id":"MDU6SXNzdWUyOTg2OTE2OTg=","number":1051,"title":"SqlServerNetwork: Cannot index into null array","user":{"login":"tbollhofer","id":36674421,"node_id":"MDQ6VXNlcjM2Njc0NDIx","avatar_url":"https://avatars3.githubusercontent.com/u/36674421?v=4","gravatar_id":"","url":"https://api.github.com/users/tbollhofer","html_url":"https://github.com/tbollhofer","followers_url":"https://api.github.com/users/tbollhofer/followers","following_url":"https://api.github.com/users/tbollhofer/following{/other_user}","gists_url":"https://api.github.com/users/tbollhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/tbollhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbollhofer/subscriptions","organizations_url":"https://api.github.com/users/tbollhofer/orgs","repos_url":"https://api.github.com/users/tbollhofer/repos","events_url":"https://api.github.com/users/tbollhofer/events{/privacy}","received_events_url":"https://api.github.com/users/tbollhofer/received_events","type":"User","site_admin":false},"labels":[{"id":200152069,"node_id":"MDU6TGFiZWwyMDAxNTIwNjk=","url":"https://api.github.com/repos/PowerShell/SqlServerDsc/labels/bug","name":"bug","color":"ee0701","default":true},{"id":200152072,"node_id":"MDU6TGFiZWwyMDAxNTIwNzI=","url":"https://api.github.com/repos/PowerShell/SqlServerDsc/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"closed","locked":false,"assignee":{"login":"johlju","id":7189721,"node_id":"MDQ6VXNlcjcxODk3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7189721?v=4","gravatar_id":"","url":"https://api.github.com/users/johlju","html_url":"https://github.com/johlju","followers_url":"https://api.github.com/users/johlju/followers","following_url":"https://api.github.com/users/johlju/following{/other_user}","gists_url":"https://api.github.com/users/johlju/gists{/gist_id}","starred_url":"https://api.github.com/users/johlju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johlju/subscriptions","organizations_url":"https://api.github.com/users/johlju/orgs","repos_url":"https://api.github.com/users/johlju/repos","events_url":"https://api.github.com/users/johlju/events{/privacy}","received_events_url":"https://api.github.com/users/johlju/received_events","type":"User","site_admin":false},"assignees":[{"login":"johlju","id":7189721,"node_id":"MDQ6VXNlcjcxODk3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7189721?v=4","gravatar_id":"","url":"https://api.github.com/users/johlju","html_url":"https://github.com/johlju","followers_url":"https://api.github.com/users/johlju/followers","following_url":"https://api.github.com/users/johlju/following{/other_user}","gists_url":"https://api.github.com/users/johlju/gists{/gist_id}","starred_url":"https://api.github.com/users/johlju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johlju/subscriptions","organizations_url":"https://api.github.com/users/johlju/orgs","repos_url":"https://api.github.com/users/johlju/repos","events_url":"https://api.github.com/users/johlju/events{/privacy}","received_events_url":"https://api.github.com/users/johlju/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-02-20T18:00:49Z","updated_at":"2018-07-06T08:02:56Z","closed_at":"2018-07-06T08:02:56Z","author_association":"NONE","body":"**Details of the scenario you tried and the problem that is occurring:**\r\nUsing version 11.0.0.0. Receiving a  \"Cannot index into a null array.\" \r\n\r\n```\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Importing the module MSFT_SqlServerNetwork in force mode.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] SQL major version is 13.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] SQL major version is 13.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Creating application domain 'SqlServerDscHelper'.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Loading assembly 'Microsoft.SqlServer.Smo, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Loading assembly 'Microsoft.SqlServer.SqlWmiManagement, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'.\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Getting network protocol [Tcp] for SQL instance [MSSQLSERVER].\r\n[[SqlServerNetwork]ChangeTcpIpOnDefaultInstance] Unloading application domain 'SqlServerDscHelper'.\r\nCannot index into a null array.\r\n    + CategoryInfo          : InvalidOperation: (:) [], CimException\r\n    + FullyQualifiedErrorId : NullArray\r\n    + PSComputerName        : SOMETESTMACHINE\r\nCannot index into a null array.\r\n    + CategoryInfo          : InvalidOperation: (:) [], CimException\r\n    + FullyQualifiedErrorId : NullArray\r\n    + PSComputerName        : SOMETESTMACHINE\r\n```\r\n\r\n**The DSC configuration that is using the resource (as detailed as possible):**\r\n```\r\nSQLServerNetwork 'ChangeTcpIpOnDefaultInstance'\r\n                {\r\n                    InstanceName = 'MSSQLSERVER'\r\n                    ProtocolName = 'Tcp'\r\n                    IsEnabled = $true\r\n\t\t    TCPDynamicPort = $false\r\n                    TCPPort = '12345 \r\n                    RestartService = $true\r\n                }\r\n```\r\n\r\n**Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:**\r\n\r\n**What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:**\r\n\r\n**Version of the DSC module you're using, or 'dev' if you're using current dev branch:**\r\n11.0.0.0"}}
{"actor":{"display_login":"johlju"}}