A new Flexera Community experience is coming on November 25th. Click here for more information.
If I create a business adapter with a custom query for the purpose of importing data from an excel spreadsheet into a table in the fnmsstaging database, in the custom query how do I select data from the spreadsheet? I've tried select statements but they always return "Invalid object name 'users$'." ('users' being the name of the spreadsheet tab) Does anyone have any example code showing how to do this?
‎Apr 19, 2021 11:57 PM
‎Apr 20, 2021 12:01 AM
‎Apr 20, 2021 12:07 AM
Hi @michael_hoogen ,
issue might be with the format of the cells in the excel and i would suggest you to try to import the data from a .CSV file instead of Excel as i have observed sometimes that even though the column name doesn't contain any special characters it shows so when we are using excel in Business adapter.
Regards,
‎Apr 20, 2021 12:59 AM
Hi,
Accessing the Excel data is imho no real SQL. I usually first stage the data from any type of files into the FNMSCompliance database and then run proper SQL from there.
Best regards,
Markward
‎Apr 20, 2021 02:59 AM
Here's an example of what a query would typically look like to extract data from all columns in the worksheet named "Users" in an Excel spreadsheet:
SELECT * FROM [Users$]
‎Apr 27, 2021 11:48 PM