Upvote:1
It might be a problem, especially if you have single entry visa. If you enter Spain with single entry visa issued by Netherlands, you will likely be asked to confirm that Netherlands is either your main destination or the place of the longest stay. (See another answer to the similar question and follow the links)