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

salesShipmentRepositoryV1 api sql error #3986

Closed
owenhaynes opened this issue Apr 3, 2016 · 5 comments
Closed

salesShipmentRepositoryV1 api sql error #3986

owenhaynes opened this issue Apr 3, 2016 · 5 comments
Labels
bug report Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Progress: needs update

Comments

@owenhaynes
Copy link

Steps to reproduce

  1. using Magento 2.0.4
  2. Call the api at POST /rest/V1/shipment with data

{ "entity": { "orderId": 1, "comments": [{ "comment": "test" }] } }

Expected result

  1. Shipment created

Actual result

{ "message": "Could not save shipment" }

and in the magneto logs

[2016-03-06 18:07:10] main.CRITICAL: Zend_Db_Statement_Exception: Report ID: webapi-56dc71ced11ac; Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'price' in 'where clause', query was: SELECT main_table.* FROM sales_order AS main_table WHERE (price < '10') in /var/www/html/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:194
Stack trace:
#0 /var/www/html/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(Zend_Db_Statement_Exception))
#1 /var/www/html/app/code/Magento/Webapi/Controller/Rest.php(163): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(Zend_Db_Statement_Exception))
#2 /var/www/html/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#3 /var/www/html/lib/internal/Magento/Framework/App/Http.php(115): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#4 /var/www/html/lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#5 /var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#6 {main} [] []

exception.logmain.CRITICAL: Zend_Db_Statement_Exception: Report ID: webapi-56dc71ced11ac; Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'price' in 'where clause', query was: SELECT main_table.* FROM sales_order AS main_table WHERE (price < '10') in /var/www/html/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:194

@NadiyaS NadiyaS self-assigned this Apr 6, 2016
@mujtaba2012
Copy link

@owenhaynes You must mark atleast one item as shipped for the shipment to get created. Have a look here .

@owenhaynes
Copy link
Author

Will give this a shot later, but still unrelated to the mysql error, which is outputted

@piotrekkaminski
Copy link
Contributor

@mbrinton01 can you look into it?

@vkorotun vkorotun removed the CS label Aug 4, 2016
@mbrinton01 mbrinton01 removed their assignment Aug 17, 2016
@NadiyaS NadiyaS removed their assignment Aug 18, 2016
@veloraven veloraven added bug report Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog labels Aug 18, 2016
@mbrinton01
Copy link

Hello @owenhaynes, @mujtaba2012 is correct. You need to specify the item(s) to be in the shipment in your call. Please try the call again using his feedback and let us know if you receive an error.

@veloraven
Copy link
Contributor

According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.

magento-engcom-team pushed a commit that referenced this issue Apr 4, 2019
- fixed MAGETWO-64838 Unable to create order from store front if customer address custom attribute is required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Progress: needs update
Projects
None yet
Development

No branches or pull requests

8 participants