Hi,
I am new to AX, I want to Skip the header Line in Excel while Importing the Data into Table.
Can anyone please help me.
Regards,
Swetha
*This post is locked for comments
Hi Swetha,
If you use Data Import Export Framework (DIXF) for importing the Excel files, there is a setting for the header row to be skipped. What exactly are you working on? Developing custom scripts, using DIXF or something else?
Hi!
You should start importing from line you need. If header line is line no. 1 - skip it.
Like this (for example):
ComExcelDocument_RU document;
int i;
str strValue;
document = new ComExcelDocument_RU();
document.open(filePath, false);
for (i = 2; i; i++)
{
strValue = document.getValueStr('', document.cellAddress('', 'A' + int2str(i)));
if (! strValue)
break;
}
document.closeDocument();
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 2 Most Valuable Professional
Guy Terry 2 Moderator
Community Member 2