# EMIS Partner API **Category:** [NHS Spine & APIs Support](https://openhealthhub.org/c/nhs-spine/25) **Created:** 2025-05-07 08:00 UTC **Views:** 118 **Replies:** 5 **URL:** https://openhealthhub.org/t/emis-partner-api/2839 --- ## Post #1 by @bhargav Hi We have recently got access to partner api. Can anyone share sample xml snippet for file record call as we are unable to file attachments. Getting Invalid (-1) error response. --- ## Post #2 by @mayfield.g.kev You have the file to be uploaded on the same server as your api? The filename in the XML matches this? The file can be accessed by the API? --- ## Post #3 by @bhargav Hi. Thanks for the reply. I have kept the file in the same folder where EMIS is installed. Yes the filename in address field is same. But getting error Transform Failed: \nObject reference not set to an instance of an object. If there is sample xml snippet it will be helpful. --- ## Post #4 by @mayfield.g.kev If you can post what you have I can check it against our transform? --- ## Post #5 by @bhargav Sure I will send it via personal message. --- ## Post #6 by @bhargav Hi I have sent through messages --- **Canonical:** https://openhealthhub.org/t/emis-partner-api/2839 **Original content:** https://openhealthhub.org/t/emis-partner-api/2839