{"action":"created","issue":{"url":"https://api.github.com/repos/randym/axlsx/issues/303","labels_url":"https://api.github.com/repos/randym/axlsx/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/randym/axlsx/issues/303/comments","events_url":"https://api.github.com/repos/randym/axlsx/issues/303/events","html_url":"https://github.com/randym/axlsx/issues/303","id":29349252,"number":303,"title":"Sporadically generating corrupt xlsx files","user":{"login":"armyofgnomes","id":40392,"avatar_url":"https://avatars.githubusercontent.com/u/40392?v=3","gravatar_id":"","url":"https://api.github.com/users/armyofgnomes","html_url":"https://github.com/armyofgnomes","followers_url":"https://api.github.com/users/armyofgnomes/followers","following_url":"https://api.github.com/users/armyofgnomes/following{/other_user}","gists_url":"https://api.github.com/users/armyofgnomes/gists{/gist_id}","starred_url":"https://api.github.com/users/armyofgnomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armyofgnomes/subscriptions","organizations_url":"https://api.github.com/users/armyofgnomes/orgs","repos_url":"https://api.github.com/users/armyofgnomes/repos","events_url":"https://api.github.com/users/armyofgnomes/events{/privacy}","received_events_url":"https://api.github.com/users/armyofgnomes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-03-13T13:18:19Z","updated_at":"2015-11-11T08:55:04Z","closed_at":null,"body":"We have spreadsheets being created from a background job with sidekiq. Sometimes, the reports generated will be corrupt. They are usually around 700-1000 rows in length and have one logo at the top of the xlsx file. \r\n\r\nThe corrupt ones are usually missing the image, so it almost seems like it's disappearing from the package, possibly when it's being zipped up. The image is local to the app and not on S3 or anything, so it doesn't seem like it's a network issue. \r\n\r\nThe report also contains an external link on each row and the corrupted ones usually are missing links somewhere near the bottom of the spreadsheet.\r\n\r\nI now have it throwing errors when the reports don't validate and while there aren't many, some of the ones that do get thrown are this:\r\n\r\n Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId644' is not a valid value of the atomic type 'xs:ID'., Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId645' is not a valid value of the atomic type 'xs:ID'., Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId646' is not a valid value of the atomic type 'xs:ID'., Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId647' is not a valid value of the atomic type 'xs:ID'., Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId648' is not a valid value of the atomic type 'xs:ID'., Element '{http://schemas.openxmlformats.org/package/2006/relationships}Relationship', attribute 'Id': 'rId649' is not a valid value of the atomic type 'xs:ID'.\r\n\r\nI've been trying to debug it, but it's very hard to reproduce. Usually when the xlsx is generated manually, it then ends up not being corrupted and validates fine."},"comment":{"url":"https://api.github.com/repos/randym/axlsx/issues/comments/155707798","html_url":"https://github.com/randym/axlsx/issues/303#issuecomment-155707798","issue_url":"https://api.github.com/repos/randym/axlsx/issues/303","id":155707798,"user":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T08:55:04Z","updated_at":"2015-11-11T08:55:04Z","body":"Also having this issue! Works from IRB but not when using sidekiq."}}