Giter VIP home page Giter VIP logo

Comments (4)

ShaunDarkLord avatar ShaunDarkLord commented on July 23, 2024

The command I'm running is;
gam.exe csvkmd users guardians.csv keyfield Student datafield Guardian sync guardians csvdata Guardian

from gamadv-xtd3.

taers232c avatar taers232c commented on July 23, 2024

I can reproduce the error by putting a NULL byte at the end of the header row.
I'll have GAM trap the error but all that will achieve is a better error message.
How was guardians.csv produced?

$ od -xc guardians.csv                                                                                                                                                                                                                                                                                                                   
0000000      7453    6475    6e65    2c74    7547    7261    6964    6e61                                                                                                                                                                                                                                                                
           S   t   u   d   e   n   t   ,   G   u   a   r   d   i   a   n                                                                                                                                                                                                                                                                 
0000020      0a00    6574    7473    7375    7265    4031    6472    6373                                                                                                                                                                                                                                                                
          \0  \n   t   e   s   t   u   s   e   r   1   @   r   d   s   c                                                                                                                                                                                                                                                                 
0000040      6f68    6c6f    6f2e    6772    742c    7365    7574    6573                                                                                                                                                                                                                                                                
           h   o   o   l   .   o   r   g   ,   t   e   s   t   u   s   e                                                                                                                                                                                                                                                                 
0000060      3272    7240    7364    6863    6f6f    2e6c    726f    0067                                                                                                                                                                                                                                                                
           r   2   @   r   d   s   c   h   o   o   l   .   o   r   g                                                                                                                                                                                                                                                                     
0000077                                                                                                                                                                                                                                                                                                                                  

$ gam csvkmd users guardians.csv keyfield Student datafield Guardian sync guardians csvdata Guardian

ERROR: line contains NULL byte

from gamadv-xtd3.

ShaunDarkLord avatar ShaunDarkLord commented on July 23, 2024

Hi Ross

It was created by the commandreporter function of SIMS.net (an MIS system used by many UK schools).

from gamadv-xtd3.

ShaunDarkLord avatar ShaunDarkLord commented on July 23, 2024

I adjusted my script to recreate the CSV - It's working now - Thank you!

from gamadv-xtd3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.