Skip to content

Commit

Permalink
Fix retrieving error detail in Get-UPABulkImportStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpoz committed Oct 13, 2023
1 parent d08a3ec commit ebbf4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/UserProfiles/GetUPABulkImportStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void GetErrorInfo(ImportProfilePropertiesJobInfo job)
{
var webUrl = Web.GetWebUrlFromPageUrl(AdminContext, job.LogFolderUri);
AdminContext.ExecuteQueryRetry();
string relativePath = job.LogFolderUri.Replace(webUrl.Value, "");
string relativePath = new Uri(job.LogFolderUri).LocalPath;
var webCtx = AdminContext.Clone(webUrl.Value);
if (webCtx.Web.DoesFolderExists(relativePath))
{
Expand Down

0 comments on commit ebbf4bc

Please sign in to comment.