ITMS error when uploading: "missing or invalid language ..."

I am at a loss. I uploaded many IAPs using Application Loader a couple of weeks ago with no errors. I tried to add another IAP to the same app, but now Application Loader fails with


ERROR ITMS-4134: "Missing or invalid language code (locale name) for in-app purchase with product_id='NNNNNNNN'." at Software/SoftwareMetadata


I get an error for each IAP, even those currently live and approved in the app, as well as for the new one I'm trying to add. The language I'm using is zh-Hans (Simplified Chinese).


On top of this, all my attempts to deliver the new IAP also result in these errors:


ITMS-4108: "Version '2.7', Locale 'zh-Hans': Invalid locale code" at Software/SoftwareMetadata/SoftwareVersion, etc.


Please help me understand what's wrong and where to look, or what to try to fix it. Thanks!

Answered by Bowzah in 49441022

I love it when I can answer my own question!


Here's what happened, in case anyone else has this issue:


Change zh-Hans to zh-cn in the itmsp file.


  1. The locale designation for the app and all the IAPs had been "zh-Hans" in prior sessions using Application Loader
  2. I changed one IAP's language using the pulldown to "Simplified Chinese"
  3. When I examined the locale designation for that IAP in a text editor (BBEdit), I noticed it was actually written as "zh-cn"
  4. So I did a global replace to zh-cn, delivered the file and it all now works.


Yay.😐

Accepted Answer

I love it when I can answer my own question!


Here's what happened, in case anyone else has this issue:


Change zh-Hans to zh-cn in the itmsp file.


  1. The locale designation for the app and all the IAPs had been "zh-Hans" in prior sessions using Application Loader
  2. I changed one IAP's language using the pulldown to "Simplified Chinese"
  3. When I examined the locale designation for that IAP in a text editor (BBEdit), I noticed it was actually written as "zh-cn"
  4. So I did a global replace to zh-cn, delivered the file and it all now works.


Yay.😐

Hi, I am running into the same problem. How did you modify itmsp file?


Thanks!

I used BBEdit http://www.barebones.com

You just saved me a LOT of time 🙂 Language on the description was listed as zh-hans or zh-hant, which the validation error states "is not supported". Changing it to Simplified Chinese fix it and I'm good to go. Cheers

ITMS error when uploading: "missing or invalid language ..."
 
 
Q