Zend certified PHP/Magento developer

Magento 2 In Stock Out of Stock not changing CSV

I am really stuck on this issue – I have a Magento 2.2.2 store and trying to use default import/export and also other extensions for importing and updating stock and qty.

However I have found that after the csv is imported and run the in stock and out of stock values are not changing. other values in the csv are updating correctly.

I have stores configuration set Manage Stock to Yes and all the products I have checked also have Manage Stock to Yes

Backorders are also enabled.

I need to set the is_in_stock in database to In Stock if qty is greater than 0 in the database the value is 1 in the csv file

and is_in_stock needs to be Out of Stock csv value (0) in database if the qty is 0

As I mentioned the csv is setup correctly and all values are imported however only the is_in_stock is not changing –

I can change it when importing directly into database but this is only for testing purpose.

I have checked other posts but nothing is helping me – also I have seen in past this has been same problem for others and a fix is suppose to have been created But I can not find it or know what to do. What I am trying to achieve is simple and should be default behaviour.

Any help will be most apprecaited

thanks