Git Product home page Git Product logo

Comments (15)

bwmodular avatar bwmodular commented on June 2, 2024

If it helps to know this, I'm getting the same issue but for the Post entity.
Error attempting to GenerateAttributeNameConsts! Unable to find attribute postregardingid in Post
This is my first attempt at using the v2 generator - using a settings file which was created using 'v1' EBG. Same settings file still works fine with EBG 1.

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

I'm unable to replicate this, can one of you attach a zip of the metadata and settings files here, as outlined in the wiki https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/EBG-%E2%80%90-Submitting-Metadata-For-Debugging

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Hi Daryl,
I removed everything except the Post entity from the whitelist and kicked it off.
It failed again.
I've included a zip wile with the serialized metadata, the builder.json and the log file.

EBGFailure29Nov23.zip

Hope that helps.

Given that the settings file is migrated from 'v1' to v2 of the EBG I will try starting from scratch with a new settings file to see if that works - I'll let you know.

Best wishes,
Ben

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Hi Daryl,
I connected to a different environment with the same metadata as the one I was using earlier, opened EBG V2 and left all the settings as default apart from the Entity Whitelist, where I removed all of the default entities and added the Post entity.
Hit Generate and got the same error: Unable to find attribute postregardingid in Post

So, I guess this rules out any issues with starting out with a V1 settings file and switching to V2.

EBG v2 is running against a D365 online instance, 2023 Wave 2 applied, v 9.2.23105.00230

Let me know if I can provide any more information.

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

@bwmodular your file is missing your Settings xml file. Can you add that as well?

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Sorry about that - new zip file uploaded. Do you want the v2 settings file as well? It's literally a default settings file with the entity whitelist updated to only include Post
EBGFailure29Nov23.zip

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

@bwmodular I didn't realize it was just the default. I think I have it fixed. Can you try downloading, unblocking, and then extracting this file in to your XTB plugins folder and giving it a try?

DLaB.EarlyBoundGeneratorV2.zip

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Hi Daryl,
it took me a while to get the new version you sent over working because Norton had helpfully quarantined half of the dll's in the zip file!
Once I sorted that the immediate problem is fixed.

I did get the following error though:

Method : BuildResponseField
Date : 12:28:25
Time : 30/11/2023
Error : Type Microsoft.Xrm.Sdk.PreferredSolutionDetails is not available
Stack Trace : at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildResponseField(SdkMessageResponse response, SdkMessageResponseField field, ServiceProvider serviceProvider)
at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildMessageResponse(SdkMessagePair messagePair, SdkMessageResponse sdkMessageResponse, ServiceProvider serviceProvider)

0: Warning - Skipping PreferredSolutionUsedBy.Message Pair from being generated. - Supporting Types Missing
0: Information - Wrote 734 Message(s). Skipped 1015 Message(s) - 00:00:00.7714481

and I now have a solution with several thousand compilation errors, mostly compaining about mssing types in the generated classes:
image

I did look your suggested wiki page: https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/Version-2.2023.4.3-Upgrade-To-PAC-ModelBuilder
but that doesn't exist yet :-)

I'll try a few things out and see if I can get things working, but any tips on switching to v2 would be very useful if you have them.
Thanks so much,
Ben

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

@bwmodular you're on the latest version of the XTB, correct?

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Yes, latest version of XTB....

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Hi Daryl,
back looking at v2 today after our v1 detour yesterday. 😉
Couple of things to mention.

1.) The new version you posted above resolves the original 'Error attempting to GenerateAttributeNameConsts!' issue. The Generate process now fails with this error for me:
[ 0: Information ] - Wrote 96 Entities - 00:00:01.8216569
[ 0: Information ] - Processing 1749 Messages
[ 0: Error ] - Source : Microsoft.PowerPlatform.Dataverse.ModelBuilderLib
Method : BuildResponseField
Date : 09:28:02
Time : 01/12/2023
Error : Type Microsoft.Xrm.Sdk.PreferredSolutionDetails is not available
Stack Trace : at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildResponseField(SdkMessageResponse response, SdkMessageResponseField field, ServiceProvider serviceProvider)
at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildMessageResponse(SdkMessagePair messagePair, SdkMessageResponse sdkMessageResponse, ServiceProvider serviceProvider)

The error still occurs if I revert to a default settings file, rather than an upgraded v1 file.

2.) At some point when running the tool yesterday, it pointed me at this page.
https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/Version-2.2023.4.3-Upgrade-To-PAC-ModelBuilder
However, that page doesn't exist - it should probably point here:
https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/EBG-%E2%80%90-Version-2.2023.4.3-Upgrade-To-PAC-ModelBuilder
which I found just now and will read through to see if there are any hints in there that I've missed.
I'm not sue when it actually pointed me at that page as it's not doing so today, but it was defintely there in the logs at some point.

Let me know if I can provide any more info on the current issue.

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

Hi Daryl, back looking at v2 today after our v1 detour yesterday. 😉 Couple of things to mention.

1.) The new version you posted above resolves the original 'Error attempting to GenerateAttributeNameConsts!' issue. The Generate process now fails with this error for me: [ 0: Information ] - Wrote 96 Entities - 00:00:01.8216569 [ 0: Information ] - Processing 1749 Messages [ 0: Error ] - Source : Microsoft.PowerPlatform.Dataverse.ModelBuilderLib Method : BuildResponseField Date : 09:28:02 Time : 01/12/2023 Error : Type Microsoft.Xrm.Sdk.PreferredSolutionDetails is not available Stack Trace : at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildResponseField(SdkMessageResponse response, SdkMessageResponseField field, ServiceProvider serviceProvider) at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.CodeGenerationService.BuildMessageResponse(SdkMessagePair messagePair, SdkMessageResponse sdkMessageResponse, ServiceProvider serviceProvider)

The error still occurs if I revert to a default settings file, rather than an upgraded v1 file.

2.) At some point when running the tool yesterday, it pointed me at this page. https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/Version-2.2023.4.3-Upgrade-To-PAC-ModelBuilder However, that page doesn't exist - it should probably point here: https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/wiki/EBG-%E2%80%90-Version-2.2023.4.3-Upgrade-To-PAC-ModelBuilder which I found just now and will read through to see if there are any hints in there that I've missed. I'm not sue when it actually pointed me at that page as it's not doing so today, but it was defintely there in the logs at some point.

Let me know if I can provide any more info on the current issue.

#456 Fixed the first issue you had and #457 will fix the URL issue.

As far as your current issue, please wait until the next version of the XTB is deployed, there is a fix in the assembly loading that will allow me to actually push a version of the EBGV2 without having to ILMerge, which I think is causing the issue that you're seeing.

from dlab.xrm.xrmtoolboxtools.

bwmodular avatar bwmodular commented on June 2, 2024

Wonderful, thanks! I’ll test with the next version of XTB…

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

Wonderful, thanks! I’ll test with the next version of XTB…

And you'll need to wait for me to actually publish the next version of the EBGV2.

from dlab.xrm.xrmtoolboxtools.

daryllabar avatar daryllabar commented on June 2, 2024

Fix is in the latest version.

from dlab.xrm.xrmtoolboxtools.

Related Issues (20)

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.