Answer :
The sentence contain double negatives. These are the 'didn't' and the 'have no' words. Double negatives are a problem because they become redundant when used together in the sentence. This could be rephrased into
James didn't have any idea that we were coming today.
James didn't have any idea that we were coming today.