Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
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.
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 error "General Script Error in statement handling". It is not specifically coming at one location. everytime it is coming in different different sub folder.
Office365Connector_ListFolders:
Load * Inline
[
CustomFolder
QS_MSMART_UK/0_LocalData/Mapping
QS_MSMART_UK/0_LocalData/Configuration
QS_MSMART_UK/0_LocalData/05_03_Neurology_Patients/ROI_REBIF/Configuration
QS_MSMART_UK/0_LocalData/00_09_Local Channels
QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales
QS_MSMART_UK/0_LocalData/01_01_Oncology_Sales/Average Selling Price
QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Cash
QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/UK/Units
QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Cash
QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/ROI/Units
QS_MSMART_UK/0_LocalData/01_02_Oncology_MarketData/SSD for Iconnect
QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets
QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/KAM_Targets
QS_MSMART_UK/0_LocalData/01_04_Oncology_Targets/OP_Targets
QS_MSMART_UK/0_LocalData/01_05_Oncology_RAS_Targets
QS_MSMART_UK/0_LocalData/01_06_Oncology_RAS_Actuals
QS_MSMART_UK/0_LocalData/01_07_Oncology_Potential
QS_MSMART_UK/0_LocalData/01_09_Oncology_Other_Data
];
LIB CONNECT TO 'Office_365_Sharepoint_Metadata';
For Each vFolderTmp in FieldValuelist('CustomFolder')
store SP_File_ID into [lib://APP_MSMART_UK_Confi/Local Datastore/1_Extract/SP_File_ID.qvd] (qvd);
Drop Table SP_File_ID;
Drop Table Office365Connector_ListFiles;
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
@konidena What it says when you use Debug mode? Is there any file that showing the error or ?