Skip to content
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

Error Creating Win32 App in Intune #23

Closed
theoldsport opened this issue Jan 2, 2025 · 4 comments
Closed

Error Creating Win32 App in Intune #23

theoldsport opened this issue Jan 2, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@theoldsport
Copy link

theoldsport commented Jan 2, 2025

Thank you for your hard work, Ben.

An error occurred near the end of the process. I am not sure how to resolve "Requested value 'equals' was not found", but seems the snag is in Invoke-MgGraphRequestCustom.ps1:78. Main.log

{"error":{"code":"ModelValidationFailure","message":"Requested value 'equals' was not found.","innerError":{"message":"Requested value 'equals' was not
found.","date":"2025-01-02T16:36:17","request-id":"7f764583-349f-469f-90a5-91ca45f45928","client-request-id":"d7e91e1c-8e44-4fc3-97d8-4fcc03355d97"}}}
At C:\Program Files\WindowsPowerShell\Modules\Win32AppMigrationTool\3.0.1\Private\Invoke-MgGraphRequestCustom.ps1:78 char:36
... aphResult = Invoke-MgGraphRequest -Uri $GraphUri -Method $Method -Bod ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (Method: POST, R...ication/json
}:HttpRequestMessage) [Invoke-MgGraphRequest], HttpResponseException
FullyQualifiedErrorId : InvokeGraphHttpResponseException,Microsoft.Graph.PowerShell.Authentication.Cmdlets.InvokeMgGraphRequest

@theoldsport
Copy link
Author

Maybe it doesn't like the operator value in Win32appBody.json or DetectionMethod.json? or that there are two detection criteria? I removed the file detection, and it was unable to find the MSI detection at all, reporting "No detection method found". When trying with one of my PMPC apps the process worked perfectly.

image

@byteben
Copy link
Owner

byteben commented Jan 3, 2025

there is a bug with MSI detection methods which will be fixed in the next version. Branch version 3.0.02 will contain several fixs

@byteben byteben self-assigned this Jan 3, 2025
@byteben byteben added the bug Something isn't working label Jan 3, 2025
@byteben
Copy link
Owner

byteben commented Jan 3, 2025

Should be fixed in branch 3.0.02 if you wanted to try?
Install-Module -Name Win32AppMigrationTool -RequiredVersion 3.0.2

@byteben
Copy link
Owner

byteben commented Jan 3, 2025

Fixed MSI detection in version 3.0.2

@byteben byteben closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants