Error when running app locally from Mendix Studio Pro

0
I am using Mendix Studio Pro 8.14.1. When attempting to run my app locally, I get the following error: System.Exception: Type (Not set) is not supported    at Mendix.Modeler.Integration.EdmPropertyBuilder.ConvertToEdmType(DataType type) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\EdmPropertyBuilder.cs:line 56    at Mendix.Modeler.Integration.EdmPropertyBuilder.BuildProperty(IDataMember dataMember, DataType dataType) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\EdmPropertyBuilder.cs:line 18    at Mendix.Modeler.Integration.EdmEntityTypeBuilder.<GetPropertyElements>d__6.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\EdmEntityTypeBuilder.cs:line 84    at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)    at Mendix.Modeler.Integration.EdmEntityTypeBuilder.Build(IPublishedOdataResource publishedODataResource, IList`1 associationSets) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\EdmEntityTypeBuilder.cs:line 39    at Mendix.Modeler.Integration.ODataMetadataBuilder.<GetEntityTypeElements>d__9.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\ODataMetadataBuilder.cs:line 81    at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)    at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)    at Mendix.Modeler.Integration.ODataMetadataBuilder.GetSchemaElement() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\ODataMetadataBuilder.cs:line 75    at Mendix.Modeler.Integration.ODataMetadataBuilder.GetDataServicesElement() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\ODataMetadataBuilder.cs:line 58    at Mendix.Modeler.Integration.ODataMetadataBuilder.GetEdmxElement() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\ODataMetadataBuilder.cs:line 47    at Mendix.Modeler.Integration.ODataMetadataBuilder.Build() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\OData\ODataMetadataBuilder.cs:line 39    at Mendix.Modeler.Integration.Dependencies.PublishedOdataServicesDependencyBuilder.GetContracts(IPublishedOdataService service) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\Dependencies\PublishedOdataServicesDependencyBuilder.cs:line 38    at Mendix.Modeler.Integration.Dependencies.PublishedOdataServicesDependencyBuilder.<>c__DisplayClass0_0.<Build>b__0(IPublishedOdataService service) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\Dependencies\PublishedOdataServicesDependencyBuilder.cs:line 18    at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()    at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)    at Mendix.Modeler.Integration.Dependencies.ServiceDependenciesBuilder.Build(IProject project) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Services\Dependencies\ServiceDependenciesBuilder.cs:line 23    at Mendix.Modeler.Integration.DependenciesDeploymentWorker.GenerateDependenciesJson(IProject project) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Integration\Plugin\DependenciesDeploymentWorker.cs:line 42    at Mendix.Modeler.Deployment.DeploymentProcessBuilder.<>c__DisplayClass12_0.<AddBuildStepsForPhase>b__0(IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\DeploymentProcessBuilder.cs:line 124    at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.CatchDiskException(Action action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 28    at Mendix.Modeler.Deployment.FileIOExceptionHandlingProcess.<>c__DisplayClass1_0.<AddStep>b__0(IProgressInfo info) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Deployment\FileIOExceptionHandlingProcess.cs:line 19    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.RunStep(Step step) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 99    at Mendix.Modeler.UIFramework.Progress.ProcessRunner.OnDoWork(Object sender, DoWorkEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Progress\ProcessRunner.cs:line 72    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
asked
1 answers
0

For anyone running into this problem in the future: I figured out the cause of this problem (at least in my case): check any Odata services for exposed attributes where the Type is empty (instead of string/integer/etc). Remove the offending attribute and if needed add it back in.

 

I had been fiddling with some attributes (renaming an old attribute and creating a new attribute with the same name of the old one) and apparently that caused some problems with the Odata service the entity was used in.

 

Hope this helps someone!

answered