Austin-Mazz / OmNom-OCR

Apache License 2.0
0 stars 0 forks source link

4 Page Document is Not Able to Be OCRed #5

Closed Austin-Mazz closed 3 years ago

Austin-Mazz commented 3 years ago

Error: [ERROR] ClientError: An error occurred (ValidationException) when calling the PutItem operation: Empty attribute name Traceback (most recent call last): File "/var/task/lambda_function.py", line 127, in lambda_handler return processRequest(request) File "/var/task/lambda_function.py", line 89, in processRequest opg.run() File "/opt/python/og.py", line 203, in run self.saveTable(self.documentId, page, p) File "/opt/python/og.py", line 115, in saveTable self.ddb_table.put_item(Item=jsonItem) File "/var/runtime/boto3/resources/factory.py", line 520, in do_action response = action(self, *args, *kwargs) File "/var/runtime/boto3/resources/action.py", line 83, in call response = getattr(parent.meta.client, operation_name)(args, **params) File "/var/runtime/botocore/client.py", line 386, in _api_call return self._make_api_call(operation_name, kwargs) File "/var/runtime/botocore/client.py", line 705, in _make_api_call raise error_class(parsed_response, operation_name)

#1397455082_COI.pdf

CLarge-EZAC commented 3 years ago

I was able to repair this by validating all column headers and cell values are not blank before processing.