<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GetSourceDocumentNodes sometimes does not find a document in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetSourceDocumentNodes-sometimes-does-not-find-a-document/m-p/41314#M6966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Qlikview 12.20 on Windows server 2012 R2&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QmsApi application in which I copy a file to a newly created folder under the source documents root.&amp;nbsp; I then need the DocumentNode object corresponding to that document, so I call the GetSourceDocumentNodes(QdsServiceInfo.ID, SourceDocFolder.ID, RequestedRelativeFolder) api function to get that.&amp;nbsp; Sometimes the function returns nothing, but this call is always made only after the copy is finished.&amp;nbsp; I have tried looping 10 times with 250 ms sleeps and calling the function over and over.&amp;nbsp; I have tried adding a call to ClearQVSCache(QVSCacheObjects.All) &lt;SPAN style="font-size: 13.3333px;"&gt;after the file copy &lt;/SPAN&gt;and that does not solve the problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall purpose here is to create and run a couple of publisher tasks on the document, so I need to DocumentNode object for that purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reliable strategy for me to copy a file into the source documents and then get a DocumentNode object associated with that file?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 20:08:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-02T20:08:23Z</dc:date>
    <item>
      <title>GetSourceDocumentNodes sometimes does not find a document</title>
      <link>https://community.qlik.com/t5/QlikView/GetSourceDocumentNodes-sometimes-does-not-find-a-document/m-p/41314#M6966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Qlikview 12.20 on Windows server 2012 R2&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QmsApi application in which I copy a file to a newly created folder under the source documents root.&amp;nbsp; I then need the DocumentNode object corresponding to that document, so I call the GetSourceDocumentNodes(QdsServiceInfo.ID, SourceDocFolder.ID, RequestedRelativeFolder) api function to get that.&amp;nbsp; Sometimes the function returns nothing, but this call is always made only after the copy is finished.&amp;nbsp; I have tried looping 10 times with 250 ms sleeps and calling the function over and over.&amp;nbsp; I have tried adding a call to ClearQVSCache(QVSCacheObjects.All) &lt;SPAN style="font-size: 13.3333px;"&gt;after the file copy &lt;/SPAN&gt;and that does not solve the problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall purpose here is to create and run a couple of publisher tasks on the document, so I need to DocumentNode object for that purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reliable strategy for me to copy a file into the source documents and then get a DocumentNode object associated with that file?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSourceDocumentNodes-sometimes-does-not-find-a-document/m-p/41314#M6966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T20:08:23Z</dc:date>
    </item>
  </channel>
</rss>

