It will be helpful if you post your Flowchart to the topic that people can see your code and help you.
- what variable type are you using for the ID. Byte, unsigned Integer or unsigned Long.
Are you using Mask and filters
I can assure you that the SPI CAN /external MCP2515 Component works ,I use it on various CAN projects with PIC16 and PIC 18'sso the CAN component does not seam to work like it should.