Giter VIP home page Giter VIP logo

microsoft / powerapps-samples Goto Github PK

View Code? Open in Web Editor NEW
1.4K 116.0 1.6K 493.35 MB

Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.

Home Page: https://docs.microsoft.com/powerapps

License: MIT License

C# 99.72% CSS 0.01% JavaScript 0.13% HTML 0.01% XSLT 0.01% TypeScript 0.07% PowerShell 0.06% ASP.NET 0.01% Jupyter Notebook 0.01% Python 0.01%
dataverse dynamics-365 dynamics365 microsoft-dataverse pcf-controls power-apps power-platform powerapps powerappscomponentframework powerplatform

powerapps-samples's Introduction

Power Apps Samples

Welcome to the samples repo for Power Apps. The repo contains sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.

Resources

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

powerapps-samples's People

Contributors

aroudaki avatar dependabot[bot] avatar fayums avatar geoffguo-git avatar gonara avatar gregough avatar jesseparsons avatar jimdaly avatar joefernandezms avatar kavehkazms avatar kumarvivek avatar lesyk avatar mattb-msft avatar mattp123 avatar meki-msft avatar mohsinonxrm avatar nkrb avatar norliu avatar phecke avatar rishumen avatar rohitbhoopalam avatar ruimamicrosoft avatar rutrotte avatar scottdurow avatar scottwoodallmsft avatar sokashya avatar supernova-eng avatar susikka avatar swapnilkmahajanms avatar yiwl0612 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerapps-samples's Issues

PowerApps Backup Environment task not working

Hi

While testing the backup environment task of PowerApps Build Tool, i got an error : The term 'New-CrmBackupInfo' is not recognized as the name of a cmdlet.

I create a pipeline with "PowerApps Tool Installer task" and "PowerApps Backup Environment task" and it did not work for me.

Can someone help me with that please ?

Thank you.

Error

Azureplugin is empty

Howzit, I noticed this plugin is empty.
https://github.com/microsoft/PowerApps-Samples/blob/master/cds/orgsvc/C%23/Azureplugin/Azureplugin/Program.cs

I'm guessing its the same as this one, I could do a PR but wanted to check with you since there is a lot of other work in this repo regarding class names, refactoring and the whole CDS movement.
https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/write-custom-azure-aware-plugin

Thought I'd provide some feedback.

Thanks for the cool documentation by the way.๐Ÿ‘

Multiple file upload

Hi

I'm looking for a multiple file upload control. Is there any plan to develop one for PCF?

Thanks

Issue while importing a solution which contains PowerApps: CanvasApp import: FAILURE: One or more errors occurred

I'm using WorkwithSolutions sample to import/export solutions. If I'm authenticating CrmServiceClient using username and password (AuthType=O365), then everything is working as expected. But if I'm using ClientID and ClientSecret (AuthType=ClientSecret), then an exception is thrown when the solution contains a PowerApp with the following errors:

Message: CanvasApp import: FAILURE: One or more errors occurred.
Message: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph

serviceClient.Execute(impSolReq); //This line throws the exception

I'm using application user which I created on Dynamics 365. That application user's app ID is clientID of an AD app which I created. I have assigned System Customizer role to the application user.
The ID which is being shown in the error message is that of Azure AD Object ID property of the application user.

Note: I'm able to import/export a solution if it contains flow. I'm able to only export a solution if it contains a PowerApp, but not able to import the solution. I've tried on both managed and unmanaged solutions, not working on both the types.

Is this a bug, or am I missing anything here?

Here is the stack trace:

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : ************ FaultException1 - ImportSolution : Execute (ImportSolution) request to CRM from IOrganizationService |=> CanvasApp import: FAILURE: One or more errors occurred. Source : mscorlib Method : HandleReturnMessage Date : 01-04-2020 Time : 12:06:21 Error : Message: CanvasApp import: FAILURE: One or more errors occurred. ErrorCode: -2147188704 Trace: Error Details : ApiExceptionSourceKey : Plugin/Microsoft.Crm.WebServices.ImportXmlService ApiOriginalExceptionKey : Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: CanvasApp import: FAILURE: One or more errors occurred. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: CanvasApp import: FAILURE: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: . at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem() --- End of inner exception stack trace --- at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem() at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String& curPath, ImportHandler& ihForCurrentPath, CounterList listCounters)
at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImportInternal(Boolean withSolutionManifest)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapableInternal(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipRibbonMetadataProcessing, LayerDesiredOrder layerDesiredOrder) at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipRibbonMetadataProcessing, LayerDesiredOrder layerDesiredOrder) --- End of inner exception stack trace --- at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.<RunStep>b__0() ApiStepKey : 1b830950-e106-4ee1-b3fd-d348cb65dc8d ApiDepthKey : 1 ApiActivityIdKey : db6f2820-6979-4279-80c3-ef4e9bea4458 ApiPluginSolutionNameKey : System ApiStepSolutionNameKey : System ApiExceptionCategory : SystemFailure ApiExceptionMesageName : ImportGenericEntitiesError ApiExceptionHttpStatusCode : 500 0 : System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: . at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem() ---> (Inner Exception #0) Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: . at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()<---

HasRetried : True
RetryExecutionStatus : Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus

Stack Trace : Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.<>c__DisplayClass40_0.b__0()
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient1.ExecuteAction[TResult](Func1 action)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)

Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: CanvasApp import: FAILURE: One or more errors occurred.
ErrorCode: -2147188704
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147188704
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

Inner Exception Level 2 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportCanvasAppSolutionDefinition>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportAppToPowerAppsService>d__14.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem()
---> (Inner Exception #0) Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult`1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()<---
: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6568AD27
ErrorCode: -2147220970
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147220970
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

Inner Exception Level 3 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
ErrorCode: -2147015854
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147015854
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : [TerminalFailure] Failed to Execute Command - ImportSolution : RequestID=bd4c7fd2-3ca5-4e0d-bc86-7e4198ac7cac : Execute (ImportSolution) request to CRM from IOrganizationService duration=00:00:06.8563372 ExceptionMessage = CanvasApp import: FAILURE: One or more errors occurred.
Source : mscorlib
Method : HandleReturnMessage
Date : 01-04-2020
Time : 12:06:21
Error : Message: CanvasApp import: FAILURE: One or more errors occurred.
ErrorCode: -2147188704
Trace:
Error Details :
ApiExceptionSourceKey : Plugin/Microsoft.Crm.WebServices.ImportXmlService
ApiOriginalExceptionKey : Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: CanvasApp import: FAILURE: One or more errors occurred. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: CanvasApp import: FAILURE: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportCanvasAppSolutionDefinition>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportAppToPowerAppsService>d__14.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem()
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem()
at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String& curPath, ImportHandler& ihForCurrentPath, CounterList listCounters) at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities) at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities) at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport() at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImportInternal(Boolean withSolutionManifest) at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapableInternal(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipRibbonMetadataProcessing, LayerDesiredOrder layerDesiredOrder)
at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipRibbonMetadataProcessing, LayerDesiredOrder layerDesiredOrder)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.b__0()
ApiStepKey : 1b830950-e106-4ee1-b3fd-d348cb65dc8d
ApiDepthKey : 1
ApiActivityIdKey : db6f2820-6979-4279-80c3-ef4e9bea4458
ApiPluginSolutionNameKey : System
ApiStepSolutionNameKey : System
ApiExceptionCategory : SystemFailure
ApiExceptionMesageName : ImportGenericEntitiesError
ApiExceptionHttpStatusCode : 500
0 : System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportCanvasAppSolutionDefinition>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportAppToPowerAppsService>d__14.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem()
---> (Inner Exception #0) Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult`1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()<---

HasRetried : True
RetryExecutionStatus : Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus

Stack Trace : Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.<>c__DisplayClass40_0.b__0()
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient1.ExecuteAction[TResult](Func1 action)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)

Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: CanvasApp import: FAILURE: One or more errors occurred.
ErrorCode: -2147188704
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147188704
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

Inner Exception Level 2 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: System.AggregateException: One or more errors occurred. ---> Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult1 powerAppsServiceResult) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportCanvasAppSolutionDefinition>d__23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.<ImportAppToPowerAppsService>d__14.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Crm.Tools.ImportExportPublish.ImportCanvasAppHandler.ImportItem()
---> (Inner Exception #0) Microsoft.Crm.CrmException: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
at Microsoft.Crm.ObjectModel.PowerAppsValidation.PowerAppsServiceResult[T](ResourceResult`1 powerAppsServiceResult)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Crm.Tools.Core.ImportExportPublish.ImportCanvasAppHandlerInternal.d__14.MoveNext()<---
: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6568AD27
ErrorCode: -2147220970
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147220970
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

Inner Exception Level 3 :
==OrganizationServiceFault Info=======================================================================================
Error : Message: Code: GraphUserDetailNotFound Message: The user '385bc191-1bf9-45ec-8dca-ca541c3e7796' was not found in Graph. Client Request Id: .
ErrorCode: -2147015854
Trace:
Time : 01-04-2020 06:36:20
ErrorCode : -2147015854
Date : 01-04-2020
Time : 12:06:21
Trace : Not Provided

GlobalDiscovery sample broken

The sample has a number of issues:

  1. Failed to load using Visual Studio 2019, had to use VS 2017
  2. There was a issue with the NugGet package where I had to click some Restore button to avoid build issues with VS 2017
  3. The sample was recently updated here to replace the Authority URL.
    Old value: https://login.windows.net/common
    New value: https://login.microsoftonline.com

Sample wouldn't run until I switched back to the old value

  1. This sample really ought to be updated to use the newer version of ADAL, then remove all the App.Config since this sample isn't using CrmServiceClient anyway.

Path collision when cloning the repo on windows

Hello Microsoft,

when I cloned this repository I got following message:

warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests.sln'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests.sln'
'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests/ExecuteMultipleRequests.csproj'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests/ExecutemultipleRequests.csproj'
'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests/packages.config'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests/packages.config'
'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests/Properties/AssemblyInfo.cs'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests/Properties/AssemblyInfo.cs'
'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests/SampleMethod.cs'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests/SampleMethod.cs'
'cds/orgsvc/C#/ExecuteMultipleRequests/ExecuteMultipleRequests/SampleProgram.cs'
'cds/orgsvc/C#/ExecutemultipleRequests/ExecutemultipleRequests/SampleProgram.cs'
'cds/orgsvc/C#/RetrieveFieldPermission/RetrieveFieldPermission/SampleMEthod.cs'
'cds/orgsvc/C#/RetrieveFieldPermission/RetrieveFieldPermission/SampleMethod.cs'

Please review these files and clean up your repository.

Error packaging PCF Sample : Project Reference with output path 0, is not a valid PowerApps Component Type

I'm getting an error on the last step of packaging the samples - on the 'msbuild' step I'm getting:
....\microsoft.powerapps.msbuild.solution\1.1.6\build\Microsoft.PowerApps.MSBuild.
Solution.targets(98,5): error : Project Reference with output path 0, is not a valid PowerApps Component Type [...\TS_MapControl\solutions\solutions.cdsproj]

Tried on MapControl, IframeControl & ImageUploadControl, both on msbuild 15.* and 16.* tool chain

PowerAppExportSolution timeout

We have a daily scheduled pipeline that exports a small PowerApp solution, 9 out of 10 times the step fails (timeout). The following error occurs:

VERBOSE: InProcBindingRedirect: 3 - looking to resolve assembly: Microsoft.Uev.Commands
##[debug]Connected to org: https://axtensionsb2.crm4.dynamics.com/ as user: ***, actual endpoint:
##[debug]Export-Solution: SolutionName: AXtensionSoftwareHub, Managed: False, ExportAutoNumberingSettings: False, ExportCalendarSettings: False, ExportCustomizationSettings: False, ExportEmailTrackingSettings: False, ExportExternalApplications: False, ExportGeneralSettings: False, ExportIsvConfig: False, ExportMarketingSettings: False, ExportOutlookSynchronizationSettings: False, ExportRelationshipRoles: False, ExportSales: False, SolutionOutputFile: D:\a\1\a\output.zip
##[debug]Re-evaluate condition on job cancellation for step: 'PowerAppsExportSolution'.
VERBOSE: InProcBindingRedirect: 4 - looking to resolve assembly: System.Management.Automation.resources,
Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
VERBOSE: InProcBindingRedirect: 5 - looking to resolve assembly: Microsoft.WSMan.Management.resources, Version=3.0.0.0,
Culture=en-US, PublicKeyToken=31bf3856ad364e35
##[error]The operation was canceled.
##[debug]System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.PowerShell3Handler.RunAsync()
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync()
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
Finishing: PowerAppsExportSolution

When the step does go right, it only takes around 30 seconds. The extra timeout that is set recently from 5 minutes to 60 minutes does not solved this problem. Please have a look to find out why it freezes most of the time.

PowerApps Deploy Package error

Hi,

This error comes up when executing the PowerApps Deploy Package task, after successful run of PowerApps Tool Installer task in a release pipeline. Is there any dependency missing perhaps?

2019-09-26T19:56:28.1642579Z ##[section]Starting: PowerApps Deploy Package
2019-09-26T19:56:28.1762168Z ==============================================================================
2019-09-26T19:56:28.1762249Z Task : PowerApps Deploy Package
2019-09-26T19:56:28.1762318Z Description : PowerApps Deploy Package
2019-09-26T19:56:28.1762364Z Version : 0.1.3
2019-09-26T19:56:28.1762431Z Author : Microsoft
2019-09-26T19:56:28.1762483Z Help : More Info
2019-09-26T19:56:28.1762536Z ==============================================================================
2019-09-26T19:56:29.3968510Z ##[error]Could not load file or assembly 'file:///D:\a_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.3_tools\PA.BuildTools\Microsoft.Xrm.Tooling.PackageDeployment.Powershell\3.3.0.833\Microsoft.Xrm.Tooling.PackageDeployment.Powershell\Microsoft.Xrm.Tooling.PackageDeployment.Powershell.dll' or one of its dependencies. The system cannot find the file specified.
2019-09-26T19:56:29.4198388Z ##[section]Finishing: PowerApps Deploy Package

PowerPlatformExportSolution task error "You cannot call a method on a null-valued expression."

Hi,

I have been following the guideline given in the PDF document. I created a build pipeline however it seems to fail on the export solution task with following error, any ideas for fix will be highly appreciated.

##[debug] + CategoryInfo : InvalidOperation: (:) [ExportSolution.ps1], RuntimeException
##[debug] + FullyQualifiedErrorId : InvokeMethodOnNull,ExportSolution.ps1
##[debug]
##[debug]Script stack trace:
##[debug]at , D:\a_tasks\PowerPlatformExportSolution_16f6dae7-e6ef-4629-ae75-7988463cb6a6\0.0.1\ExportSolution.ps1: line 75
##[debug]at , : line 1
##[debug]at , : line 22
##[debug]at , : line 18
##[debug]at , : line 1
##[debug]Exception:
##[debug]System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
##[debug] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
##[debug] at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) ##[debug] at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess)
##[debug] at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
##[debug] at System.Management.Automation.CommandProcessorBase.Complete()
##[error]You cannot call a method on a null-valued expression.
##[debug]Processed: ##vso[task.logissue type=error]You cannot call a method on a null-valued expression.
##[debug]Processed: ##vso[task.complete result=Failed]
Finishing: Power Platform Export Solution

Documentation insufficient / samples fail to build

Hi,

I tried to run the the IFrame sample component following these steps (and the install steps before) but I failed.

First, the install steps were insufficient and I failed at the step msbuild /t:restore because I had no msbuild. I installed VSCode and not Studio - I guess it comes with Studio. So after a while I found that I could install the build tools w\o Studio. I now have msbuild (but only via the Power Shell for VS 2019 ...).

Aight, so let's move on.

Navigate to the folder on your computer where you have downloaded the sample components, and extract the .zip file.

done

navigate to the sample component folder in the extracted folder that you want to see it in runtime

F:\PowerApps-Samples-master\component-framework\TS_IFrameControl

npm install

no problem

Create a new folder using the command mkdir inside the sample component folder and navigate into the folder using the command cd

mkdir mytest
cd mytest

pac solution init --publisher-name --publisher-prefix

pac solution init --publisher-name me --publisher-prefix pfx

pac solution add-reference --path

The sample component is the iframe thing, so pac solution add-reference --path ../. Am I missing something? The doc could be more explicit and say "in this case that's the parent directory" or something like that.

To generate a zip file from your solution project, you need to cd into your solution project directory and build the project using the following command: msbuild /t:restore

Wait, what's the "solution project directory"? Isn't this where we are right now? So no cding needed.

Alright, let's do this: msbuild /t:restore

Everything is green, seems legit.

Again, run the command "msbuild".

That should be easy:

  npm run build -- --noColor --buildMode development --outDir "F:\PowerApps-Samples-master\component-framework\TS_IFrameControl\out\controls" --buildSource MSBuild

  > [email protected] build F:\PowerApps-Samples-master\component-framework\TS_IFrameControl
  > pcf-scripts build "--noColor" "--buildMode" "development" "--outDir" "F:\PowerApps-Samples-master\component-framework\TS_IFrameControl\out\controls" "--buildSource"
   "MSBuild"

  Der Befehl "pcf-scripts" ist entweder falsch geschrieben oder
  konnte nicht gefunden werden.
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! [email protected] build: `pcf-scripts build "--noColor" "--buildMode" "development" "--outDir" "F:\PowerApps-Samples-master\component-framework\TS_IFrameCont
  rol\out\controls" "--buildSource" "MSBuild"`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the [email protected] build script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2020-07-14T08_32_40_761Z-debug.log

Nope. There is a pcf-scripts inside TS_IFrameControl/node_modules/.bin but msbuild does not seem to recognize this.

So, what am I missing here?

Automated CDS Env + Data Build?

Hello,
The README.md listed here says to Follow the instructions in the Automated Lab Environment folder to build and run the tool which will create a trial Common Data Service organization with the data already uploaded.
I can't find this folder in the repo.
Any details?
Thank you

System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'.

Hello,

I try to connect to Dynamics using client secret, i have created an application registartion, i have added secret client
this is my code

public static CdsServiceClient InitCRMConnection()
            {

                    try
                    {

                        string connectionstring = ConfigurationManager.ConnectionStrings["connectionVSMP"].ConnectionString;

                   
                        sp = new CdsServiceClient(connectionstring);
                
              
                    }

                     catch (Exception ex)
                    {
                                LogHelper.Writer("Erreur lors de la connexion au crm, Message de l'erreur : " + Environment.NewLine + ex.ToString());
                    }

               return sp;
            }
```````````
`````````````` Microsoft.Powerplatform.Cds.Client.Utils.CdsConnectionException: Failed to connect to Common Data Service ---> System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.InitCdsService() at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.GetCachedCDSService(CdsConnectionService& ConnectionObject) at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.IntilizeService(CdsConnectionService& ConnectionObject) at Microsoft.Powerplatform.Cds.Client.CdsConnectionService.DoLogin(CdsConnectionService& ConnectionObject) at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.CreateCdsServiceConnection(Object externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId, SecureString password, String domain, String Geo, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned, Boolean useDefaultCreds) --- End of inner exception stack trace --- at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.CreateCdsServiceConnection(Object externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId, SecureString password, String domain, String Geo, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned, Boolean useDefaultCreds) at Microsoft.Powerplatform.Cds.Client.CdsServiceClient.ConnectToCdsService(String cdsConnectionString) at Microsoft.Powerplatform.Cds.Client.CdsServiceClient..ctor(String cdsConnectionString) i apperciate any help

Thank you

Cordially

GenerateEntityDiagram performance

Hello,

I am struggling with the performance of GenerateEntityDiagram.

I have a good machine - quad core, 16GB RAM.

I am connected to an online version of Dynamics 365 that has little daily usage.

I am debugging the program in VS 2019 and I have processed 142 entities in almost two straight days of continuous runtime (46 hours).

Visio has been running in the background the entire time at around 12% CPU.

Is this performance expected? Is Visio the bottleneck in this program (my guess), or is it something else?
And if it is Visio - how in the world is it taking 20 minutes per entity to create a diagram?

Any other tips?

"Build Managed Solution" Pipeline failing on Task "Power platform Pack solution"

Hi all,

I am getting following error and not sure what is the exact cause here, i wonder if somebody could help here please?

2020-06-10T10:43:44.4583733Z ##[debug]Evaluating condition for step: 'Power Platform Pack Solution '
2020-06-10T10:43:44.4586113Z ##[debug]Evaluating: succeeded()
2020-06-10T10:43:44.4586696Z ##[debug]Evaluating succeeded:
2020-06-10T10:43:44.4588140Z ##[debug]=> True
2020-06-10T10:43:44.4588740Z ##[debug]Result: True
2020-06-10T10:43:44.4589405Z ##[section]Starting: Power Platform Pack Solution
2020-06-10T10:43:44.4749879Z ==============================================================================
2020-06-10T10:43:44.4750888Z Task : Power Platform Pack Solution
2020-06-10T10:43:44.4751575Z Description : Power Platform Pack Solution
2020-06-10T10:43:44.4751842Z Version : 0.0.1
2020-06-10T10:43:44.4752060Z Author : Microsoft
2020-06-10T10:43:44.4752366Z Help : More Info
2020-06-10T10:43:44.4752708Z ==============================================================================
2020-06-10T10:43:45.4127390Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2020-06-10T10:43:45.5434183Z ##[debug]Entering D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\PackSolution.ps1.
2020-06-10T10:43:45.5599612Z ##[debug]Loading module from path 'D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\SharedFunctions.psm1'.
2020-06-10T10:43:45.6138066Z ##[debug]Exporting function 'Get-ServiceConnection'.
2020-06-10T10:43:45.6172013Z ##[debug]Exporting function 'Get-PSCredentialFromServiceConnection'.
2020-06-10T10:43:45.6215294Z ##[debug]Exporting function 'Get-SpnInfoServiceConnection'.
2020-06-10T10:43:45.6250246Z ##[debug]Exporting function 'Get-AuthInfoFromActiveServiceConnection'.
2020-06-10T10:43:45.6285375Z ##[debug]Exporting function 'Add-BapAdminConnection'.
2020-06-10T10:43:45.6325222Z ##[debug]Exporting function 'Get-UrlFromEnvironmentVariables'.
2020-06-10T10:43:45.6373020Z ##[debug]Exporting function 'Set-EnvironmentUrl'.
2020-06-10T10:43:45.6415063Z ##[debug]Exporting function 'Get-VstsInputWithDefault'.
2020-06-10T10:43:45.6446397Z ##[debug]Exporting function 'Get-TaskInputProperties'.
2020-06-10T10:43:45.6476578Z ##[debug]Exporting function 'Wait-CrmOperation'.
2020-06-10T10:43:45.6509870Z ##[debug]Exporting function 'Wait-EnvironmentAvailability'.
2020-06-10T10:43:45.6546281Z ##[debug]Exporting function 'Get-DomainNameFromUrl'.
2020-06-10T10:43:45.6577458Z ##[debug]Exporting function 'Import-PowerPlatformToolsPowerShellModule'.
2020-06-10T10:43:45.6617430Z ##[debug]Exporting function 'Get-BindingRedirector'.
2020-06-10T10:43:45.6651627Z ##[debug]Exporting function 'Get-OutputDirectory'.
2020-06-10T10:43:45.6683518Z ##[debug]Exporting function 'Disable-AdminMode'.
2020-06-10T10:43:45.6717004Z ##[debug]Importing function 'Add-BapAdminConnection'.
2020-06-10T10:43:45.6751491Z ##[debug]Importing function 'Disable-AdminMode'.
2020-06-10T10:43:45.6787442Z ##[debug]Importing function 'Get-AuthInfoFromActiveServiceConnection'.
2020-06-10T10:43:45.6822077Z ##[debug]Importing function 'Get-BindingRedirector'.
2020-06-10T10:43:45.6850700Z ##[debug]Importing function 'Get-DomainNameFromUrl'.
2020-06-10T10:43:45.6885949Z ##[debug]Importing function 'Get-OutputDirectory'.
2020-06-10T10:43:45.6916882Z ##[debug]Importing function 'Get-PSCredentialFromServiceConnection'.
2020-06-10T10:43:45.6949607Z ##[debug]Importing function 'Get-ServiceConnection'.
2020-06-10T10:43:45.6982267Z ##[debug]Importing function 'Get-SpnInfoServiceConnection'.
2020-06-10T10:43:45.7013613Z ##[debug]Importing function 'Get-TaskInputProperties'.
2020-06-10T10:43:45.7049629Z ##[debug]Importing function 'Get-UrlFromEnvironmentVariables'.
2020-06-10T10:43:45.7081510Z ##[debug]Importing function 'Get-VstsInputWithDefault'.
2020-06-10T10:43:45.7128642Z ##[debug]Importing function 'Import-PowerPlatformToolsPowerShellModule'.
2020-06-10T10:43:45.8294192Z ##[debug]Importing function 'Set-EnvironmentUrl'.
2020-06-10T10:43:45.8294922Z ##[debug]Importing function 'Wait-CrmOperation'.
2020-06-10T10:43:45.8295563Z ##[debug]Importing function 'Wait-EnvironmentAvailability'.
2020-06-10T10:43:45.8299059Z ##[debug]Loading module from path 'D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\Get-ParameterValue.ps1'.
2020-06-10T10:43:45.8300585Z ##[debug]Dot-sourcing the script file 'D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\Get-ParameterValue.ps1'.
2020-06-10T10:43:45.8364343Z ##[debug]Loading module from path 'D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\SolutionPackager.psm1'.
2020-06-10T10:43:45.8508885Z ##[debug]Exporting function 'Get-InstalledNuGetPackageRootPath'.
2020-06-10T10:43:45.8541445Z ##[debug]Exporting function 'Invoke-SolutionPackager'.
2020-06-10T10:43:45.8582839Z ##[debug]Importing function 'Get-InstalledNuGetPackageRootPath'.
2020-06-10T10:43:45.8629703Z ##[debug]Importing function 'Invoke-SolutionPackager'.
2020-06-10T10:43:45.9251620Z ##[debug]INPUT_SOLUTIONSOURCEFOLDER: 'D:\a\1\s\FlowSolutionTest'
2020-06-10T10:43:45.9350759Z ##[debug]INPUT_SOLUTIONOUTPUTFILE: 'D:\a\1\s\Solution Output File: D:\a\1\a\FlowSolutionTest.zip'
2020-06-10T10:43:45.9441855Z ##[debug]INPUT_SOLUTIONTYPE: 'Unmanaged'
2020-06-10T10:43:45.9759227Z ##[debug]Get-Var: action = Pack
2020-06-10T10:43:45.9835840Z ##[debug]BoundParams: action = Pack
2020-06-10T10:43:45.9893994Z ##[debug]Get-Var: zipfile = D:\a\1\s\Solution Output File: D:\a\1\a\FlowSolutionTest.zip
2020-06-10T10:43:45.9936646Z ##[debug]BoundParams: zipfile = D:\a\1\s\Solution Output File: D:\a\1\a\FlowSolutionTest.zip
2020-06-10T10:43:45.9978689Z ##[debug]Get-Var: folder = D:\a\1\s\FlowSolutionTest
2020-06-10T10:43:46.0010713Z ##[debug]BoundParams: folder = D:\a\1\s\FlowSolutionTest
2020-06-10T10:43:46.0052575Z ##[debug]Get-Var: packagetype = Unmanaged
2020-06-10T10:43:46.0090150Z ##[debug]BoundParams: packagetype = Unmanaged
2020-06-10T10:43:46.0126216Z ##[debug]Get-Var: allowDelete = Yes
2020-06-10T10:43:46.0162291Z ##[debug]Get-Var: allowWrite = Yes
2020-06-10T10:43:46.0466734Z ##[debug]Attempting to get env variable: Env:\PowerPlatformTools_Microsoft_CrmSdk_CoreTools)
2020-06-10T10:43:46.0512825Z ##[debug]NuGet Package Root Path: D:\a\1_t\PA_BT\Microsoft.CrmSdk.CoreTools.9.1.0.39
2020-06-10T10:43:46.0655319Z ##[debug]SolutionPackager.exe found: D:\a\1_t\PA_BT\Microsoft.CrmSdk.CoreTools.9.1.0.39\content\bin\coretools\SolutionPackager.exe
2020-06-10T10:43:46.0892786Z ##[command]"D:\a\1_t\PA_BT\Microsoft.CrmSdk.CoreTools.9.1.0.39\content\bin\coretools\SolutionPackager.exe" /allowDelete:Yes /action:Pack /zipFile:D:\a\1\s\Solution Output File: D:\a\1\a\FlowSolutionTest.zip /allowWrite:Yes /folder:D:\a\1\s\FlowSolutionTest /packagetype:Unmanaged
2020-06-10T10:43:46.1728126Z SolutionPackger CRM Solution Packaging Tool [Version 9.1.0.42]
2020-06-10T10:43:46.1748134Z ร‚ยฉ 2017 Microsoft Corporation. All rights reserved
2020-06-10T10:43:46.1751047Z
2020-06-10T10:43:46.1856833Z Unrecognized command line argument 'Output'
2020-06-10T10:43:46.1857219Z Unrecognized command line argument 'File:'
2020-06-10T10:43:46.1857804Z Unrecognized command line argument 'D:\a\1\a\FlowSolutionTest.zip'
2020-06-10T10:43:46.1861346Z
2020-06-10T10:43:46.1898094Z Options:
2020-06-10T10:43:46.2068879Z /action:{Extract|Pack} Action to Perform (short form
2020-06-10T10:43:46.2082841Z /a)
2020-06-10T10:43:46.2101177Z /zipfile: The full path to the
2020-06-10T10:43:46.2115036Z customization ZIP file:
2020-06-10T10:43:46.2129672Z C:\customization.zip (short
2020-06-10T10:43:46.2144577Z form /z)
2020-06-10T10:43:46.2159797Z /packagetype:{Unmanaged|Managed|Both} When Extracting use to specify
2020-06-10T10:43:46.2176246Z dual Managed and Unmanaged
2020-06-10T10:43:46.2191652Z operation. When Packing use to
2020-06-10T10:43:46.2205610Z specify Managed or Unmanaged
2020-06-10T10:43:46.2222537Z from a previous 'Extract Both'.
2020-06-10T10:43:46.2236473Z (short form /p)
2020-06-10T10:43:46.2251616Z /folder: The path to the root folder:
2020-06-10T10:43:46.2265475Z C:\Solutions\Solution1. When
2020-06-10T10:43:46.2281219Z Extracting this will be written
2020-06-10T10:43:46.2295022Z to, when Packing this will be
2020-06-10T10:43:46.2320885Z read from. Default value:'.'
2020-06-10T10:43:46.2399040Z (short form /f)
2020-06-10T10:43:46.2416184Z /log: The path to the log file.
2020-06-10T10:43:46.2435145Z (short form /l)
2020-06-10T10:43:46.2450732Z /errorlevel:{Off|Error|Warning|Info|Verbose} Minimum logging level for log
2020-06-10T10:43:46.2472072Z output
2020-06-10T10:43:46.2504738Z [Verbose|Info|Warning|Error|Off]
2020-06-10T10:43:46.2518111Z . Default value:'Info' (short
2020-06-10T10:43:46.2535754Z form /e)
2020-06-10T10:43:46.2555143Z
2020-06-10T10:43:46.2571379Z /allowDelete:{Yes|No|Prompt} Dictates if delete operations
2020-06-10T10:43:46.2589099Z may occur. Default
2020-06-10T10:43:46.2604228Z value:'Prompt' (short form /ad)
2020-06-10T10:43:46.2619543Z /allowWrite:{Yes|No} Dictates if write operations
2020-06-10T10:43:46.2634480Z may occur. Default value:'Yes'
2020-06-10T10:43:46.2650279Z (short form /aw)
2020-06-10T10:43:46.2665642Z /clobber Enables that files marked
2020-06-10T10:43:46.2681647Z read-only can be deleted or
2020-06-10T10:43:46.2699273Z overwritten. (short form /c)
2020-06-10T10:43:46.2716477Z /map: The full path to a mapping xml
2020-06-10T10:43:46.2730245Z file: C:\maps.xml (short form
2020-06-10T10:43:46.2747201Z /m)
2020-06-10T10:43:46.2762046Z /nologo Suppresses the banner. (short
2020-06-10T10:43:46.2778050Z form /n)
2020-06-10T10:43:46.2793945Z /sourceLoc: Generates a template resource
2020-06-10T10:43:46.2811443Z file. Valid only on Extract.
2020-06-10T10:43:46.2828555Z Possible Values are auto or an
2020-06-10T10:43:46.2848811Z LCID/ISO code of the language
2020-06-10T10:43:46.2865018Z you wish to export. When
2020-06-10T10:43:46.2873860Z Present, this will extract the
2020-06-10T10:43:46.2887789Z string resources from the given
2020-06-10T10:43:46.2903301Z locale as a neutral .resx. If
2020-06-10T10:43:46.2916937Z auto or just the long or short
2020-06-10T10:43:46.2932374Z form of the switch is specified
2020-06-10T10:43:46.2948402Z the base locale for the
2020-06-10T10:43:46.2964126Z solution will be used. (short
2020-06-10T10:43:46.2981047Z form /src)
2020-06-10T10:43:46.2998566Z /localize Extract or merge all string
2020-06-10T10:43:46.3013156Z resources into .resx files.
2020-06-10T10:43:46.3028545Z (short form /loc)
2020-06-10T10:43:46.3043865Z
2020-06-10T10:43:46.3058242Z
2020-06-10T10:43:46.3073061Z /useUnmanagedFileForMissingManaged Use the same XML source file
2020-06-10T10:43:46.3088059Z when packaging for Managed and
2020-06-10T10:43:46.3103399Z only Unmanaged XML file is
2020-06-10T10:43:46.3118125Z found; applies to
2020-06-10T10:43:46.3133686Z AppModuleSiteMap, AppModuleMap,
2020-06-10T10:43:46.3147925Z FormXml files (short form /same)
2020-06-10T10:43:46.3164018Z @ Read response file for more
2020-06-10T10:43:46.3179155Z options
2020-06-10T10:43:46.3181283Z
2020-06-10T10:43:46.3196441Z SolutionPackager: CommandLineException thrown: Microsoft.Crm.Tools.SolutionPackager.CommandLineException: Exception of type 'Microsoft.Crm.Tools.SolutionPackager.CommandLineException' was thrown.
2020-06-10T10:43:46.3211450Z at Microsoft.Crm.Tools.SolutionPackager.Program.ParseCommandLine(String[] args)
2020-06-10T10:43:46.3225600Z at Microsoft.Crm.Tools.SolutionPackager.Program.Main(String[] args), returning error code '2'
2020-06-10T10:43:46.3261770Z ##[debug]Exit code: 2
2020-06-10T10:43:46.4178808Z ##[debug]Leaving D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\PackSolution.ps1.
2020-06-10T10:43:46.4253151Z ##[debug]Caught exception from task script.
2020-06-10T10:43:46.4305788Z ##[debug]Error record:
2020-06-10T10:43:46.4911772Z ##[debug]Invoke-SolutionPackager : SolutionPackager failed: 2
2020-06-10T10:43:46.4935139Z ##[debug]At D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\PackSolution.ps1:26 char:9
2020-06-10T10:43:46.4954929Z ##[debug]+ Invoke-SolutionPackager @SolutionPackagerParms
2020-06-10T10:43:46.4975485Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-10T10:43:46.4999051Z ##[debug] + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
2020-06-10T10:43:46.5021022Z ##[debug] + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SolutionPackager
2020-06-10T10:43:46.5043946Z ##[debug]
2020-06-10T10:43:46.5074257Z ##[debug]Script stack trace:
2020-06-10T10:43:46.5136508Z ##[debug]at Invoke-SolutionPackager, D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\SolutionPackager.psm1: line 71
2020-06-10T10:43:46.5186402Z ##[debug]at Invoke-PackSolution, D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\PackSolution.ps1: line 26
2020-06-10T10:43:46.5215445Z ##[debug]at , D:\a_tasks\PowerPlatformPackSolution_769929ed-e421-451b-8255-21a8d9d9d3f9\0.0.1\PackSolution.ps1: line 44
2020-06-10T10:43:46.5236017Z ##[debug]at , : line 1
2020-06-10T10:43:46.5258163Z ##[debug]at , : line 22
2020-06-10T10:43:46.5279086Z ##[debug]at , : line 18
2020-06-10T10:43:46.5300801Z ##[debug]at , : line 1
2020-06-10T10:43:46.5333477Z ##[debug]Exception:
2020-06-10T10:43:46.5398612Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: SolutionPackager failed: 2
2020-06-10T10:43:46.5810057Z ##[error]SolutionPackager failed: 2
2020-06-10T10:43:46.5822707Z ##[debug]Processed: ##vso[task.logissue type=error]SolutionPackager failed: 2
2020-06-10T10:43:46.5834280Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-06-10T10:43:46.6279714Z ##[section]Finishing: Power Platform Pack Solution

PowerApps Import Solution: "Connector import: FAILURE: One or more errors occurred"

Our solution contains:

  • Canvas PowerApp
  • Power Automate Flow
  • Custom Connector

The app uses: a) the connector to populate dropdowns and b) the flow to perform some logic. In turn, the flow uses the same custom connector, plus two standard connectors, as part of its logic.

Following this Microsoft Hands-on-lab, we are able to get through all the steps (but the last one):

  • We have created the Pipeline that exports the solution from DEV environment and commits it to the source repo. It runs OK
  • We have created the Pipeline that imports the unmanaged solution to a build (BLD) environment and exports it as managed solution, generating an artifact. (Note: we added a "PowerApps Publish Customizations" task that we noticed is missing in the documentation, but we got the same error in the final step). It runs OK
  • We have created the Release pipeline to deploy the managed solution to the target environment (TST), but it runs NOK. We get the error referred above (log pasted below).

Additional comments:

  • PowerApps BuildTools version: 0.1.16
  • We are able to manually import the generated artifact into the target environment, with no errors.
  • If we import the solution manually, the Release pipeline runs OK. So we have a workaround, but it is still an issue.
  • If we just remove the custom connector from the solution (keeping all dependencies from the other solution components) the error is the same. When removing the dependencies, then Release pipeline runs OK. But we need the connector.
  • We opened an issue to Power Platform support. A Microsoft support engineer helped us analyzing the scenario and then he told us to open an issue here, as it seems to be specifically related to the tools.

PowerApps Import solution task log:

Unhandled exception: 
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Connector import: FAILURE: One or more errors occurred.Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ActivityId>80a5a626-7309-4dd5-b9b6-96aa4ee28775</ActivityId>
  <ErrorCode>-2147188704</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.WebServices.ImportXmlService</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: Connector import: FAILURE: One or more errors occurred. ---&gt; Microsoft.Crm.Tools.ImportExportPublish.ImportGenericEntitiesException: Connector import: FAILURE: One or more errors occurred. ---&gt; System.AggregateException: One or more errors occurred. ---&gt; System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.Crm.ObjectModel.ConnectorService.Create(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandlerBase.&lt;&gt;c__DisplayClass3_0.&lt;EnsureEntityExisted&gt;b__0()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportConnectorHandler.ImportItem()
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.ImportExportPublish.ImportConnectorHandler.ImportItem()
   at Microsoft.Crm.Tools.ImportExportPublish.ImportHandler.ImportInternal()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ImportAndUpdateProgress(ImportHandler ih)
   at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.ProcessHandlers(String[] ImportEntities, Hashtable ht, String&amp; curPath, ImportHandler&amp; ihForCurrentPath, CounterList listCounters)
   at Microsoft.Crm.Tools.ImportExportPublish.RootImportHandler.RunImport(String[] ImportEntities)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImportInternal(Boolean withSolutionManifest)
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapableInternal(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipQueueRibbonJob, LayerDesiredOrder layerDesiredOrder, Boolean asyncRibbonProcessing, EntityCollection componentParameters)
   at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context, Boolean skipQueueRibbonJob, LayerDesiredOrder layerDesiredOrder, Boolean asyncRibbonProcessing, EntityCollection componentParameters)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass3_0.&lt;RunStep&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">1b830950-e106-4ee1-b3fd-d348cb65dc8d</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiDepthKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">2</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiActivityIdKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">80a5a626-7309-4dd5-b9b6-96aa4ee28775</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionCategory</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">SystemFailure</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionMesageName</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">ImportGenericEntitiesError</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">500</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>0</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System.AggregateException: One or more errors occurred. ---&gt; System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.Crm.ObjectModel.ConnectorService.Create(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandlerBase.&lt;&gt;c__DisplayClass3_0.&lt;EnsureEntityExisted&gt;b__0()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportConnectorHandler.ImportItem()
---&gt; (Inner Exception #0) System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext()&lt;---
</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>HasRetried</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">True</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>RetryExecutionStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <HelpLink>http://go.microsoft.com/fwlink/?LinkID=398563&amp;error=Microsoft.Crm.CrmException%3a80048020&amp;client=platform</HelpLink>
  <Message>Connector import: FAILURE: One or more errors occurred.</Message>
  <Timestamp>2020-05-21T11:58:11.2424764Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>80a5a626-7309-4dd5-b9b6-96aa4ee28775</ActivityId>
    <ErrorCode>-2147188704</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <HelpLink i:nil="true" />
    <Message>Connector import: FAILURE: One or more errors occurred.</Message>
    <Timestamp>2020-05-21T11:58:11.2424764Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
      <ActivityId>80a5a626-7309-4dd5-b9b6-96aa4ee28775</ActivityId>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <HelpLink i:nil="true" />
      <Message>System.AggregateException: One or more errors occurred. ---&gt; System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.Crm.ObjectModel.ConnectorService.Create(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportEntityHandlerBase.&lt;&gt;c__DisplayClass3_0.&lt;EnsureEntityExisted&gt;b__0()
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportConnectorHandler.ImportItem()
---&gt; (Inner Exception #0) System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext()&lt;---
: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5CFFE689</Message>
      <Timestamp>2020-05-21T11:58:11.2424764Z</Timestamp>
      <ExceptionRetriable>false</ExceptionRetriable>
      <ExceptionSource i:nil="true" />
      <InnerFault>
        <ActivityId>80a5a626-7309-4dd5-b9b6-96aa4ee28775</ActivityId>
        <ErrorCode>-2147220970</ErrorCode>
        <ErrorDetails xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <HelpLink i:nil="true" />
        <Message>System.InvalidOperationException: The API call failed with http status code 'InternalServerError' and response content '{"error":{"code":"InternalServerError","message":"Encountered internal server error. The tracking Id is '6cd80ea9-c99a-4689-bd9b-793c06bba79e'."}}'
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;&gt;c__DisplayClass61_0`2.&lt;&lt;CallPowerAppsEndpoint&gt;b__0&gt;d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Crm.ObjectModel.ResourceStack.AsyncRetry.&lt;Retry&gt;d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.PowerAppsDataProvider.&lt;CallPowerAppsEndpoint&gt;d__61`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Crm.ObjectModel.ConnectorService.&lt;ImportConnectorSolutionDefinition&gt;d__79.MoveNext(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4A9689D2</Message>
        <Timestamp>2020-05-21T11:58:11.2424764Z</Timestamp>
        <ExceptionRetriable>false</ExceptionRetriable>
        <ExceptionSource i:nil="true" />
        <InnerFault i:nil="true" />
        <OriginalException i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <OriginalException i:nil="true" />
      <TraceText i:nil="true" />
    </InnerFault>
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>
1 more errors. Click on expand view in the context menu to view complete logs.

Missing Files in GenerateEntityDiagram solution

There are missing files in the PowerApps-Samples/cds/GenerateEntityDiagram/

  • LoginUX/ExampleLoginForm.xaml
  • LoginUX/ExampleLoginForm.cs
  • App.config
  • MyOrganizationSdkTypes.cs
  • SampleHelpers.cs
  • SystemUserProvider.cs

Missing image resource in canvas

Hi,

I created an test app that has a search input with search icon in the button.
In sandbox, everyting works fine and I can see my imgs/rearch.png.

image

But when I applied it in a PowerApp Canvas, I got this.

image

The image is now missing. I only got the bundle and the css.

I also checked the published manifest and it's all there.

What did I done wrong?

PowerAppToolInstaller error on agent

I try to use the PowerApps BuildTools but keep getting the following error at the first PowerAppsToolInstaller step:

Installing PS module Microsoft.Xrm.OnlineManagementAPI - 1.2.0.1 ... ##[error]Exception calling "ShouldContinue" with "2" argument(s): "Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available."

The error occurs on our own Build Agents but work at the Azure Hosted VS2017 Agents. Are there some kind of requirements the Agent has to adhere to?

PowerApps Backup Environment task error in DevOps running with user with mfa enabled

Hello,

PowerApps Backup Environment devops task failed with the error bellow when the Service connection's user has mfa enabled. It failed also using "app password" for the same account.

2020-02-20T14:53:43.6107350Z ##[section]Starting: PowerApps Import Solution
2020-02-20T14:53:43.6211569Z ==============================================================================
2020-02-20T14:53:43.6212088Z Task : PowerApps Import Solution
2020-02-20T14:53:43.6212532Z Description : PowerApps Import Solution
2020-02-20T14:53:43.6212753Z Version : 0.1.10
2020-02-20T14:53:43.6213228Z Author : Microsoft
2020-02-20T14:53:43.6213516Z Help : More Info
2020-02-20T14:53:43.6214047Z ==============================================================================
2020-02-20T14:53:46.9918491Z ##[error]Failed to connect to instance: . Please verify your credentials for *** and instance url.
ERROR REQUESTING Token FROM THE Authentication context
ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access 'removed'.
Trace ID: f5c6d886-a52c-4c3e-9d06-1cde6e5f1e00
Correlation ID: 38931600-2d8b-4ba4-b238-6febd2a11cec
Timestamp: 2020-02-20 14:53:46Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"interaction_required","error_description":"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access 'removed'.\r\nTrace ID: f5c6d886-a52c-4c3e-9d06-1cde6e5f1e00\r\nCorrelation ID: 38931600-2d8b-4ba4-b238-6febd2a11cec\r\nTimestamp: 2020-02-20 14:53:46Z","error_codes":[50076],"timestamp":"2020-02-20 14:53:46Z","trace_id":"f5c6d886-a52c-4c3e-9d06-1cde6e5f1e00","correlation_id":"38931600-2d8b-4ba4-b238-6febd2a11cec","error_uri":"https://login.microsoftonline.com/error?code=50076","suberror":"basic_action"}: Unknown errorUnable to connect to CRM: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access 'removed'.
Trace ID: f5c6d886-a52c-4c3e-9d06-1cde6e5f1e00
Correlation ID: 38931600-2d8b-4ba4-b238-6febd2a11cec
Timestamp: 2020-02-20 14:53:46Z
2020-02-20T14:53:47.0313302Z ##[section]Finishing: PowerApps Import Solution

Bad Request (400) when logging into CRM in Pipeline Create Export from Dev

Power Platform ALM Workshop : Module2 - Item 30 fails when running the pipeline ๐Ÿ‘Ž

Details Agent job 1 1 error(s), 0 warning(s) Failed to connect to instance: https://Organisation ID.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM Details Agent job 1 1 error(s), 0 warning(s) Failed to connect to instance: https://organisation ID.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM Agent job 1 1 error(s), 0 warning(s) Failed to connect to instance: https://Organisation ID.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM 1 error(s), 0 warning(s) ย  Failed to connect to instance: https:// Organisation ID.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM
Details
Agent job 1 1 error(s), 0 warning(s) Failed to connect to instance: https://Organisation ID1.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM Agent job 1 1 error(s), 0 warning(s) Failed to connect to instance: https://Organisation ID.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM 1 error(s), 0 warning(s) ย  Failed to connect to instance: https://org9a7eff11.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM
Agent job 1
1 error(s), 0 warning(s) Failed to connect to instance: https://Organisation ID.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM 1 error(s), 0 warning(s) ย  Failed to connect to instance: https://.crm11.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM
1 error(s), 0 warning(s)
ย  Failed to connect to instance: https://Organisation ID.dynamics.com/. Please verify your credentials for *** and instance url. ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextOne or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to connect to CRM: AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z One or more errors occurred. => AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: e3e48a84-99ba-45f4-b600-421f9214c700 Correlation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc Timestamp: 2020-01-14 18:13:24Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"invalid_grant","error_description":"AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: e3e48a84-99ba-45f4-b600-421f9214c700\r\nCorrelation ID: f0421c7c-ffae-499e-804e-25c2c6c2e1fc\r\nTimestamp: 2020-01-14 18:13:24Z","error_codes":[50126],"timestamp":"2020-01-14 18:13:24Z","trace_id":"e3e48a84-99ba-45f4-b600-421f9214c700","correlation_id":"f0421c7c-ffae-499e-804e-25c2c6c2e1fc","error_uri":"https://login.microsoftonline.com/error?code=50126"}: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM

I have checked that Username and Password are correct. If they were wrong I would expect a 403 error.

Details I suspect in the manual are a little out of date.

Solution will not build

I get a number of errors when I try to build the solution. Some files are hardcoded to specific locations and others don't even exists in the solution.

Errors

QuickStartCS solution folder have missing files

Please note that QuickStartCS solution on /cds/Xrm Tooling/QuickStartCS/QuickStartCS is missing (at least) these files:

  • App.config
  • MyOrganizationSdkTypes.cs
  • OptionSets.cs
  • SampleHelpers.cs
  • Files on the LoginUX subfolder

I'll appreciate it if you can fix/upload the missing files.

Thanks for the samples, hope you can fix it.

CDSWebApiService crashes if the response does not contain JSON data

for instance PowerApps-Samples/cds/webapi/C#/CDSWebApiService/CDSWebApiService/CDSWebApiService.cs in the ParseError method

This always calls JObject.Parse but in many cases (e.g. 401), the body will be empty (or I guess in some cases it might be non-json text) so the error handling will itself throw an error. a better technique would be to read the content as a string first, then if the JSON parse fails you can fallback to logging the body as a string

You must enable HTTP Activation on your computer to run the QuickStartForDynamics365 sample

Running the this sample:
PowerApps-Samples\cds\orgsvc\C#\QuickStartForDynamics365\QuickStartForDynamics365\SampleProgram.cs
Got this error:

Source	: System.Web
Method	: .ctor
Date	: 6/5/2019
Time	: 7:18:08 PM
Error	: Unable to initialize the native configuration support external to the web worker process (HRESULT=0x80040154).
nativerd.dll must be in %windir%\system32\inetsrv.
Stack Trace	: at System.Web.Configuration.ProcessHostConfigUtils.NativeConfigWrapper..ctor()
   at System.Web.Configuration.ProcessHostConfigUtils.InitStandaloneConfig()
   at System.Web.Configuration.ProcessHostMapPath..ctor(IProcessHostSupportFunctions functions)
   at System.Web.Configuration.IISMapPath.GetInstance()
   at System.Web.Configuration.WebConfigurationHost.ChooseAndInitConfigMapPath(Boolean useConfigMapPath, IConfigMapPath configMapPath, ConfigurationFileMap fileMap)
   at System.Web.Configuration.WebConfigurationHost.InitForConfiguration(String& locationSubPath, String& configPath, String& locationConfigPath, IInternalConfigRoot configRoot, Object[] hostInitConfigurationParams)
   at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)
   at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams)
   at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle)
   at System.Web.Hosting.HostingEnvironment.get_CacheStoreProviderSettings()
   at System.Web.Caching.Cache.GetObjectCache(Boolean createIfDoesNotExist)
   at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.GetCachedCRMService(CrmWebSvc& ConnectionObject)
   at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.IntilizeService(CrmWebSvc& ConnectionObject)
   at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DoLogin(CrmWebSvc& ConnectionObject)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CreateCRMWebServiceConnection(OrganizationServiceProxy externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId, SecureString password, String domain, String CrmOnlineRegion, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClient..ctor(String crmUserId, SecureString crmPassword, String crmRegion, String orgName, Boolean useUniqueInstance, OrganizationDetail orgDetail, UserIdentifier user, String clientId, Uri redirectUri, String tokenCachePath, OrganizationWebProxyClient externalOrgWebProxyClient, PromptBehavior promptBehavior)
   at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ConnectAndInitCrmOrgService(CrmOrgByServer orgdata)
   at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================

Found that I needed to enable HTTP Activation

image

Thanks to this issue MscrmTools/XrmToolBox Unable to initialize the native configuration support external to the web worker process

This requirement should be added to prerequisites for running samples. Seems to be a prerequisite for using the Xrm.Tooling dialog used by this sample.

BulkDeleteRequest job is stuck in Waiting Status and manually resume it

I have used the BulkDeleteRequest sample code and able to submit the job successfully. I am using Dynamics Online. But When the job is submitted it will remain stuck or hung state "Waiting" till I will go and select manually resume the job. After manually resume, it is deleting the records. There is no other jobs are running so ideally it should be executed immediately.

What is the reason that job stuck in a waiting state?

image

Here is the code:

var deleteCondition = new ConditionExpression(
                    EntityName,IdentityColumn, ConditionOperator.In, "123");

                    // Create a fiter expression for the bulk delete request.
                    var deleteFilter = new FilterExpression();
                    deleteFilter.Conditions.Add(deleteCondition);

                    // Create the bulk delete query set.
                    var bulkDeleteQuery = new QueryExpression
                    {
                        EntityName = EntityName,
                        Distinct = false,
                        Criteria = deleteFilter
                        //ColumnSet = new ColumnSet(true)
                    };

                    // Create the bulk delete request.
                    var bulkDeleteRequest = new BulkDeleteRequest
                    {
                        JobName = "One Guid " + EntityName,
                        QuerySet = new[] { bulkDeleteQuery },
                        StartDateTime = DateTime.Now,
                        ToRecipients = new[] { userid },
                        CCRecipients = new Guid[] { },
                        SendEmailNotification = false,
                        RecurrencePattern = String.Empty
                        
                    };
                    
                    // Submit the bulk delete job.
                    // NOTE: Because this is an asynchronous operation, the response will be
                    // immediate.
                    
                     var bulkDeleteResponse = (BulkDeleteResponse)organizationService.Execute(bulkDeleteRequest);
                   
                    _asyncOperationId = bulkDeleteResponse.JobId;

Issue with TSImageUploadControl - Default image not found error

I've deployed the TSImageUploadControl code from github. The upload is working fine. However the default image is not being set. I'm getting the error "Image not found" in this line

this._context.resources.getResource(DefaultImageFileName, this.setImage.bind(this, false, "png"), this.showError.bind(this));

After the call to getResource, the error function showError is called which displays the image not found message. I can see the default.png in the "img" folder. I'm unable to find the actual exception that is thrown by getResource. Are you able to help?

PowerApps Build Tools Sample for OAuth/Certificate based Connection

Hello Microsoft,

I'm just working through your PowerApps Build Tools Sample and I was trying to get it working using a non-interactive user( using AAD Appregistration) for interaction with Dynamics 365 but I cant get it to work.

My Generic Service Connection is filled out like this:
Name: "Test Connection"
Server Url: "https://crmName.crm4.dynamics.com"
Username: clientId from AppRegistration
Password: clientSecret from AppRegistration

It works just fine using my own username and password but with MFA enabled having a non-interactive user would be potentially the safer bet. Hopefully there is a solution for this.

VS 2019 Not supported?

For component framework samples (PCF)
.pcfproj extension doesn't seem to be supported by VS2019 and, since these are in typescript anyway, no instructions for VSCode using PCF samples. Instructions says use MSBuild.. really?

Can we have validated instructions that work please!

Predict - Operation is not supported for General Prediction

This is a very famous error now without a solution yet posted any one even from the product team therefore, logging an issue here for the everlasting one.

"message": "{"operationStatus":"Invalid","error":{"type":"Error","code":"OperationNotSupported","message":"This operation is not supported for general prediction"}}",

There's a connector called Predict in Microsoft Flow and when a Binary Classification Model is generated using AI Builder and used within this Predict connector it gives the above error.

However, Form Model or Object Detection model work fine with them.

If that's not the correct connector Binary Classification then which one is correct?

Please elaborate so that hundred of other developers who're trying hard to get their hands on Preview builds can actually explore this.

PowerApps Build Tools Tutorial Organization Name cannot be null

Getting a consistent error in module 2 of tutorial, during PowerApps Export Solution.

##[error]Organization cannot be null or empty.
Parameter name: Organization Name

I've double-checked entries and wondering if this has been updated.

##[section]Starting: PowerApps Export Solution

Task : PowerApps Export Solution
Description : PowerApps Export Solution
Version : 0.1.7
Author : Microsoft
Help : More Info

##[error]Organization cannot be null or empty.
Parameter name: Organization Name
##[section]Finishing: PowerApps Export Solution

Operation returned an invalid status code BadRequest

I have a customEntity and run CrmSvcUtil : CRM Service Utility [Version 9.0.0.9340] to create a serviceContext.
Reading data is fine, but if I try to create a new record I get 'Operation returned an invalid status code BadRequest'. I changed by code to use the cdsclient as I had the idea it is related to the serviceContext and I should usd cdsclient.

` _organizationService.Create(customEntity);

        //_serviceContext.AddObject(customEntity);
        //_serviceContext.SaveChanges();`

However, it seems to be related to the related entity for which I had this code in the past:
var result= new my_customEntity() { //Id = Guid.NewGuid(), my_name = myname, //my_CertificationType = new EntityReference(my_customEntityType.EntityLogicalName, customEntityTypeId), my_SerialNumber = serialNumber, statecode = my_customEntity.Active, }; return result.Id
If I remove the my_CertificationType the record is created. However, ID still 0000-0000-000-0000...I guest because Id needs to be defined before calling Create(). Both methods are working with except of the relationship.

Any idea or example how to fix this? I then most likely need to rewrite my code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.