Comments (7)
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.
Please let me know if any other information is required to investigate the issue
from console.
Get-Contacts
and Get-Value
appear to be custom functions. What do they do?
from console.
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.
Apologies. the script is different. We are getting this error:
and the line(69) throwing the exception are as below:
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.
Please let me know if there is anything else required to investigate the issue.
from console.
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)
- Clickable links in console HOT 6
- sitecore powershell console not loading HOT 8
- $SitecoreContextItem variable lacks ItemPath property HOT 1
- Feature Request - make Elevation Action case insensitive parsing. HOT 3
- SC 10.3 XM1 Docker install SPE fails and leaves server in invalid state HOT 8
- Active directory password is not working while using powershell console HOT 1
- Get-ItemReferrer / Get-ItemReference to include links from standard values item
- Get-Item behaves weirdly when dealing with Checkbox fields having "false" (empty) HOT 1
- Powershell Script Access Issue in Sitecore SXA HOT 4
- Powershell script is throwing error HOT 3
- Remove-Item can target incorrect item if two items have same path HOT 2
- Error when executing script. OkClick method through reflection is not allowed HOT 5
- AccessDeniedException Calling Spe.Client.Applications.UploadFile.PowerShellUploadFileForm.CancelClick or OKClick HOT 5
- Incorrect context language in script
- Unlock-Item HOT 4
- Executing Publish-Item against Experence Edge throws an error HOT 3
- Impact on the Item name in Content Tree HOT 5
- Add-ItemVersion does not copy any field values HOT 2
- Sitecore 10.2 - Type initializer exception when executing script via WebAPI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console.