Comments (3)
Having the exact same issue with DSC version 1.24.403.1. In my case, I'm working to extract entire SPO workload with Default mode. The issue started a couple of weeks ago, the last successful export we had for SPO workload was April 1st then we start noticing this issue.
I updated all dependencies and removed the old ones too to no avail. Surprisingly, its only failing when extracting SPO workload and still works fine with other workloads such as EXO and Teams.
Main issues we noticed before the script fail prematurely are:
- Failure to extract some of the SPOApp component
- Failure to extract some of the SPOHubSite component with error (Get-MgGroup .... objects are not present (Not found)
- a Join-Path error after extract complete due to missing an app path then script ends prematurely and fail to export the results
Error logs from today's export attempt:
[2024/04/16 09:12:38] {InvalidOperation} System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression. at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) at System.Management.Automation.Interpreter.ActionCallInstruction
2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.403.1\DSCResources\MSFT_SPOApp\MSFT_SPOApp.psm1: line 395
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.403.1\Modules\M365DSCReverse.psm1: line 649
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.403.1\Modules\M365DSCUtil.psm1: line 1349
at , C:\Scripts\M365DSCAutomation-SharePoint.ps1: line 52
at , : line 1
TenantId: *******************
`
from microsoft365dsc.
@andikrueger is this something you can help with?
from microsoft365dsc.
Workaround Solution: I had to disable the error handling CmdLets under the "M365DSCReverse.psm1" file to allow the script to continue to run without interruption!
Still have to deal with why I'm getting access denied when exporting the "Get-MgAdminSharepointSetting" despite having the API permission "Organization.Read.All" in my service principal!
from microsoft365dsc.
Related Issues (20)
- Bug: DSC cannot retrieve properly an instance of AADAplication when softly deleted. It is creating a new app each time as per timer schedule of LCM in Apply and Monitor HOT 1
- IntuneSettingCatalogASRRulesPolicyWindows10: Not working HOT 1
- EXOAntiPhishRule: Cannot remove policy if associated AntiPhishPolicy is not present
- EXOHostedOutboundSpamFilterRule: Cannot remove policy if associated HostedOutboundSpamFilterPolicy is not present
- Do WindowsETWEventSource for Microsoft-Windows-DSC logs capture Microsoft-Windows-DSC\Analytic and Microsoft-Windows-DSC\Debug Events
- TeamsWideOrgSettings not exporting HOT 2
- Get-MgBetaOrganization: Error when exporting tenant HOT 4
- Intune resources not working due to changes in telemetry engine
- Status HOT 1
- InvalidOperation: The PowerShell DSC resource MSFT_AADApplication from module <Microsoft365DSC,1.24.710.2> does not exist at the PowerShell module path nor is it registered as a WMI DSC resource. HOT 14
- IntuneWindowsUpdateForBusinessDriverUpdateProfileWindows10: Assignments not exported correctly HOT 1
- EXOMessageClassification: On first attempt policy is created but outputs error message
- Update-M365DSCAzureAdApplication creates certificate in wrong store
- EXOClientAccessRule: Remove in next breaking change release?
- The term 'Get-MgProfile' is not recognized as the name of a cmdlet, function, script file, or operable program. HOT 1
- AADAuthenticationMethodPolicyFido2: schema missing classversion
- EXOMailTips/EXOOrganizationConfig: Runtime Exception When Using Set-OrganizationConfig HOT 1
- PowerShell DSC resource MSFT_AADConditionalAccessPolicy - Connect-MgGraph' is not recognized HOT 1
- M365DSCDeltaReport (Compare Configuration files) does not work
- Update DSC Files and whitepaper?
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 microsoft365dsc.