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

Import is not working #4

Closed
mahybabu opened this issue Apr 8, 2020 · 14 comments
Closed

Import is not working #4

mahybabu opened this issue Apr 8, 2020 · 14 comments

Comments

@mahybabu
Copy link

mahybabu commented Apr 8, 2020

I got the below error message, while importing the configuration profile using this tool.
I tried one by one and a bulk import option but its not working. Export is working fine.
Even I tried to copy a configuration profile, it failed.

Can you please fix this.

Failed to invoke MSGraphRequest Exception: 400 Bad Request
{
"error": {
"code": "ModelValidationFailure",
"message": "Cannot convert the literal '/Date(1571240587193)/' to the expected type 'Edm.DateTimeOffset'.",
"innerError": {
"message": "Cannot convert the literal '/Date(1571240587193)/' to the expected type 'Edm.DateTimeOffset'.",
"request-id": "f173776b-a770-4a1e-a948-967b4a630684",
"date": "2020-04-08T15:02:26"
}
}
}

@RogerHaugen
Copy link

I also get this error now

@mdcaddic
Copy link

Currently working on this. It is the date format that is incorrect and the majority of the extensions push the createdDateTime and lastModifiedDateTime on import. These are not required and it's relativity easy to comment those out.

@RogerHaugen
Copy link

RogerHaugen commented Apr 18, 2020 via email

@mdcaddic
Copy link

Roger,
Wanting to make the minimum changes I've done a mix of filtering to remove the offending objects or removing the object properties depending on what the functions were already doing. Are you going to do a pull and update the repo?

Intune Export - Import Fixes.docx

@mahybabu
Copy link
Author

Roger,
Wanting to make the minimum changes I've done a mix of filtering to remove the offending objects or removing the object properties depending on what the functions were already doing. Are you going to do a pull and update the repo?

Intune Export - Import Fixes.docx

@mahybabu
Copy link
Author

Roger,
Wanting to make the minimum changes I've done a mix of filtering to remove the offending objects or removing the object properties depending on what the functions were already doing. Are you going to do a pull and update the repo?
Intune Export - Import Fixes.docx

Great, Thanks for sharing.

@mahybabu mahybabu reopened this Apr 19, 2020
@RogerHaugen
Copy link

Roger,
Wanting to make the minimum changes I've done a mix of filtering to remove the offending objects or removing the object properties depending on what the functions were already doing. Are you going to do a pull and update the repo?

Intune Export - Import Fixes.docx

No sorry, i meant that i had to comment out the date properties in all my json files, to be able to import them

@Micke-K
Copy link
Owner

Micke-K commented Sep 9, 2020

Hello!
I am so sorry for not been replying...I actually forgot about this and I never got an email notifications to remind me.
I've not been working with Intune for almost a year. Been very busy with Azure...
A huge thank to @RogerHaugen for helping out!

Does anyone want to join this project as contributor? I have lots of additional ideas for this project but so little time. I need more people helping out if there is still an interest in this!

Cheers!

@Taurus-Dev
Copy link

Hello
Just tried the copy function in the Device configurations and i'm getting the same error message as stated before. I checked the files and cannot find the CreatedDate function in the code. Any suggestions?

Thanks!

@Micke-K
Copy link
Owner

Micke-K commented Jan 30, 2021

Taurus-Dev: I'll have a look at this. I have an idea how to fix this. I'll try to get time to do it this week

@Taurus-Dev
Copy link

Taurus-Dev: I'll have a look at this. I have an idea how to fix this. I'll try to get time to do it this week

Thanks for taking the time!

@Micke-K
Copy link
Owner

Micke-K commented Feb 3, 2021

Try the latest version and let me know how it goes.

Please see change log in the readme (support for AzureRM is removed. Az module is new dependency)

@Taurus-Dev
Copy link

Try the latest version and let me know how it goes.

Please see change log in the readme (support for AzureRM is removed. Az module is new dependency)

Works like a charm, tested the copy function on several sections with success. Hopefully the Intune team will implement these functions as default as it's basic functionality. Thanks a bunch!

@Micke-K
Copy link
Owner

Micke-K commented Feb 3, 2021

Fixed in version 2

Thank you Taurus-Dev for verifying!

@Micke-K Micke-K closed this as completed Feb 3, 2021
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

5 participants