Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento - Dataflow error - Path "path/filename.csv" is not available and cannot be used

Tags:

magento

I'm receiving an error in Magento when trying to use the Dataflow export feature.

Path "path/filename.csv" is not available and cannot be used.

This feature used to work perfectly fine before, so I don't know what could be going wrong. I've checked permissions on the folder and files and they are fine (777). In addition, I've tried deleting the existing file or trying different path names and still no dice.

After some more testing, it seems that this is only occurring with a path that I have personally created. When using a path created by Magento such as var/export, it works perfectly fine.

like image 594
Nick Avatar asked Feb 25 '23 07:02

Nick


1 Answers

Not need override Mage_ImportExport_Helper_Data::getLocalValidPaths()

Just need add to config.xml at self module

<config>
<default>
    <general>
        <file>
            <importexport_local_valid_paths>
                <available>
                    <my_new_path_to_csv>var/import/*/*.csv</my_new_path_to_csv>
                </available>
            </importexport_local_valid_paths>
        </file>
    </general>
</default>
</config>

This issue must be resolve this way.

like image 139
Kirby Avatar answered Feb 26 '23 20:02

Kirby