I have an add-in that adds requirements to QC from an excel spreadsheet. I've moved on to a different group but they recently upgraded QC from 9.2 to 11 and hit me up to get the requirements loader functioning with the new version. Everything else works (I just had to change the connection info as they changed boxes when upgrading) but the attachments won't work anymore. I have looked at the documentation for ALM OTA and it appears that it should all work the same, but apparently I am missing something.
Here is the code that worked for 9.2
<font class="small">Code:</font><hr /><pre>
' add the attachment
Set objAttachFact = objReq.Attachments
strAttachFile = Trim(objSheet.Range("K" & lnRowNum).Text)
strAttachFile = Replace(strAttachFile, vbLf, "")
Set objAttach = objAttachFact.AddItem(Null)
when it hits the post I get "Server failed to create requested object". I have been trying different things like populating the data property but all I manage to do is get it to break sooner. Any suggestions will be welcome.