AnsweredAssumed Answered

Failed to add data, unsupported data type.

Question asked by laolai on Aug 23, 2018
Latest reply on Aug 24, 2018 by laolai

I was trying to add a layer from my file geodatabase using Pro SDK. Keep getting "Failed to add data, unsupported data type". I can manually add it to Pro without any issues. Any ideas?

 

Here are my codes:

await QueuedTask.Run(()=>
{
Uri uri = new Uri(sPrjDB + "\\Map\\Map.gdb\\Pipe");
LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map);
});

Outcomes