azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Powershell error while sending more than 16K records to OMS

Open nirmalpavan opened this issue 8 years ago • 3 comments

HI Team

We are getting below error while sending more than 16K records data from SQL to OMS using powershell. Please help.

Invoke-WebRequest : 
404 - File or directory not found.
Server Error

  404 - File or directory not found.
  The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

At line:1 char:1
+ Invoke-WebRequest -Uri $uri -Method $method -ContentType $contentType ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand 

COde:

Invoke-WebRequest -Uri $uri -Method $method -ContentType $contentType -Headers $headers -Body $body -UseBasicParsing

nirmalpavan avatar Oct 01 '18 18:10 nirmalpavan

@nirmalpavan are you using any of the AzureRM or Az cmdlets? I want to make sure this issue should remain in this repository and not be moved to https://github.com/PowerShell/PowerShell

cormacpayne avatar Oct 02 '18 00:10 cormacpayne

No Cormac we are not using any Azure powershell cmdlets.

nirmalpavan avatar Oct 02 '18 16:10 nirmalpavan

@nirmalpavan if you aren't using any Azure PowerShell cmdlets, I would recommend opening an issue in the previously mentioned PowerShell repository, and they should be able to help you out.

cormacpayne avatar Oct 02 '18 17:10 cormacpayne