Left hand does not communicate with right hand” Spanish Government speaking, and everyone applying for Spanish Residence through the Spanish inmigration department should ALWAYS be aware of this rule #1.
Applying for Residencia should always be considered a dual process to be done both at the Inmigration desk, and at the IRS desk (AEAT).