Test Flight - No suitable application records - verify bundle identifier

I want to do an internal Testflight beta release. So I went to App Store Connect and created an app with the same bundle identifier (let's call it com.mycompanyname.appname) that I'm using in my Xcode project. Then, I went to Apple Developer and I created an Identifier with my bundle ID and a Profile which references the same bundle ID.

In Xcode, I go to Archive and then Validate App and I get this error:

No suitable application records were found. Verify your bundle identifier ‘com.mycompanyname.appname’ is correct.

Resolved - there was a spelling difference between the bundle ID in App Store Connect and the bundle ID on Apple Developer