Comments (8)
<c r="A1" t="inlineStr">
<is>
<t>PartNumber</t>
</is>
</c>
This uses an inline string format I haven't seen before, documented here:
There's some esoteric stuff in here, but I'll make an update soon to deal with this plain text at least.
from xsv.
just noticed that just changing something in that file and saving it again is already enough in order to get the file parse correctly. But what could be wrong with that file then? in excel it is showing all correct?
from xsv.
FYI: I found the root cause why this issue came up for me. it was related to the way the file was created. as mentioned here:
Paxa/fast_excel#63 (comment)
But I didn't have this issue with the previous xlsx-parser I used for importing. So I think this is something that could be fixed in this gem as well.
(For reference. the previous xlsx parser I used for reading excel-files was creek. But that gem has some pending issues that didn't get resolved why I had to switch:
from xsv.
@crepon-philipp could you test against master and see if this solves your issue?
from xsv.
@martijn Hmm, Looking still the same
from xsv.
Weird.. are you sure you are using the master branch from GitHub? I have not yet released a new version.
This is what I get:
irb(main):001:0> w = Xsv::Workbook.open("formatting_issue.xlsx")
irb(main):002:0> w.sheets[0][0]
=> ["PartNumber", "Brand", "SubBrand", "PopulationStatus", "PartType", "UniversalPart", "BasePartNumber", "Gtin", "GtinQualifierCode", "GtinQualifierName", "QuantitySize", "QuantitySizeUom", "ContainerType", "QuantityPerApplication", "QuantityPerApplicationUom", "QuantityPerApplicationQualifier", "EffectiveDate", "AvailableDate", "MinimumOrderQuantity", "MinimumOrderQuantityUom", "PartGroup", "PartSubGroup", "PartCategoryCode", "Unspsc", "VmrsCode", "Position", "DefaultMfrLabel", "DefaultApplicationQty", "Tags"]
irb(main):003:0> w.sheets[0][1]
=> ["P76550M-2", "1234", "1234", "Active (Publish to receiver database)", "Fuel Pump Module Assembly", 0, nil, "00019826103970", "UP", "UPC", 1, "EA", "BX", "1", "EA", "MAX", nil, "2019-08-23", 1, "EA", nil, nil, "550303", "40151532", "044003258", nil, nil, 1, nil]
from xsv.
My bad. Using master it is now working as expected
from xsv.
Great. I completed the support and released Xsv 0.3.18 with these changes.
Thanks for using Xsv!
from xsv.
Related Issues (20)
- Xsv::Workbook.open does not accept Tempfile HOT 3
- #<NoMethodError: undefined method `get_input_stream' for nil:NilClass> HOT 2
- decimal records are not processed correctly HOT 2
- Parse empty file HOT 1
- test
- test
- Encoding::UndefinedConversionError when parsing non-ASCII character HOT 4
- NameError: uninitialized constant Xsv in Sidekiq Worker HOT 2
- hash mode as an argument or parse_headers! can return self HOT 1
- :symbolize_names option for hash mode HOT 5
- If PhoneticProperties data is included, NoMethodError (undefined method `+' for nil:NilClas) will be raised. HOT 3
- 1.0.2 NoMethodError: undefined method `scan' for nil:NilClass HOT 6
- Enhance parsing by headers HOT 3
- "Encountered unknown column type d" HOT 1
- Decimal values with % HOT 1
- NoMethodError: undefined method `[]' for nil:NilClass HOT 5
- Wrongly parsed hash HOT 5
- Generic HTML character entities not supported
- Breakage on Excel files without cell column names HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xsv.