<?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 General Script Error in statement handling while fetching data from sharepoint by using inbuilt office 365 connector in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/General-Script-Error-in-statement-handling-while-fetching-data/m-p/2417473#M3136</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a sharepoint location. This location has multiple subfolders. Every week the business users used to update the subfolders with excel or csv files. I need to fetch the data from latest files. If the file is used once, it shouldn't be considered again for the reload.&lt;/P&gt;
&lt;P&gt;I kept every subfolder path in inline load and used the below script to fetch the files details from each sharepoint folder and then saving them into a table . while doing this, I am getting the&amp;nbsp; error "General Script Error in statement handling". It is not specifically coming at one location. everytime it is coming in different different sub folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Office365Connector_ListFolders:&lt;BR /&gt;Load * Inline &lt;BR /&gt;[&lt;BR /&gt;CustomFolder&lt;BR /&gt;QS_MSMART_UK/0_LocalData/Mapping&lt;BR /&gt;QS_MSMART_UK/0_LocalData/Configuration&lt;BR /&gt;QS_MSMART_UK/0_LocalData/05_03_Neurology_Patients/ROI_REBIF/Configuration&lt;BR /&gt;QS_MSMART_UK/0_LocalData/00_09_Local Channels&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales/Average Selling Price&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Cash&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Units&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Cash&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Units&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/SSD for Iconnect&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/KAM_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/OP_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_05_Oncology_RAS_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_06_Oncology_RAS_Actuals&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_07_Oncology_Potential&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_09_Oncology_Other_Data&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Office_365_Sharepoint_Metadata';&lt;/P&gt;
&lt;P&gt;For Each vFolderTmp in FieldValuelist('CustomFolder')&lt;/P&gt;
&lt;DIV&gt;Office365Connector_ListFiles:&lt;/DIV&gt;
&lt;DIV&gt;LOAD UniqueId as [ListFiles.UniqueId],&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Name as [ListFiles.Name],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; updated as [ListFiles.updated],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeCreated as [ListFiles.TimeCreated],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeLastModified as [ListFiles.TimeLastModified],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; '$(vFolderTmp)' as CustomFileFolder&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SELECT UniqueId,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Name,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; updated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeCreated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeLastModified&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;FROM ListFiles&lt;/DIV&gt;
&lt;DIV&gt;WITH PROPERTIES (&lt;/DIV&gt;
&lt;DIV&gt;subSite='/sites/M-Smart_Application_Data/',&lt;/DIV&gt;
&lt;DIV&gt;folder='/sites/M-Smart_Application_Data/Shared Documents/Prod.group.com/$(vFolderTmp)/',&lt;/DIV&gt;
&lt;DIV&gt;maxResults='1000'&lt;/DIV&gt;
&lt;DIV&gt;);&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Let vFolderTmp='';&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Next vFolderTmp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Drop Table Office365Connector_ListFolders;&lt;/DIV&gt;
&lt;DIV&gt;NoConcatenate&lt;/DIV&gt;
&lt;DIV&gt;SP_File_ID:&lt;/DIV&gt;
&lt;DIV&gt;Load&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.Name] as File,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.UniqueId] as ListFiles_UniqueId,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.updated] as ListFiles_updated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.TimeCreated] as ListFiles_TimeCreated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.TimeLastModified] as ListFiles_TimeLastModified,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; CustomFileFolder&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Resident Office365Connector_ListFiles;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;store SP_File_ID into [lib://APP_MSMART_UK_Confi/Local Datastore/1_Extract/SP_File_ID.qvd] (qvd);&lt;BR /&gt;Drop Table SP_File_ID;&lt;/P&gt;
&lt;P&gt;Drop Table Office365Connector_ListFiles;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what is the exact issue here. Syntactically the code is correct but i am not able to understand where exactly the issue is coming. Please help me here if any one has idea on this&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Feb 2024 10:59:53 GMT</pubDate>
    <dc:creator>konidena</dc:creator>
    <dc:date>2024-02-11T10:59:53Z</dc:date>
    <item>
      <title>General Script Error in statement handling while fetching data from sharepoint by using inbuilt office 365 connector</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/General-Script-Error-in-statement-handling-while-fetching-data/m-p/2417473#M3136</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a sharepoint location. This location has multiple subfolders. Every week the business users used to update the subfolders with excel or csv files. I need to fetch the data from latest files. If the file is used once, it shouldn't be considered again for the reload.&lt;/P&gt;
&lt;P&gt;I kept every subfolder path in inline load and used the below script to fetch the files details from each sharepoint folder and then saving them into a table . while doing this, I am getting the&amp;nbsp; error "General Script Error in statement handling". It is not specifically coming at one location. everytime it is coming in different different sub folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Office365Connector_ListFolders:&lt;BR /&gt;Load * Inline &lt;BR /&gt;[&lt;BR /&gt;CustomFolder&lt;BR /&gt;QS_MSMART_UK/0_LocalData/Mapping&lt;BR /&gt;QS_MSMART_UK/0_LocalData/Configuration&lt;BR /&gt;QS_MSMART_UK/0_LocalData/05_03_Neurology_Patients/ROI_REBIF/Configuration&lt;BR /&gt;QS_MSMART_UK/0_LocalData/00_09_Local Channels&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales/Average Selling Price&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Cash&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Units&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Cash&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Units&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/SSD for Iconnect&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/KAM_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/OP_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_05_Oncology_RAS_Targets&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_06_Oncology_RAS_Actuals&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_07_Oncology_Potential&lt;BR /&gt;QS_MSMART_UK/0_LocalData/01_09_Oncology_Other_Data&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Office_365_Sharepoint_Metadata';&lt;/P&gt;
&lt;P&gt;For Each vFolderTmp in FieldValuelist('CustomFolder')&lt;/P&gt;
&lt;DIV&gt;Office365Connector_ListFiles:&lt;/DIV&gt;
&lt;DIV&gt;LOAD UniqueId as [ListFiles.UniqueId],&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Name as [ListFiles.Name],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; updated as [ListFiles.updated],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeCreated as [ListFiles.TimeCreated],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeLastModified as [ListFiles.TimeLastModified],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; '$(vFolderTmp)' as CustomFileFolder&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;SELECT UniqueId,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Name,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; updated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeCreated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; TimeLastModified&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;FROM ListFiles&lt;/DIV&gt;
&lt;DIV&gt;WITH PROPERTIES (&lt;/DIV&gt;
&lt;DIV&gt;subSite='/sites/M-Smart_Application_Data/',&lt;/DIV&gt;
&lt;DIV&gt;folder='/sites/M-Smart_Application_Data/Shared Documents/Prod.group.com/$(vFolderTmp)/',&lt;/DIV&gt;
&lt;DIV&gt;maxResults='1000'&lt;/DIV&gt;
&lt;DIV&gt;);&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Let vFolderTmp='';&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Next vFolderTmp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Drop Table Office365Connector_ListFolders;&lt;/DIV&gt;
&lt;DIV&gt;NoConcatenate&lt;/DIV&gt;
&lt;DIV&gt;SP_File_ID:&lt;/DIV&gt;
&lt;DIV&gt;Load&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.Name] as File,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.UniqueId] as ListFiles_UniqueId,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.updated] as ListFiles_updated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.TimeCreated] as ListFiles_TimeCreated,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; [ListFiles.TimeLastModified] as ListFiles_TimeLastModified,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; CustomFileFolder&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Resident Office365Connector_ListFiles;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;store SP_File_ID into [lib://APP_MSMART_UK_Confi/Local Datastore/1_Extract/SP_File_ID.qvd] (qvd);&lt;BR /&gt;Drop Table SP_File_ID;&lt;/P&gt;
&lt;P&gt;Drop Table Office365Connector_ListFiles;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what is the exact issue here. Syntactically the code is correct but i am not able to understand where exactly the issue is coming. Please help me here if any one has idea on this&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 10:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/General-Script-Error-in-statement-handling-while-fetching-data/m-p/2417473#M3136</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2024-02-11T10:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: General Script Error in statement handling while fetching data from sharepoint by using inbuilt office 365 connector</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/General-Script-Error-in-statement-handling-while-fetching-data/m-p/2420127#M3160</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49519"&gt;@konidena&lt;/a&gt;&amp;nbsp;What it says when you use Debug mode? Is there any file that showing the error or ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 15:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/General-Script-Error-in-statement-handling-while-fetching-data/m-p/2420127#M3160</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-02-16T15:18:29Z</dc:date>
    </item>
  </channel>
</rss>

