C++error,I want to eraze this error

Running results:
OpenCV(4.5.0) Error: Parsing error (Missing or invalid SVM type) in cv::ml::SVMImpl::read_params, file C:\build\master_winpack-build-win64-vc15\opencv\modules\ml\src\svm.cpp, line 2206
OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.5.0) Error: Parsing error (Missing or invalid SVM type) in cv::ml::SVMImpl::read_params, file C:\build\master_winpack-build-win64-vc15\opencv\modules\ml\src\svm.cpp, line 2206

false: svm = SVM::load(trainDataFolderPath + “\svm.xml”);

we cannot help here without seing your actual code / data.

please edit & add:

* the first few lines of your xml/yml file
* few lines of code how you try to read it
* few lines of code how you try to save it

also, please rather try with recent 4.10, 4.5 is many years old …
ty.

and btw:

NEVER use single backslashes in path names …
(go & lookup why …)