Hi, I have been trying to create a new ini file, but i keep getting time parsing error.
index_start.scrub {single|"startdatetime":"||","|enddatetime}
index_start.modify{calcuate(format=time, HH:mm)}
The error in the logs is as follows:
time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 2:30:40 PM
execution stopped
I tried the same method for another website it worked fine.
Can someone help me out by telling were I am going wrong.
Just do
index_start.scrub {single(debug)|"startdatetime":"||","|enddatetime}
index_start.modify{calcuate(debug format=time, HH:mm)}
And look in the logging, what is printed. Should give you some more info.
Probably, your modify doesn't need to be there. You will see in the logging.
Ok, tire it and got the following log:
Debugging information SiteIni
Element: INDEX_START
Modify
command & arguments : calcuate(debug format=time, HH:mm)
Element value before operation:
empty element before the operation!
Element value after operation:
Debugging information SiteIni
Element: INDEX_START
html source written to : C:\ProgramData\ServerCare\WebGrab\html.source.htm
scrub strings:
type & arguments : single(debug)
blockstart (bs): "startdatetime":"
elementstart (es):
elementend (ee): ","
blockend (be): enddatetime
Separated html block(s), number of blocks = 1
----------begin--block----------
1403193600","enddatetime
----------end----block----------
Separated Element(s) (es) applied
----------begin--element----------
1403193600","enddatetime
----------end----element----------
Separated Element(s) (es) and (ee) applied of block 0
----------begin--element----------
1403193600
----------end----element----------
Elements , type single applied
----------begin--element----------
1403193600
----------end----element----------
Debugging information SiteIni
Element: INDEX_START
Modify
command & arguments : calcuate(debug format=time, HH:mm)
Element value before operation:
1403193600
Element value after operation:
1403193600
time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 2:58:32 PM
execution stopped
And what if you comment out the
index_start.modify{calcuate(debug format=time, HH:mm)}
line?
when commented out, got the following error:
Debugging information SiteIni
Element: INDEX_START
html source written to : C:\ProgramData\ServerCare\WebGrab\html.source.htm
scrub strings:
type & arguments : single(debug)
blockstart (bs): "startdatetime":"
elementstart (es):
elementend (ee): ","
blockend (be): enddatetime
Separated html block(s), number of blocks = 1
----------begin--block----------
1403193600","enddatetime
----------end----block----------
Separated Element(s) (es) applied
----------begin--element----------
1403193600","enddatetime
----------end----element----------
Separated Element(s) (es) and (ee) applied of block 0
----------begin--element----------
1403193600
----------end----element----------
Elements , type single applied
----------begin--element----------
1403193600
----------end----element----------
time parsing error : String was not recognized as a valid DateTime.
start time scrubbed : 1403193600
computer date/time format: 6/19/2014 3:07:22 PM
execution stopped
Ok,
Using the syntax highlighting of Notepad++, I found the error:
index_start.modify{calcuate(debug format=time, HH:mm)}
should be
index_start.modify{calculate(debug format=time, HH:mm)}
Hey that worked... but i am not able to see the difference between both lines. is it an extra space??
Oh.. i see; its the missing 'L' in calculate... that was really stupid of me... i should try installing notepad++
Finally got filmon.com to work... will send you the ini in a day...
Thanks Francis