Skip to main content
Solved

"The file received was not valid" error while importing a new VPP token

  • April 1, 2021
  • 23 replies
  • 626 views

howie_isaacks
Forum|alt.badge.img+23

I am attempting to import a new VPP token that I have downloaded from Apple business manager. Every time I try to do this, I get an error saying "The file received was not valid". I have tired using a different web browser. I have rebooted Jamf Pro, and I rebooted the entire Ubuntu server VM. The Jamf Pro server log does show an error at the time I attempted to import the token. I have an open case with Jamf for this, but if anyone knows how to solve this, that would be wonderful 😊

Best answer by tech2020

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.

23 replies

Forum|alt.badge.img+3
  • New Contributor
  • April 1, 2021

Maybe it does not like the two dots in the filename. Try renaming to remove just one dot.


howie_isaacks
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • April 1, 2021

@chris.hansen Good idea, but that did not solve the issue. Thanks for your help! None of my other Jamf Pro servers need a VPP renewal, so I haven't tried this on another server.


hodgesji
Forum|alt.badge.img+16
  • Contributor
  • April 6, 2021

I'm also getting this with my ADE token upload today. Renaming the file did not resolve it, but after I downloaded the Public Key from ASM and reuploaded to jamf, I was able to upload the ADE token successfully.


howie_isaacks
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • April 6, 2021

Jamf support asked me to try importing using a private browser window. That did it for me.


Forum|alt.badge.img+2
  • New Contributor
  • Answer
  • August 3, 2021

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Forum|alt.badge.img+8
  • Contributor
  • August 20, 2021

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Thanks - this worked for me today as well.


Forum|alt.badge.img+1

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Worked for me too, cheers.


Forum|alt.badge.img+4
  • New Contributor
  • September 13, 2021

Downloading our JSS ADE Public key from Jamf, uploading it to ASM and then re-downloading the server token is what was needed for us. A private browser wasn't necessary in our case.


Forum|alt.badge.img
  • New Contributor
  • October 20, 2021

Worked for me as well. Thank you!


Forum|alt.badge.img+3
  • New Contributor
  • May 4, 2022

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


This fixed it for ours as well, thank you.


Forum|alt.badge.img
  • New Contributor
  • November 2, 2022

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


This was the solution we are really looking for. Thanks.

That private browser didn't work much for me.


Forum|alt.badge.img+3
  • New Contributor
  • November 18, 2022

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Someone should really change the "solution" on this post as this downloading the public key process is what really works.

(Hello future me who finds this in November of 2023!)


Forum|alt.badge.img+2
  • New Contributor
  • December 9, 2022

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Life saver, thank you
This worked for me


piotrr
Forum|alt.badge.img+8
  • Contributor
  • December 15, 2022

Had this happen to me again today. Don't download a new public key unless you have to - it will invalidate the old one and you'll have to upload it to Apple School/Business before getting the new Token from there. 

Jamf really could have updated the error message by now. 


Forum|alt.badge.img+9
  • Contributor
  • August 22, 2023

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Forum|alt.badge.img+3
  • New Contributor
  • November 10, 2023

Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Thank you!!!! :D


Forum|alt.badge.img+9
  • Contributor
  • November 10, 2023

Thank you!!!! :D


Happy to help! 🙌


Forum|alt.badge.img+7
  • New Contributor
  • February 6, 2024

See the more popular solution in a post by jkosowski  half way down the page


Forum|alt.badge.img+9
  • Contributor
  • February 6, 2024

See the more popular solution in a post by jkosowski  half way down the page


I at least managed to get support to mark the other answer from tech2020 as an additional solution. It wasn’t at first…


HealthcareMac
Forum|alt.badge.img+6

Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Followed these steps in July 2024- success!


Forum|alt.badge.img
  • New Contributor
  • July 17, 2025

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.

This should be the answer. Uploaded public key to Apple Business Manager, downloaded a new token from Apple Business Manager after saving, and then JAMF took my .p7m token file properly. Thank you!🙏


Mitchell_Gordon
Forum|alt.badge.img+11

I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.

This should be the answer. Uploaded public key to Apple Business Manager, downloaded a new token from Apple Business Manager after saving, and then JAMF took my .p7m token file properly. Thank you!🙏

Thank you for this feedback! I have marked this as the best answer!


Forum|alt.badge.img
  • New Contributor
  • August 8, 2025

Yes, this solution worked for me also! I was starting to stress out as the clock to expiration was looming closer and closer.