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