Yesterday I performed an upgrade of our ArcGIS Enterprise from v.10.6.1 to v.10.7.1. During the Portal upgrade I had an issue with importing our license file. After a lack of immediate success using Tech Support (they were stumped and it was later in the day so the overall brain trust had left), I tried one last thing and achieved success. I have supplied this info to Tech Support for their database but am putting it out on Geonet to hopefully save someone some stress if they see the same issue. [For the record, Tech Support had me cancel my license file and re-provision a license file, operating on the idea that the license file was possibly corrupt. That would be a good 'next step' if the solution below doesn't work for you.]
Attached is the error message I received when attempting to import my license file.
For the upgrade I referred to the Upgrade your ArcGIS Enterprise Portal help document for version 10.7.1. The relevant section of the document is under the heading “Perform an upgrade of your portal deployment.”
Step 7 says “Click Finish to close the installation wizard. The portal website opens in a browser window.”
Step 8 then has you clear your browser’s cache (including cookies).
Step 9 has you import your license file, which threw the error for me.
Faced with a delay in Tech Support being able to follow up to troubleshoot I was looking at rolling back our VM to prior to our upgrade so my users could get back to work. I decided to try an idea that popped into my head at the last minute.
I hypothesized that maybe clearing the cache after the page loaded caused something to break, so I copied the URL, cleared the browser cache yet again, and closed the browser. I restarted the browser and loaded the URL and the license file imported successfully.
It is possible that I could have simply reloaded the page and it would have corrected things.
Hopefully this helps someone into the future.