That, and a failed actuator, are the only experiences I've had with the trunk latch.
Put an ohmmeter across the cable connections to see if the switch works.
Ed in San Jose '97 540i 6 speed aspensilber over aubergine leather. Build date 3/97. Golden Gate Chapter BMW CCA Nr 62319.