1

Topic: Exporting to the NBN, no dates

I am trying to send a data set to the NBN, but when I check the exported data there are no start and end dates. We are on version R6 6.22.2.274 and using NBN Exchange Addin v6.23.

2

Re: Exporting to the NBN, no dates

I have tried duplicating this problem using the same versions of R6 and the database as you are using, but without any success. Are all three date fields missing (Start_date, End_date,Date Type) or just the actual date fields ?

Mike Weideli

3

Re: Exporting to the NBN, no dates

Just the Start_date and End_date fields that are missing.

4

Re: Exporting to the NBN, no dates

Please can let let me know in detail how you did the export. Was it based on a report of some sort ?. Could you please try just  a simple export of one Survey_Event by highlighting it  and  choosing export data form the tools menu, and select NBN Exchange Addin .  This will give just a small file which can be easily checked. I need to know if the dates appear in this. Best checked by opening with notepad.

Mike Weideli

5

Re: Exporting to the NBN, no dates

Yes that is the way I have been trying. I have exported a small survey which is attached, still missing the start_date and End_date. I also note that some of the Sitekeys are missing from this small dataset.

Post's attachments

Sawflies_2013.txt 3.22 kb, 3 downloads since 2015-08-13 

You don't have the permssions to download the attachments of this post.

6

Re: Exporting to the NBN, no dates

Thanks. This eliminates the source of the data as the problem. Will look further at what it could be. As far as I can see no date processing was changed in the last version of the addin.

Mike Weideli

7

Re: Exporting to the NBN, no dates

Please could you check your default date format through Control panel, Region and language. The calculation of the date depends on these being set to English Uk (dd/MM/yyyy and dd MMMM yyyy)

Mike Weideli

8

Re: Exporting to the NBN, no dates

The Region and Language settings are as follows
Format: English (United Kingdom)
Date and time formats
Short date: dd/MM/yyyy
Long date: dd MMMM yyyy

9

Re: Exporting to the NBN, no dates

So much for that idea. Will keep trying.

Mike Weideli

10

Re: Exporting to the NBN, no dates

I have set up an entirely new Pc with V6.22 and v6.23 of the Nbn Exchange Addin and still can't duplicate this. Please could you  load the addin again. The OCX file is included in the attached - you might   find you can just copy it into the addin folder  to replace the one that is there. Otherwise you may need to unistall the existing one and install this one. .

Post's attachments

NBNExchange623.zip 1.57 mb, 2 downloads since 2015-08-14 

You don't have the permssions to download the attachments of this post.
Mike Weideli

11

Re: Exporting to the NBN, no dates

Thanks Mike. It will probably be sometime next week before I’ll get a chance to have a go at this.

12

Re: Exporting to the NBN, no dates

I am afraid that did not work. I removed the addin from within Recorder and also removed the file from the Addins folder.

13

Re: Exporting to the NBN, no dates

No ides what is happening here. I will have to modify the addin to put out some messages showing what it is happening at the various stages in date processing.

Mike Weideli

14

Re: Exporting to the NBN, no dates

Please could you try the attached XML report which will check if the date is being properly converted. 

It should give a report which shows the date as held by recorder and the  date in the date this converts to in the normal dd/mm/yyyy format. Copy the file into the report folder of R6. The report   will appear under a Menu LC.

Post's attachments

LC_NBN_Vague_date_Check.xml 595 b, 2 downloads since 2015-08-21 

You don't have the permssions to download the attachments of this post.
Mike Weideli

15

Re: Exporting to the NBN, no dates

I have the xml file at last. I ran the report for 15 minutes and it had not come back with a report after that length of time, so aborted it. Will this report take some time to run before coming back with an answer?.

16

Re: Exporting to the NBN, no dates

Please can you see if it will complete given time. I think it is just the size of the database which causing it to take a long time as the query is very straightforward.

Mike Weideli

17

Re: Exporting to the NBN, no dates

I let it run this time and it came back with this error message “There is an error in the SQL code. The error message is: ’Arithmetic overflow error converting expression to date type int’”.

18

Re: Exporting to the NBN, no dates

Hi thanks. That is helpful.  Please can you try the attached.

Post's attachments

LC_NBN_Vague_date_Check.xml 677 b, 2 downloads since 2015-09-10 

You don't have the permssions to download the attachments of this post.
Mike Weideli

19

Re: Exporting to the NBN, no dates

Instant result this time, 128428 rows returned. And on a very quick scan through them, they all have a VDS & VDE in the correct format ddmmyyyy. As I did a very quick scan through the result is there anything in particular that I should look for.

20

Re: Exporting to the NBN, no dates

At the moment I am not any further forward with this. I am going to have to put some diagnostic code into the addin to try and find out what is going on.

Mike Weideli

21

Re: Exporting to the NBN, no dates

Please could you try the report at
http://forums.nbn.org.uk/viewtopic.php?id=5843

This uses the same code as NBN Extract and may show up why you have a problem.

Mike Weideli

22

Re: Exporting to the NBN, no dates

Hi Mike neither ‘JNCC_NBNExport_Check’ or ‘JNCC_NBN2_Export_Check’ will run, they both give the error message ‘There is an error in the SQL code. The error message is. ‘Incorrect syntax near the keyword ‘Precision’’.

23

Re: Exporting to the NBN, no dates

The problem with the report is that the syntax doesn't work in SQL Server  2000 (perhaps also not in 2005). This gave me a clue and and I could duplicate and identify the problem on a SQL Server 2000 installation.  The solution requires updating a stored procedure - have you any method of doing this or getting it done ?

Mike Weideli

24

Re: Exporting to the NBN, no dates

I’d have to get the IT people to do this for me.

25

Re: Exporting to the NBN, no dates

I think I have the answer, but if IT need to be involved I would like to do some more testing, before supplying the fix.

Mike Weideli