Location fields empty after export

I have a problem with the export function and the locations fields. I reverse geoencode my images in Lightroom and the values in the locations fields are in grey instead of white. As I have understood this is how it is supposed to be, but the values in these fields should be written to the metadata in exported files. This is not happening for me. After an export these values are empty. The GPS data are correct in both raw files and in the exported file and are in white fonts in the metadata panel. Since these values dont stick to the exported files I cant use the plugin AnyTag to commit my location fields. I am using Canon CR2 files and the metadata area automatically written to xmp sidecar files. Also using Lightroom CC 2015.12. Hope someone has a clue of what I or Lightroom are doing wrong.

I am looking at it in File explorer and ExifTool. John Ellis who has written the plugin AnyTag has also checked my export files since I was not able to commit my locations with his script. He cant find any location info either.

If John Ellis can't find any location data then most likely the cause is a corrupted LR Preferences file. Follow the procedure at the below link to reset the LR Preferences file. I suggest copying the file to your desktop so you can easily restore it if the issues persists. Make sure you restart LR anytime you make a Preferences change to update the settings. Try a new Export.

Resetting the preferences did not work. Still the same problem. I can commit the location fields by pressing the "State/Province" "Country" and "ISO Country Code" and selecting the popup value. The export is fine then, but not when the fields are in grey.

That was the solution. This was not checked. When I have this checked AnyTag also works. I have tried many solutions without luck. Most often the solution is quite easy, but the steps to find the easy solution can be long :-)

Thanks everyone for your help! While troubleshooting for users of my Any Tag plugin's Commit Locations command, I've now gotten stumped (and been rescued by this forum) by two obscure features of LR that I had previously been aware of but forgot: private saved locations and the Export Address Suggestions option. Unfortunately, there's no supported method Any Tag could use to detect either of those.

Of course, it would have been a lot better if Adobe hadn't botched the design of uncommitted address suggestions...