The error that you are seeing is due to a bug, which originated in R2016a. This issue makes bus-type parameter values not imported correctly when using SLDD.
The bug has been fixed in R2018b, so upgrading your release would fix the issue.
As a workaround if upgrading is not possible, you can do "createComponentAsModel" without saving the data to the Data Dictionary, and then perform the operation again, this time using the "DataDictionary" property:
importerObj = arxml.importer('myARXMLfile.arxml');
createComponentAsModel(importerObj, '/ComponentTypes/myComponent', 'CreateInternalBehavior', true);
bdclose
createComponentAsModel(importerObj, '/ComponentTypes/myComponent', 'CreateInternalBehavior', true, 'DataDictionary', 'myDictionary.sldd');
Best Answer