Hi there.
I'm using qRules 4.3 and trying to get a form setup for users to be able to interact with an 'Issue Tracker' list, in the hopes of being able to setup a basic help desk.
I have been able to get the form to write to the list no problem, however I also want to provide the ability to add an attachment, such as a screenshot, and have it come across.
When I specify the /dsname attribute and submit, I receive the following error. It appears as though it's saying that the data connection doesn't exist, even though it does. If I don't specify this attribute, the form will submit to the library and populate the list just fine.
Action: SubmitToSharePointList. Arguments: submit: WriteList mapping: TrackListMap4 dsname: AddAttach . Details: An item with the following index does not exist in the collection: AddAttach. Stack: at Microsoft.Office.Interop.InfoPath.SemiTrust.DataObjects.get_Item(Object varIndex) at Microsoft.Office.Interop.InfoPath.SemiTrust.DataObjectsCollectionWrapper.get_Item(Object varIndex) at Microsoft.Office.InfoPath.Internal.DataSourcesHost.get_Item(String name) at Qdabra.Tools.RulesLibrary.Commands.SetQueryFields(String dsname, String guid, String id, String attName, Byte[] file) at Qdabra.Tools.RulesLibrary.Commands.AttachToSharePointList_Client(String dsname, String url, String guid, String id, XPathNodeIterator attachmentNodes, String name, String namexpath, String nameFormat) at Qdabra.Tools.RulesLibrary.Commands.AttachToSharePointList_Client(String dsname, String url, String guid, String id, String xpath, String name, String namexpath, String nameFormat) at Qdabra.Tools.RulesLibrary.Commands.AddAttachments(String listGuid, String id, String dsname, String xpath, Uri submitUri, String name, String namexpath, String nameFormat) at Qdabra.Tools.RulesLibrary.Commands.SubmitToSharePointList_Client(String submitDs, XPathNavigator mappingNode, String id, String attchDsname, String attchXpath, String attchName, String attchNameXPath, String attchNameFormat) at Qdabra.Tools.RulesLibrary.Commands.SubmitToSharePointList() at Qdabra.Tools.RulesLibrary.Commands.RunCommand(String commandName) at Qdabra.Tools.RulesLibrary.Commands.ExecuteCommand()
I have attached my mapping and form template.
What am I don't wrong?
Cheers,
Tom