Import/Export Plugin Service nutzen [ERLEDIGT]

hi, möchte in einem Plugin den Service aus dem Import/Export Plugin nutzen. mit folgendem Code importiere ich mir eine Datei:

            //get file size
            $inputFile = Shopware()->DocPath() . $csvFilePath;

            $profileId = Shopware()->Db()->fetchOne("SELECT id FROM s_import_export_profile WHERE name=?",array($profileName));

            $unprocessedFiles = [];
            $postData = [
                'type' => 'import',
                'profileId' => (int) $profileId,
                'importFile' => $inputFile,
                'sessionId' => $sessionId,
                'limit' => [],
                'format' => pathinfo($inputFile, PATHINFO_EXTENSION)
            ];

            /** @var ImportService $importService */
            $importService = SHopware()->Container()->get('swag_import_export.import_service');

            try {
                $resultData = $importService->import($postData, $unprocessedFiles, $inputFile);
                $result =[
                    'success' => true,
                    'data' => $resultData,
                ];
            } catch (\Exception $e) {
                $result = [
                    'success' => false,
                    'msg' => $e->getMessage(),
                ];
            }

Problem hat sich erledigt. Fehler lag woanders.