Line contains NULL byte

236 views
Skip to first unread message

Eric Krebill

unread,
Jan 8, 2016, 12:47:39 PM1/8/16
to Google Apps Manager
Here is the command I'm getting along with the error it produces.  This is killing me so if anyone has any ideas, I'd greatly appreciate it.

C:\gam>gam csv SPED_to_GAM.csv gam update user ~email password ~password >> SPEDStudent_Password_Log.txt
Traceback (most recent call last):
  File "<string>", line 9048, in <module>
  File "C:\Users\jlee\Documents\GitHub\GAM\src\build\gam\out00-PYZ.pyz\csv", line 107, in next
  File "C:\Users\jlee\Documents\GitHub\GAM\src\build\gam\out00-PYZ.pyz\csv", line 90, in fieldnames
_csv.Error: line contains NULL byte

Ross Scroggs

unread,
Jan 8, 2016, 1:57:26 PM1/8/16
to google-ap...@googlegroups.com
Eric,

Does SPED_to_GAM.cv have any columns other than email and password? My guess is that there other columns with Unicode data which is tripping up GAM.

Can you confirm?

Ross

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/58e8a903-c0d1-412d-8904-fe2d82bf9422%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Eric Krebill

unread,
Jan 8, 2016, 3:22:26 PM1/8/16
to Google Apps Manager
Doesn't matter what program I open the csv file in, it doesn't show any additional data.  I've opened the file in Notepad, Notepad++, and several other apps, all showing the file as not having any null bytes.  The csv file is created by PowerShell if that helps at all.

Eric Krebill

unread,
Jan 8, 2016, 3:23:48 PM1/8/16
to Google Apps Manager
Also, I just updated GAM and reset all the permissions today, not that permissions would cause this, but wanted you to know I was on the latest version of GAM as of today.

Ross Scroggs

unread,
Jan 8, 2016, 3:31:00 PM1/8/16
to google-ap...@googlegroups.com
Eric,

All of those programs know how to interpret Unicode. Make a copy of the file, strip out all of the data leaving just the header row.
Send that file as an attachment.


Ross

On Fri, Jan 8, 2016 at 12:23 PM, Eric Krebill <ekre...@maisd.com> wrote:
Also, I just updated GAM and reset all the permissions today, not that permissions would cause this, but wanted you to know I was on the latest version of GAM as of today.

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--

Eric Krebill

unread,
Jan 8, 2016, 3:33:30 PM1/8/16
to Google Apps Manager
File attached.
SPED_to_GAM.csv

Ross Scroggs

unread,
Jan 8, 2016, 3:34:01 PM1/8/16
to google-ap...@googlegroups.com
Eric,

Here is a PowerShell script to get a hex dump: http://windowsitpro.com/powershell/get-hex-dumps-files-powershell

Ross
--
Reply all
Reply to author
Forward
0 new messages