Closed Onariaginosa closed 3 years ago
I fixed the optimization_parameters export. But now the export functionality in my local machine is very suspicious. Sometimes it exports properly, but other times it redirects me to the site attached: And throws this error in my console: But when I temporarily changed the code to what they requested, it doesn't export anything or show any signs of exporting.
The 400 status code suggests that our code is returning it—typically a server-level issue is a 5xx status code. So we can try search the sequence for /export-to-excel for cases when a 400 is returned.
Second possibility: keep the dev tools open while trying this and look at the payload just in case there is some information that may be useful.
It turns out that the issue was in the demo objects. They were structured slightly differently than workbooks that we parse ourselves. Additional sheets usually have a section for data, errors, and warnings, but the demos didn't have that wrapper. They just contained the data directly.
I fixed the optimization_parameters sheet export, as well as the two column sheet exports. Just need to add optimization diagnostics, and export functionality will be fully supported!
Looks like we are on our way here, just waiting for those remaining sheets mentioned above.
Completed export to excel for all additional sheets! Exported sheets re-upload with no warnings/errors! See pull request #920
Verified by @ahmad00m as fulfilled.
Export to excel is not working for
optimization_parameters
,production_rates
,degradation_rates
,threshold_b
sheets