[GH-ISSUE #1160] GDAP Migration Failed error #629

Closed
opened 2026-03-02 12:43:51 +03:00 by kerem · 3 comments
Owner

Originally created by @matstocks on GitHub (Oct 17, 2022).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1160

Description

When running the GDAP wizard i first get the following error:

Failed to add SPN. Please manually execute 'New-AzureADServicePrincipal -AppId XXXX-ec63-45fb-976f-5d45a7d4bb91' The error was The service principal cannot be created, updated, or restored because the service principal name https://api.partnercustomeradministration.microsoft.com is already in use.

Proceeding on the basis that this means it is already enabled, i select a single tenant but then get this error:

Migration Failed. Could not create relationship: Object reference not set to an instance of an object.

Environment data

Running version 2.15.0/2.4.0
Originally created by @matstocks on GitHub (Oct 17, 2022). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1160 ### Description When running the GDAP wizard i first get the following error: `Failed to add SPN. Please manually execute 'New-AzureADServicePrincipal -AppId XXXX-ec63-45fb-976f-5d45a7d4bb91' The error was The service principal cannot be created, updated, or restored because the service principal name https://api.partnercustomeradministration.microsoft.com is already in use.` Proceeding on the basis that this means it is already enabled, i select a single tenant but then get this error: `Migration Failed. Could not create relationship: Object reference not set to an instance of an object. ` ### Environment data ```PowerShell Running version 2.15.0/2.4.0 ```
kerem 2026-03-02 12:43:51 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 17, 2022):

Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://kelvintegelaar.github.io/CIPP
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.".

Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".

<!-- gh-comment-id:1280351391 --> @github-actions[bot] commented on GitHub (Oct 17, 2022): Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://kelvintegelaar.github.io/CIPP If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.". Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@KelvinTegelaar commented on GitHub (Oct 17, 2022):

Please check the docs at https://cipp.app/docs/user/usingcipp/GDAP/migration/#using-the-gdap-wizard

<!-- gh-comment-id:1280684090 --> @KelvinTegelaar commented on GitHub (Oct 17, 2022): Please check the docs at https://cipp.app/docs/user/usingcipp/GDAP/migration/#using-the-gdap-wizard
Author
Owner

@matstocks commented on GitHub (Oct 17, 2022):

Turns out i had 4 SAM applications in our account from previous CIPP deployments. i'd updated the wrong one.

<!-- gh-comment-id:1280736003 --> @matstocks commented on GitHub (Oct 17, 2022): Turns out i had 4 SAM applications in our account from previous CIPP deployments. i'd updated the wrong one.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#629
No description provided.