Software Archive
Read-only legacy content
17061 Discussions

App ID Error for Mobile Windows 8.1 Preview + Legacy (v2548)

Dan_C_
Beginner
3,878 Views

Hello, I'm getting build errors for invalid app id when building using either the new win 8.1 phone preview or the legacy windows phone build. I've attached a screenshot of the legacy error.

The problem seems to be coming from the number prefix on the app id. App id in the image is fake, but it was giving the same error for my real id which has the 5 numbers as a prefix. I copied this id directly from my windows developer dashboard so I'm pretty sure the value is right.

From searching around the forum it looks like this has been an off and on issue for a while. I'm using windows 7 and XDK version v2548.

Anyone else having this issue, or is this a setting I have wrong somewhere?

0 Kudos
16 Replies
PaulF_IntelCorp
Employee
3,878 Views

Those numbers on the front are not part of your App ID (at least the ID that you have to provide to the build system). The App ID that you provide to the build system is a simple reverse domain name ID like those you provide to the Android and iOS builds. Keep the IDs simple, multiple words, numbers allowed, but always start with letters and keep them all lower-case.

0 Kudos
Dan_C_
Beginner
3,878 Views

So I tried it by removing the prefix and it looks like the Windows Dev Center really wants it to match that ID they provide in their dashboard. I attached a screenshot of the error. Everything else looks fine, but I don't see a way to change that ID on Windows Dev Center.. it looks like that is provided. However, when I put in the ID as it's provided to me, then XDK build fails.

0 Kudos
Dan_C_
Beginner
3,878 Views

Just as more information, here is one of the other threads that looked like the issue was resolved, but I'm still getting the problem:

https://software.intel.com/en-us/forums/intel-xdk/topic/543918

0 Kudos
Dan_C_
Beginner
3,878 Views

Also here is the Cordova error when using the full App id:

http://dpaste.com/2J8F0SH

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

I can't see what your ID is, because you've blocked them out, but here are the rules based on a feature request that has been filed against the build system:

Windows (Identity/Name)
The name is an attribute of the Identity element in the application manifest file.
Must consist of of between 3-50 characters.
The identity/Name must contain only letters, numbers, the “-“, and the “.”.
Cannot end in a period.
The Identity/Name cannot be:
“CON"
"PRN"
"AUX"
"NULL"
“COM1” - “COM9"
“LPT1” - “LPT9"
Link: https://msdn.microsoft.com/en-us/library/windows/apps/dn423277.aspx (window 8.1)

Windows (Application/Id)
This field is updated with the text put into the Identity/Name field by Cordova. These fields have conflicting specifications so I have listed it here. I have hi-lighted the potentially conflicting requirements.
The Application/Id name in the application manifest file.
Must consist of between 1-64 characters
The Application/Id must contain only letters, numbers, and the “.”.
Each section must begin with an ASCII alphabetic character.
The Identity/Name cannot be:
“CON"
"PRN"
"AUX"
"NULL"
“COM1” - “COM9"
“LPT1” - “LPT9"

And I believe the same rules apply to Windows Phone builds.

Does this look like it might apply to you?

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

Note, the error message you provided implies there is a "restricted" word in your App ID...

CordovaError: App id contains a reserved word, or is not a valid identifier.

...which might be a Java keyword (which has to do with a restriction put on the build system by Cordova that we are trying to work around). A list of restricted Java keywords can be found here:

0 Kudos
Dan_C_
Beginner
3,878 Views

Yes that definitely looks relevant.. especially this line:

"Each section must begin with an ASCII alphabetic character."

Sorry about blocking out the app id.. just me being paranoid I guess. I've attached the same image without blocked out app id hopefully that will help. I spent some more time looking around the windows dashboard and that app id is assigned and seems to be immutable on my end unfortunately. So when I remove the numbers at the start of the ID Cordova build completes just fine, but Windows Dev Center won't accept the build - when I paste in the ID exactly how it was supplied, then Cordova build fails.

Thanks for your help with this btw!

0 Kudos
Dan_C_
Beginner
3,878 Views

In that spec you linked, I don't see the requirement that it has to begin with a letter. The description is this (unless I'm missing something which is totally possible):

ResourceId?            = A string between 1 and 30 characters in length that consists of alpha-numeric, period, and dash characters. />

https://msdn.microsoft.com/en-us/library/windows/apps/dn423277.aspx

Maybe the spec has changed recently?

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

Dan, trying to figure out what is going on here, sorry for the quiet spell.

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

Dan, according to engineering the issue is failure to provide a windows publisher ID in the build settings. They are working on a fix in the build system to catch this issue and provide an appropriate error message. In the meantime, please insure your publisher ID has been set in the build settings (and automatically copied into your windows and win phone config.xml files) and try again.

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

Here are some instructions that might help:

For People experiencing issues with the Publisher ID. In the Windows Dev Center, if you navigate to Dashboard -> Account settings, Microsoft provides you with three publisher IDs. When building Windows Phone 8.1 apps, be sure to use the Windows Phone publisher ID in the XDK's project settings page. When building Windows apps, be sure to use the Windows publisher ID instead.

0 Kudos
Dan_C_
Beginner
3,878 Views

Hi Paul, thanks for getting back to me on this.

This is actually a problem with the App ID not the publisher id. My publisher id is being accepted just fine by Windows Dev Center, but the app id is what's being rejected by the Cordova build. I made sure my build settings were using the Windows Phone publisher ID and not the other publisher ID just to be certain.

I noticed all of a sudden now that on the legacy build it rejects any value I put in for App ID - even the id that was working before. Looks like maybe some work is being done on the system? I know there's an upcoming overhaul to windows phone builds so maybe this issue is related to the work being done there

I would think it's just the wrong value entirely that I'm using except that Windows Dev Center specifically says it expects that full ID that's titled "Package/Identity/Name" in the "App identity" dashboard.

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

Hmmm... they are doing some work on the build system, but that typically gets done on our "staging" build system that you cannot get to. There is definitely work going on to address some of these issues, so we may have to simply wait for that to settle out before making any progress.

0 Kudos
Dan_C_
Beginner
3,878 Views

Hi Paul, yeah that sounds like best idea at this point since it sounds like there are so many changes happening right now.

Thank you a ton for looking into this for me and for all the information. Looking forward to the new Windows Phone 8.1 build!

I'll be sure to post any updates or changes here just to keep the thread's information current.

0 Kudos
PaulF_IntelCorp
Employee
3,878 Views

p.s. Try using CLI 4.1.2, if you've been using the CLI 5 option. There are some differences and I was told earlier today that some of the Win Phone issues are unique to the CLI 5 build system.

0 Kudos
Swati_S_Intel1
Employee
3,878 Views

Hello Dan, This issue has been fixed last month, you should be able to build fine now. 

0 Kudos
Reply