Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msdynmkt_PersonalizationDynamicTextAiRequest does not generate properly #502

Open
randombyte-developer opened this issue May 31, 2024 · 4 comments

Comments

@randombyte-developer
Copy link

Tool and Version
EarlyBoundGenerator V 2.2024.5.16

Describe the bug
When generating Actions with the V2 tool there is an error at the msdynmkt_PersonalizationDynamicTextAiRequest request when compiling the generated code.

[System.Runtime.Serialization.DataContractAttribute(Namespace="http://schemas.microsoft.com/xrm/2011/new/")]
[Microsoft.Xrm.Sdk.Client.RequestProxyAttribute("msdynmkt_PersonalizationDynamicTextAi")]
public partial class msdynmkt_PersonalizationDynamicTextAiRequest : Microsoft.Xrm.Sdk.OrganizationRequest
{
	
	public string msdynmkt_PersonalizationDynamicTextAiRequest__Member
	{
		get
		{
			if (this.Parameters.Contains("msdynmkt_PersonalizationDynamicTextAiRequest"))
			{
				return ((string)(this.Parameters["msdynmkt_PersonalizationDynamicTextAiRequest"]));
			}
			else
			{
				return default(string);
			}
		}
		set
		{
			this.Parameters["msdynmkt_PersonalizationDynamicTextAiRequest"] = value;
		}
	}
	
	public msdynmkt_PersonalizationDynamicTextAiRequest()
	{
		this.RequestName = "msdynmkt_PersonalizationDynamicTextAi";
		this.msdynmkt_PersonalizationDynamicTextAiRequest = default(string);
	}
}

The error is in the last line: this.msdynmkt_PersonalizationDynamicTextAiRequest = default(string);:

'msdynmkt_PersonalizationDynamicTextAiRequest' does not contain a definition for 'msdynmkt_PersonalizationDynamicTextAiRequest' and no accessible extension method 'msdynmkt_PersonalizationDynamicTextAiRequest' accepting a first argument of type 'msdynmkt_PersonalizationDynamicTextAiRequest' could be found (are you missing a using directive or an assembly reference?)

The error can be fixed like this: this.msdynmkt_PersonalizationDynamicTextAiRequest__Member = default(string);

To Reproduce
Steps to reproduce the behavior:

  1. Set up a marketing / customer insights journeys Dynamics instance. (no configuration needed)
  2. Generate the actions.
  3. Compile it.

Expected behavior
No errors.

Additional context
I didn't get the error in V 1. I guess the action was never generated.

@daryllabar
Copy link
Owner

I'd need your metadata that you're using to generate this: https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/EBG-%E2%80%90-Submitting-Metadata-For-Debugging

@daryllabar
Copy link
Owner

Pretty sure this is due to the CustomizeCodeDomService.MakeMemberNamesUnique, it may need to be solved in the PAC Model Builder

@randombyte-developer
Copy link
Author

@daryllabar I will provide you the metadata file next week. If there's anything to test with just the PAC Model Build, please tell me. If you think there's a bug, I can create a MS support ticket.

@daryllabar
Copy link
Owner

You can run the PAC Model builder directly for that particular message type to see how it handles the duplicate member issue. The EBG appends the __Member because that is all that is needed to resolve issues with Entity classes. Haven't had to debug it for Messages before. My guess is that it will generate it without the __Member, and create a different error. This is related to this issue here: microsoft/PowerPlatform-DataverseModelBuilder#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants