Jump to content
jsmith

AHD03333:CreateObject failed for attmnt_lrel

Recommended Posts

I'm trying to add an attachment to a request with service desk 12.5, but when I do I get the error message:

AHD03333:CreateObject failed for attmnt_lrel

Here is my code

If fuAttach.HasFile Then

Dim filename As String = Path.GetFileName(fuAttach.FileName)

Dim fileString = "~/" & filename

fuAttach.SaveAs(Server.MapPath("~/") + filename)

Dim reqContext As SoapContext = SDWS.RequestSoapContext

Dim dimeAttach As New DimeAttachment("image/gif", TypeFormat.MediaType, "C:\Forms\Help_Desk\" & filename)

reqContext.Attachments.Add(dimeAttach)

SDWS.createAttachment(SID, "doc_rep:1002", objectHandle, "description_string", fileString)

Share this post


Link to post
Share on other sites

Any messages in the logs?

Share this post


Link to post
Share on other sites

Ok. On the SDM server in the application directory, there is a "log" directory. There are files called stdlog.[0-9]. Normaly, if an error occurs, messages are written to these files. Take a look at the recent one when doing your test to figure out, if there are any additional error messages in the latest of these files.

Share this post


Link to post
Share on other sites
I'm trying to add an attachment to a request with service desk 12.5, but when I do I get the error message:

AHD03333:CreateObject failed for attmnt_lrel

Here is my code

If fuAttach.HasFile Then

Dim filename As String = Path.GetFileName(fuAttach.FileName)

Dim fileString = "~/" & filename

fuAttach.SaveAs(Server.MapPath("~/") + filename)

Dim reqContext As SoapContext = SDWS.RequestSoapContext

Dim dimeAttach As New DimeAttachment("image/gif", TypeFormat.MediaType, "C:\Forms\Help_Desk\" & filename)

reqContext.Attachments.Add(dimeAttach)

SDWS.createAttachment(SID, "doc_rep:1002", objectHandle, "description_string", fileString)

Were you able to resolve the problem you were having?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Announcements

    • Gregg

      Looking for the wiki content?

      12/20/2015

      Until I can transfer the wiki content over to the new Articles, you can find the old content here: http://www.greggsmith.net/wiki.
    • Gregg

      New site logo

      01/06/2016

      A special thanks to brianshs for creating a new site logo!
×