I'm trying to create a Virtual Table using the SQL Server connector in a Power Apps solution.
If I create the table without environment variables, it works in DEV environment connected to DEV SQL DB, but when deployed to ACC and PRD where I aim to connect to PRD SQL DB, it fails still connecting to the DEV SQL DB. Manually changing the Virtual Connector Data Source also didn't work.
So I'm trying to use the environment variable option when creating a virtual table to pass the SQL Server and Database name dynamically. However if the option is enabled, I'm blocked with table creation with the following error:
Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293 ----> InnerException : Microsoft.OData.ODataException: One or more parameters of the operation 'msdyn_get_matching_datasource' are missing from the request payload. The missing parameters are: connection_id. at Microsoft.OData.ODataParameterReaderCore.EnterScope(ODataParameterReaderState state, String name, Object value) at Microsoft.OData.JsonLight.ODataJsonLightParameterDeserializer.ReadNextParameter(PropertyAndAnnotationCollector propertyAndAnnotationCollector) at Microsoft.OData.ODataParameterReaderCore.ReadImplementation() at Microsoft.OData.ODataParameterReaderCore.<>c.<Read>b__18_0(ODataParameterReaderCore thisParam) at Microsoft.OData.ODataParameterReaderCore.InterceptException[T](Func`2 action) at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext) at Microsoft.AspNet.OData.Formatter.ODataInputFormatterHelper.ReadFromStream(Type type, Object defaultValue, IEdmModel model, ODataVersion version, Uri baseAddress, IWebApiRequestMessage internalRequest, Func`1 getODataRequestMessage, Func`2 getEdmTypeDeserializer, Func`2 getODataPayloadDeserializer, Func`1 getODataDeserializerContext, Action`1 registerForDisposeAction, Action`1 logErrorAction).