SubmitToSharePoint List with attachments - InfoPath Dev
in

InfoPath Dev

SubmitToSharePoint List with attachments

Last post 08-30-2011 03:42 PM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 08-30-2011 01:08 PM

    • Adelaw
    • Not Ranked
    • Joined on 08-30-2011
    • Posts 3

    SubmitToSharePoint List with attachments

    I can't seem to attach a picture to a SharePoint list successfully using the SubmitToSharePointList command and the /AddAttachment parameter.

    Keeps giving the following error, "An error occurred adding the attachment: Parameter listItemID is missing or invalid." and I've replicated the data structure exactly. Without the pictures the form submits successfully to the SP List with the ID field but once I attach a picture I get an error.

    My data is non-repeating so I am using the full xpath for the ID field and the attachment file.

    Thanks.

  • 08-30-2011 01:33 PM In reply to

    Re: SubmitToSharePoint List with attachments

    Hi!

    I'm sorry you've run into issues. Have you seen our documentation?

    http://www.infopathdev.com/files/folders/qrules/entry59157.aspx

    http://www.infopathdev.com/files/folders/qrules/entry61475.aspx

    If so, please let us know when that error is happening, and we'll take a look at the document to find the possible causes.

    Thank you.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 08-30-2011 01:37 PM In reply to

    • Adelaw
    • Not Ranked
    • Joined on 08-30-2011
    • Posts 3

    Re: SubmitToSharePoint List with attachments

    Thanks for your reply. I've used both these documents and still can't find what I'm doing wrong.

    The error I get is "An error occurred adding the attachment: Parameter listItemID is missing or invalid."

    Thanks again.

  • 08-30-2011 02:05 PM In reply to

    Re: SubmitToSharePoint List with attachments

    Can you paste in the command you are using?

    Hilary Stoupa

  • 08-30-2011 02:28 PM In reply to

    • Adelaw
    • Not Ranked
    • Joined on 08-30-2011
    • Posts 3

    Re: SubmitToSharePoint List with attachments

    Hi,

    I'm using this command.

    SubmitToSharePointList /submit=ShPSubmit /mapping=mapping /id=/my:myFields/my:group1/my:items/my:id /dsname=AddAttachment /xpath=/my:myFields/my:group1/my:items/my:Attachment/my:picture /uniqueName=yes

    Form submits successfully when there's no picture attached but once there's an attachment I get the error.

  • 08-30-2011 03:42 PM In reply to

    Re: SubmitToSharePoint List with attachments

    And your form data structure is not repeating? Can you email your form to our support email alias - you'll find the email at the end of the user guide - and reference this thread in the email? I'd like to take a look, if that's okay.

    Hilary Stoupa

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.