Giter Site home page Giter Site logo

Comments (7)

michaellwest avatar michaellwest commented on June 20, 2024

The line throwing the exception doesn't appear in your screenshot. My guess is that the query is quite broad and the machine (local?) runs out of memory. What is the value of your scope query and how many items does that match?

from console.

iprateeksunny avatar iprateeksunny commented on June 20, 2024

Please let me know if any other information is required to investigate the issue

from console.

michaellwest avatar michaellwest commented on June 20, 2024

Get-Contacts and Get-Value appear to be custom functions. What do they do?

from console.

michaellwest avatar michaellwest commented on June 20, 2024

Can you provide a more complete example of your script? The screenshots do not provide much context into what is happening in the script.

from console.

iprateeksunny avatar iprateeksunny commented on June 20, 2024

Apologies. the script is different. We are getting this error:

image

and the line(69) throwing the exception are as below:

image

This issue is occurring only on production. If we run the same script on any lower environments then it works as expected.
Please let me know if anything else is required to investigate the issue.

from console.

iprateeksunny avatar iprateeksunny commented on June 20, 2024

Please let me know if there is anything else required to investigate the issue.

from console.

michaellwest avatar michaellwest commented on June 20, 2024

One idea I had over the weekend was to remove the call to Initialize-Item (and everything after) to see if the call to Find-Item completes. See if you can get a count of the items returned. My guess would be that the scope query is far too broad and you eating up your server memory. There are ways to paginate with Find-Item.

from console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.