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

Problem loading Application .json files #92

Closed
Nordstrom96 opened this issue Sep 28, 2022 · 26 comments
Closed

Problem loading Application .json files #92

Nordstrom96 opened this issue Sep 28, 2022 · 26 comments

Comments

@Nordstrom96
Copy link

Currently having a problem to import some of my .json in the "application" tab.
I got 2: 1 for Microsoft Edge and 1 for Office apps. It has worked for the past 2 years, but today it seems to be stuck at "Loading applications object".

Gettiing this error:
Failed to invoke MS Graph with URL https://graph.microsoft.com/beta/deviceAppManagement/mobileApps (Request ID:XXX). Status code: BadRequest

Any solution to this?

@Micke-K
Copy link
Owner

Micke-K commented Sep 28, 2022

Hello!

Can you attach one or both the apps so I can test.

Are they Win32 apps?

Did you export them recently or are they old exports?

Cheers!

@Nordstrom96
Copy link
Author

Nordstrom96 commented Sep 28, 2022 via email

@Nordstrom96
Copy link
Author

I answered as a mail, Dunno if that ruined the answer here or am I good?

@Micke-K
Copy link
Owner

Micke-K commented Sep 28, 2022

That didn't work :)

But I had a look. It looks likes like Microsoft has changed how they set the minimum OS,
Property name and value is changed:

New setting:
"minimumSupportedWindowsRelease": "2H20",

Old settings:
"minimumSupportedOperatingSystem": {
"v8_0": false,
"v8_1": false,
"v10_0": false,
"v10_1607": false,
"v10_1703": false,
"v10_1709": false,
"v10_1803": false,
"v10_1809": false,
"v10_1903": false,
"v10_1909": false,
"v10_2004": false,
"v10_2H20": true,
"v10_21H1": false
},

I'll have a look if I can fix this in the code somehow

Cheers!

@Micke-K
Copy link
Owner

Micke-K commented Sep 29, 2022

I did some test and all I need to do is to remove the minimumSupportedOperatingSystem.

Can you test with this version? Replace the existing EndpointManager.psm1 in the Extensions folder.

EndpointManager.zip

Cheers

@Nordstrom96
Copy link
Author

Nordstrom96 commented Sep 29, 2022 via email

@Nordstrom96
Copy link
Author

asdasdasdasdasd

@Micke-K
Copy link
Owner

Micke-K commented Sep 29, 2022

Was that with the new file?

@Nordstrom96
Copy link
Author

Nordstrom96 commented Sep 29, 2022 via email

@Micke-K
Copy link
Owner

Micke-K commented Sep 29, 2022

Hmmm that's not good since that helped me.

I guess I need your json so I can test with what you have.

Cheers!

@Nordstrom96
Copy link
Author

BizConfig - Office Apps (Teams).zip

There you go!

@Micke-K
Copy link
Owner

Micke-K commented Sep 30, 2022

Ah it was a Microsoft Apps that failed and not a Win32. I should have guessed that based on the name :)

This is the problem. Your file has:
"officeSuiteAppDefaultFileFormat": "notConfigured"
change that to:
"officeSuiteAppDefaultFileFormat": "OfficeOpenDocumentFormat"

Try that and let me know if it works. I could import after changing that property.

Was the Edge app an actual Microsoft Edge app or a Win32? Can you send me that json as well?

Cheers!

@Nordstrom96
Copy link
Author

Hoy mate,
BizConfig - Microsoft Edge.zip

Here is the Json for the Edge

@Micke-K
Copy link
Owner

Micke-K commented Oct 1, 2022

Hello!

Try this script. This should fix the Microsoft Apps (BizConfig - Office Apps (Teams)) import.

This will set the default format to officeOpenXMLFormat if is not configured.

I could NOT replicate the import issue with the Edge json. It was imported successfully without any changes.
Do you still have an issue with that?

Let me know how it goes!

Cheers!

EndpointManager.zip

@Nordstrom96
Copy link
Author

Hello,

The Edge.json works without errors. Seems like Office still has the same problem sadly.

@Micke-K
Copy link
Owner

Micke-K commented Oct 3, 2022

Hello!

That is weird. I have no problem importing your 'BizConfig - Office Apps (Teams).json' with this change
You should see the following information in the log:
WARNING: Changing officeSuiteAppDefaultFileFormat to OfficeOpenDocumentFormat

I haven't done anything for the Edge json so that should just have worked from the beginning.

Cheers!

@Nordstrom96
Copy link
Author

image
This is the only log i can find.

@Micke-K
Copy link
Owner

Micke-K commented Oct 3, 2022

If you go to File -> About. What version is EndpointManager?
And what does the lines 1924-1931 in EndpointManage.psm1 look like?

@Nordstrom96
Copy link
Author

image
image

@Micke-K
Copy link
Owner

Micke-K commented Oct 3, 2022

That is very annoying. I cannot explain why it works for me and not for you.

One other test you can do is to creat a new app manually. Then export/import that app and see if it works.

Cheers!

@Micke-K
Copy link
Owner

Micke-K commented Oct 5, 2022

Can you try this version and send a screenshot of the log.
I added some debug logging so the result should be the same, failing, but I want to check that it is actually setting the correct value.

Cheers

EndpointManager.zip

@Nordstrom96
Copy link
Author

Hey again,

It looks like we've resolved the problem today by creating a new .json file for the Office+teams.
Looks like some values had changed for some reasons, so now it seems like it works.
Do you still want me to try this version?

@Micke-K
Copy link
Owner

Micke-K commented Oct 5, 2022

Great! That is good news.

Only if you have time.

It would be good to know what the difference is between the json files. If you could upload the new one or do a diff between them.

Thank you for all the testing!

Cheers

@Nordstrom96
Copy link
Author

For some reason it looks like the old .josn "worked" now aswell.
Here is the Printscreen:
image

@Micke-K
Copy link
Owner

Micke-K commented Oct 5, 2022

Well, that is even better :)

Can we close this now?

Cheers!

@Nordstrom96
Copy link
Author

Yes we can! :) Thanks for the help.

@Micke-K Micke-K closed this as completed Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants