Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qvc.Calendar #75

Open
GorumDerVan opened this issue Apr 18, 2018 · 13 comments
Open

Qvc.Calendar #75

GorumDerVan opened this issue Apr 18, 2018 · 13 comments

Comments

@GorumDerVan
Copy link

Downloaded the current version.
Error creating calendar using this call statement: CALL Qvc.CalendarFromField ('Date') on this test script:
LET MinDate = num(MakeDate(1972));
LET MaxDate = num(MakeDate(Year(addyears(Today(), 3))));
Cal_test:
Load
Date($(MinDate)+iterno()) as Date
AutoGenerate(1)
While iterno() <= $(MaxDate) - $(MinDate) ;

Error is:
Semantic error
CALL Qvc.GetFieldValues('_vStats', 'Date')
followed by
Syntax error
Unexpected token: ',', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', 'bitnot', 'LITERAL_NUMBER', ...
LET _concatenate = if(>>>>>>,<<<<<< 'CONCATENATE ([MasterCalendar])', '')
followed by
Autogenerate: generate count is out of range
LOAD date('' + recno() - 1) as Date,
date('' + recno() - 1) as _qvctemp.Date
AUTOGENERATE date('') - date('') + 1

Commented the call statement Qvc.GetFieldValues in the script but that didn't help.

Thanks for your help.

@RobWunderlich
Copy link
Owner

These semantic errors surfaced with QV 12.20. while I'm figuring out how to eliminate them completly, a workaround is to add this as the first line of your script file:

///$bnf off

@GorumDerVan
Copy link
Author

Thank you Rob for the quick reply. I added the statement as the very first line in the script but the errors remain.
QV 12 SR3
12.20.20400.00
I'll wait for the update of QlikView and keep an eye on the github.

Thanks for your great components library!

@RobWunderlich
Copy link
Owner

It looks like your Cal_test table possibly has no rows. Can you check the script log and see if any rows were created?

@GorumDerVan
Copy link
Author

Cal_test:
Load
2018-04-18 16:17:23 0038 Date(26299+iterno()-1) as Date
2018-04-18 16:17:23 0039 AutoGenerate(1)
2018-04-18 16:17:23 0040 While iterno()-1 <= 44561 - 26299
2018-04-18 16:17:23 1 fields found: Date,
2018-04-18 16:17:23 18.263 lines fetched

@idenne
Copy link

idenne commented Jun 26, 2018

I get the same error
Autogenerate: generate count is out of range
LOAD FieldValue('',recno()) as [] AUTOGENERATE FieldValueCount('')
Any news on this issue?

@RobWunderlich
Copy link
Owner

I have unable to recreate this problem or get any further information on it, although someone else has reported it. The issue seems to be that the start date is null but I don't know why. Can you post the entire script log?

@idenne
Copy link

idenne commented Jul 2, 2018 via email

@AngelSousa
Copy link

I solved the date-format issue.. but now.... trying to CALL the QVC gives me these:

Invalid Autogenerate count: -1e+300
LOAD FieldValue('', recno()) as [] AUTOGENERATE FieldValueCount('')
Table not found
DROP TABLES statement
Invalid Autogenerate count: -1e+300
LOAD date('' + recno() - 1) as Date,
date('' + recno() - 1) as _qvctemp.Date
AUTOGENERATE date('') - date('') + 1

_qvctemp.Calendar.EscapeCharsMap << d7ffbd5e-bb4a-4791-8b5e-36e3e0f5e22d 2 Lines fetched

FOR _qvctemp.i = 1 to NoOfFields('MasterCalendar')

<<<<<<
Unexpected token: 'MasterCalendar', expected nothing
LET _vClearFieldList = '' & '[' & FieldName(, >>>>>>'MasterCalendar'<<<<<<) & ']=,'
The control statement is not correctly matched with its corresponding start statement
NEXT _qvctemp.i

FOR _qvctemp.i = 1 to NoOfFields('MasterCalendar')

<<<<<<
Unexpected token: 'MasterCalendar', expected nothing
LET _qvctemp.vFname = FieldName(, >>>>>>'MasterCalendar'<<<<<<)
The control statement is not correctly matched with its corresponding start statement
NEXT _qvctemp.i

@RobWunderlich
Copy link
Owner

RobWunderlich commented Sep 25, 2018 via email

@AngelSousa
Copy link

$(Include=C:\Program Files\QlikView\QlikviewComponents-11.2\Qvc_Runtime\qvc.qvs);
CALL Qvc.CalendarFromField(Plantilla_Date);

@RobWunderlich
Copy link
Owner

RobWunderlich commented Sep 26, 2018 via email

@AngelSousa
Copy link

Invalid Autogenerate count: -1e+300
LOAD FieldValue('Plantilla_Date', recno()) as [Plantilla_Date] AUTOGENERATE FieldValueCount('Plantilla_Date')
Table not found
DROP TABLES statement
Invalid Autogenerate count: -1e+300
LOAD date('' + recno() - 1) as Date,
date('' + recno() - 1) as _qvctemp.Date
AUTOGENERATE date('') - date('') + 1

_qvctemp.Calendar.EscapeCharsMap << bbfab722-5ffb-4c3d-acf5-9c87ff549eb1 2 Lines fetched

FOR _qvctemp.i = 1 to NoOfFields('MasterCalendar')

<<<<<<
Unexpected token: 'MasterCalendar', expected nothing
LET _vClearFieldList = '' & '[' & FieldName(, >>>>>>'MasterCalendar'<<<<<<) & ']=,'
The control statement is not correctly matched with its corresponding start statement
NEXT _qvctemp.i

FOR _qvctemp.i = 1 to NoOfFields('MasterCalendar')

<<<<<<
Unexpected token: 'MasterCalendar', expected nothing
LET _qvctemp.vFname = FieldName(, >>>>>>'MasterCalendar'<<<<<<)
The control statement is not correctly matched with its corresponding start statement
NEXT _qvctemp.i

@RobWunderlich
Copy link
Owner

RobWunderlich commented Sep 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants