Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I see a record count on a qvd load?

I am trying to use this code:

    IterNo() AS Key

While IterNo() <= NoOfRows ('MyTable');

when I run the script it returns with no records.

I am trying to figure out which record my script is crashing on.  I am getting this error:

Error: QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: S1000, ErrorCode: 4294967135, ErrorMsg: [CA][ODBC CA-Datacom/DB Driver][CA-DATACOM/DB] FIELD_NAME1 NUMERIC(7,0) INVALID DATA: F0F0F0D761E4FF

where FIELD_NAME1 is numeric with the invalid data and my script fails at this point.

Is there a way to display the other fields on the bad record to a log file?

1 Solution

Accepted Solutions
Not applicable
Author

HI,

     You can use as below code

Let rowcount=NoOfrows('MyTable');

Trace $(rowcount)

By using this the Records count of the Table is visible in the Script Execution Dialog as well

as in the Log file .

Please reply me for the same.

//yusuf

View solution in original post

2 Replies
eddysanchez
Partner - Creator
Partner - Creator

Are you trying to connect to Oracle?

If you use the sentences:

SQL SELECT...

All this SQL command is not compiled in qlikview. Is compiled in your provider

Not applicable
Author

HI,

     You can use as below code

Let rowcount=NoOfrows('MyTable');

Trace $(rowcount)

By using this the Records count of the Table is visible in the Script Execution Dialog as well

as in the Log file .

Please reply me for the same.

//yusuf