Skip to content

SPOApp:Unable to export #5953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CovidtheDog2024 opened this issue Mar 27, 2025 · 0 comments · Fixed by #5965 or #5981
Closed

SPOApp:Unable to export #5953

CovidtheDog2024 opened this issue Mar 27, 2025 · 0 comments · Fixed by #5965 or #5981

Comments

@CovidtheDog2024
Copy link

Description of the issue

WorkLoad : SharePoint Online
Resource : SPOApp
Issue: Unable to Export
Application

Image

Microsoft 365 DSC Version

1.25.319.1

Which workloads are affected

SharePoint Online

The DSC configuration

N/A

Verbose logs showing the problem

Connecting to {PnP}...✅
[1/1] Extracting [SPOApp] using {Credentials}...

    |---[1/2] demo-graph-api-webpart.sppkg✅
    |---[2/2] ❌
Error Log created at {file://C:/00-DSC/22832-M365DSC-ErrorLog.log}
⌛ Export took {12 seconds} for {0 instances}
Copy-Item : An item with the specified name C:\00-DSC\Temp already exists.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.319.1\Modules\M365DSCReverse.psm1:856 char:25
+ ...                      Copy-Item -Path $filePath -Destination $destPath
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (C:\00-DSC\Temp:String) [Copy-Item], IOException
    + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.CopyItemCommand


***LOG***
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.25.319.1\DSCResources\MSFT_SPOApp\MSFT_SPOApp.psm1: line 413
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.319.1\Modules\M365DSCReverse.psm1: line 685
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.319.1\Modules\M365DSCUtil.psm1: line 1512
at <ScriptBlock>, <No file>: line 1

Environment Information + PowerShell Version

$PSVersionTable


OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Key   : PSVersion
Value : 5.1.22621.4391
Name  : PSVersion

Key   : PSEdition
Value : Desktop
Name  : PSEdition

Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0...}
Name  : PSCompatibleVersions

Key   : BuildVersion
Value : 10.0.22621.4391
Name  : BuildVersion

Key   : CLRVersion
Value : 4.0.30319.42000
Name  : CLRVersion

Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion

Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant