[GH-ISSUE #4656] [Bug]: Cannot bind argument to parameter 'TemplateType' because it is null. #2156

Closed
opened 2026-03-02 13:50:03 +03:00 by kerem · 3 comments
Owner

Originally created by @RAVNIT-TR on GitHub (Sep 17, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4656

Required confirmations before submitting

  • I can reproduce this issue on the latest released versions of both CIPP and CIPP-API.
  • I have searched existing issues (both open and closed) to avoid duplicates.
  • I am not requesting general support; this is an actual bug report.

Issue Description

Cannot bind argument to parameter 'TemplateType' because it is null when deploying Intune Policy from Community Repositories j0eyv/ConditionalAccessBaseline "ALLOWED COUNTRIES" used for CA Deployment.

Environment Type

Sponsored (paying) user

Front End Version

8.4.2

Back End Version

8.4.2

Relevant Logs / Stack Trace


Originally created by @RAVNIT-TR on GitHub (Sep 17, 2025). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4656 ### Required confirmations before submitting - [x] **I can reproduce this issue on the latest released versions** of both CIPP and CIPP-API. - [x] **I have searched existing issues** (both open and closed) to avoid duplicates. - [x] I am **not** requesting general support; this is an actual bug report. ### Issue Description Cannot bind argument to parameter 'TemplateType' because it is null when deploying Intune Policy from Community Repositories j0eyv/ConditionalAccessBaseline "ALLOWED COUNTRIES" used for CA Deployment. ### Environment Type Sponsored (paying) user ### Front End Version 8.4.2 ### Back End Version 8.4.2 ### Relevant Logs / Stack Trace ```plaintext ```
Author
Owner

@github-actions[bot] commented on GitHub (Sep 17, 2025):

Thank you for reporting a potential bug. If you would like to work on this bug, please comment:

I would like to work on this please!

Thank you for helping us maintain the project!

<!-- gh-comment-id:3302496667 --> @github-actions[bot] commented on GitHub (Sep 17, 2025): Thank you for reporting a potential bug. If you would like to work on this bug, please comment: > I would like to work on this please! Thank you for helping us maintain the project!
Author
Owner

@KelvinTegelaar commented on GitHub (Sep 17, 2025):

Named locations cannot be deployed separately from their policy.

<!-- gh-comment-id:3302509744 --> @KelvinTegelaar commented on GitHub (Sep 17, 2025): Named locations cannot be deployed separately from their policy.
Author
Owner

@RAVNIT-TR commented on GitHub (Sep 17, 2025):

Hello Kelvin,

I understand your point, but it seems that the Named Location isn't being created when I deploy the Conditional Access policy "CA001-Global-AttackSurfaceReduction-AnyApp-AnyPlatform-BLOCK-CountryWhitelist".

Best regards,
Torben

<!-- gh-comment-id:3302547634 --> @RAVNIT-TR commented on GitHub (Sep 17, 2025): Hello Kelvin, I understand your point, but it seems that the Named Location isn't being created when I deploy the Conditional Access policy "CA001-Global-AttackSurfaceReduction-AnyApp-AnyPlatform-BLOCK-CountryWhitelist". Best regards, Torben
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#2156
No description provided.