[GH-ISSUE #3476] Error: RAWJson is missing when editing Intune template name and description #1574

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

Originally created by @mruiterHU on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/3476

Description

Thanks for implementing my feature request faster than lightning: https://github.com/KelvinTegelaar/CIPP/issues/3453#issue-2809162503

Maybe I'm a bit early, and you guys are still working on it. But when I try to edit the template name and description, I get the error shown below. Someone else in the Discord tested it for me and got the same result.

It seems like the API isn’t retrieving the content of the policy, somewhere around line 22-27 in Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecEditTemplate.ps1?

Logbook Error:
Failed to edit template: Cannot bind argument to parameter 'RawJSON' because it is null.

Steps to reproduce:

  1. Go to Intune > Device Management > Policy Templates
  2. Actions > Edit Template Name and Description
  3. Enter a name and description, click confirm
  4. This is when the RawJSON error appears

Image

Environment data

Sponsored instance

Front-end: 7.1.1
Backend: 7.1.0

Tenant Cache Clear: false
Token Cache Clear: false
Originally created by @mruiterHU on GitHub (Jan 27, 2025). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/3476 ### Description Thanks for implementing my feature request faster than lightning: https://github.com/KelvinTegelaar/CIPP/issues/3453#issue-2809162503 Maybe I'm a bit early, and you guys are still working on it. But when I try to edit the template name and description, I get the error shown below. Someone else in the Discord tested it for me and got the same result. It seems like the API isn’t retrieving the content of the policy, somewhere around line 22-27 in Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecEditTemplate.ps1? **Logbook Error:** Failed to edit template: Cannot bind argument to parameter 'RawJSON' because it is null. **Steps to reproduce:** 1. Go to Intune > Device Management > Policy Templates 2. Actions > Edit Template Name and Description 3. Enter a name and description, click confirm 4. This is when the RawJSON error appears ![Image](https://github.com/user-attachments/assets/56d5cd21-ef6e-49ca-8ba8-468edefd5e41) ### Environment data ```PowerShell Sponsored instance Front-end: 7.1.1 Backend: 7.1.0 Tenant Cache Clear: false Token Cache Clear: false ```
kerem 2026-03-02 13:45:19 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2025):

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://docs.cipp.app/
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:2615366328 --> @github-actions[bot] commented on GitHub (Jan 27, 2025): 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://docs.cipp.app/ 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

@mruiterHU commented on GitHub (Jan 27, 2025):

I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.

<!-- gh-comment-id:2615397791 --> @mruiterHU commented on GitHub (Jan 27, 2025): I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.
Author
Owner

@KelvinTegelaar commented on GitHub (Jan 27, 2025):

Fixed in dev

<!-- gh-comment-id:2616731363 --> @KelvinTegelaar commented on GitHub (Jan 27, 2025): Fixed in dev
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#1574
No description provided.