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

error when get all rows from file #188

Closed
PKostya opened this issue Feb 27, 2018 · 4 comments
Closed

error when get all rows from file #188

PKostya opened this issue Feb 27, 2018 · 4 comments

Comments

@PKostya
Copy link

PKostya commented Feb 27, 2018

when i try to read the file i get the following error

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/360EntSecGroup-Skylar/excelize.(*xlsxC).getValueFrom(0xc08dc65c38, 0xc042088540, 0xc04208a190, 0xc09826c03c, 0x1, 0x0, 0x2)
        C:/Users/adm_Palyanichka/go/src/github.com/360EntSecGroup-Skylar/excelize/rows.go:165 +0x23d
github.com/360EntSecGroup-Skylar/excelize.(*File).GetRows(0xc042088540, 0xc04205e6f8, 0x7, 0x8, 0x0, 0x0)
        C:/Users/adm_Palyanichka/go/src/github.com/360EntSecGroup-Skylar/excelize/rows.go:60 +0x7b8
main.writeFile(0xc04204b440, 0xc04205c120, 0x12)
        C:/Users/adm_Palyanichka/go/src/carmoney.com/xlsx-converter/xlsxConverter.go:26 +0x238
main.main()
        C:/Users/adm_Palyanichka/go/src/carmoney.com/xlsx-converter/xlsxConverter.go:88 +0x210
exit status 2

Output of go version:

1.10
@xuri
Copy link
Member

xuri commented Feb 28, 2018

Thanks for your issue. Please provides file attachments if you can.

@PKostya
Copy link
Author

PKostya commented Mar 1, 2018

Hi
tmp.xlsx

@xuri
Copy link
Member

xuri commented Mar 2, 2018

I have found that the file name of shared string table in your attachment is special: xl/SharedStrings.xml (standard filename is xl/sharedStrings.xml) and I have fixed it now, Could you tell me which version of Excel that created this file?

@PKostya
Copy link
Author

PKostya commented Mar 2, 2018

This file was created by 1C software (very controversial software)

@xuri xuri closed this as completed Sep 2, 2018
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

2 participants