SaveToPath error - InfoPath Dev
in

InfoPath Dev

SaveToPath error

Last post 06-13-2012 06:30 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-12-2012 03:49 PM

    SaveToPath error

    Business Case:  I am trying to insert PDF files into a shared directory with very specific naming requirments. 

    I am using InfoPath I can prompt the users to attach a file and then provide the required information and then form a string for the new file name.   

    I am trying to use the SaveToPath command see below: 

      concat("SaveToPath /path=\\{servername}\{folder}\{folder}\{folder}\",/my:myFields/my:File/@my:FileName, "  /dsname=/my:myFields/my:File /overwrite=yes")

     the "@my:FileName" is the derived filename string.  and the "my:File" is the attached file 

    I keep gettign the following error.  So i am not sure I hav gotten it just right.

    "The specified secondary DOM is not present."

    Any guidance here would be great  

  • 06-13-2012 06:30 AM In reply to

    I don't believe that SaveToPath is the command you're looking for. From the User Guide: "Saves the main or a secondary data source's XML to a local file. Full trust required. Not browser compatible." So the command is trying to save out the entire XML structure.

    Take a look at this video: http://www.youtube.com/watch?v=QyqZcZ-A-lM

    We also have this document: http://www.infopathdev.com/files/folders/qrules/entry59151.aspx

    Good luck!

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


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