Is it able to get the file name when importing excel? Thanks
Is it able to get the file name when importing excel?
(10 posts) (2 voices)-
-
You can use the import finish report, which supports automatic parameter
inImportFilename
.If you update to the latest build you will also get
inImportTotalRows
for total rows imported andinImportErrors
for the error count.To see how to use them, see the documentation.
--
myDBR Team -
Thanks. What is the best way to check if the imported file, says excel file is the one with pre-defined format? Am thinking to include a version number "somewhere" in the excel file and then check it after import. Please kindly advise
-
If the import file does not match the pre-defined format, the import will simply fail.
--
myDBR Team -
Am I able to read the header row content, says the content in first column of row 1?
-
There is no additional logic for checking the file before the import . You can check the data while it is being imported. If the data does not match the expected data, myDBR will reject the data.
—
myDBR Team -
How myDBR can tell if the import file match the expected data? Or how to configure in myDBR what should be the expected format?
-
When you define the import report, you will define the columns, column count and datatypes. You will also define if the skip headers and footers. If the Excel file does not match the definition, the import will fail.
--
myDBR Team -
How can I define the column count in myDBR?
-
The import report parameters should match the Excel columns. The number of parameters in the import report should be equal to Excel columns plus any additional data columns you have optionally defined in import settings. If you have no additional settings and you have data in five Excek colunms, you should have five parameters in the import report.
See the documentation.
--
myDBR Team
Reply
You must log in to post.