Export to csv showing undefined index UiComponentFactory.php
<!-- <selectionsColumn name="ids"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="resizeEnabled" xsi:type="boolean">false</item> <item name="resizeDefaultWidth" xsi:type="string">55</item> <item name="indexField" xsi:type="string">id</item> </item> </argument> </selectionsColumn> -->
You just need to remove comment form above code. Because UiComponentFactory.php take Data of array from it and pass this data to it's parent
public function __construct(
ObjectManagerInterface $objectManager,
ManagerInterface $componentManager,
InterpreterInterface $argumentInterpreter,
ContextFactory $contextFactory,
array $data = [],
array $componentChildFactories = [],
DataInterface $definitionData = null,
DataInterfaceFactory $configFactory = null
) {
$this->objectManager = $objectManager;
$this->componentManager = $componentManager;
$this->argumentInterpreter = $argumentInterpreter;
$this->contextFactory = $contextFactory;
$this->componentChildFactories = $componentChildFactories;
$this->configFactory = $configFactory ?: $this->objectManager->get(DataInterfaceFactory::class);
parent::__construct($data);
$this->definitionData = $definitionData ?:
$this->objectManager->get(DataInterface::class);
}
And it's parent class
Magento\Framework\DataObject
data set in SetData function