The following error occurs when uploading to App Store Connect. Is there a solution to this error?
The provided entity includes a relationship with an invalid value
'' is not a valid ID for this relationship. (ID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX)
Xcode version 14
12
Answers
This error can occur when using an invalid version string. Please ensure that your app uses the following format for your 'Bundle version string (short)' and 'bundle version' strings [number].[number].[number] in your info
You can find this fields Runner > Info section
This worked for me:
Install the Transporter app from the MacOS app store
From Xcode’s organizer select your archive and press Distribute App
Select Export and proceed as usual
Drop the exported .ipa into the transporter and press Deliver
Hope this method helps!
This worked for me:
Go to info tab and change the bundle version to Number. Bundle version should be your app version.
The same happened for me when my current version of the app was in
In Review
state:I just needed to wait for approve and then everything worked fine.
I just had the same issue happen to me. Didn’t make any changes and just retried the upload. It worked. Go figure.
SOLUTION…
Remove non-numeric characters from TARGETS > General > Identity > Version.
PROBLEM…
I had appended "a" to my Identity Version "37.7a"
Changing back to "37.7" fixed it.
This worked for me:
Quit XCode.
Open XCode again with the project.
Go to XCode -> Project Menu -> Clean Build Folder.
Archive project again.
And it worked.
I had this bug when my app version was rejected. I had to cancel the submission. It worked after cancellation.
change the app status to "Prepare for Submission" in App Store Connect
Removing the Apple ID account in Xcode and re-adding solved it for me
I encountered this error when I ticked the "Manage Version and Builder Number" checkbox in the "App Store Connect distribution options" popup. (See screenshot below.) After unticking this checkbox and retrying the upload, it worked.
So from the below image if 1.0 is ready for sale and you are trying to upload 1.1 it will not work. I needed to create 1.1 version from the appstoreconnect. Then it worked.