carfup / XTBPlugins.PCF2BPF

Add PCF controls to your BPF in few clicks !
GNU General Public License v3.0
4 stars 0 forks source link

Error when loading BPF entities #13

Closed nagyRS closed 2 years ago

nagyRS commented 2 years ago

I'm getting an "Object reference not set to an instance of an object" error when loading the BPF entities with the tool. The connection with the Dataverse org is working fine, and the org has multiple BPF entities. Thanks

malkhawaja commented 2 years ago

I have the same issue!!

carfup commented 2 years ago

Hello @nagyRS & @malkhawaja ,

Thanks for reporting the issue. I'm not able to reproduce it, is there anything "special" with the BPFs in your organizations so I could figure out the issue ?

Example : BPFs with multiple entities, special fields, anything.

Another way to figure this out would be if possible for you to provide me a temporary access to your instance so I can debug it.

Let me know,

MscrmTools commented 2 years ago

@nagyRS @malkhawaja, it seems the issue is more about loading PCF than BPF. Could you tell us if you installed or developed yourself some PCFs on the impacted environment?

nagyRS commented 2 years ago

Hi @carfup / @MscrmTools - thanks for getting back to me. I've uninstalled the tool and reinstalled it again and managed to make it work for a short while. When I started making changes the tool crashed and when I reopened it, it produced the same error as above. You're right there is status msg 'loading available PCF in your environment', but it's so quick I could not take a screenshot. I've tried it with multiple environments with the same result. We did not develop/install any PCFs only using oob components. Unfortunately I'm not able to give you access to orgs but managed to copy the error logs when the tool crashed - attached here. Thanks errorLog.txt

carfup commented 2 years ago

Thanks for your feedback @nagyRS.

Can you tell us is you are trying to apply a PCF to a field or edit an existing one ? Which oob PCF is it ?

nagyRS commented 2 years ago

@carfup - I was trying to modify an existing field on the BPF to change a Yes/No button to a toggle.

malkhawaja commented 2 years ago

in my case I just press the button (Load BPF entities) then I am presented with this error: image

and I tried it for another instance connection it loaded with no problems! but I am not sure what is wrong for my environment

RA-Danny commented 2 years ago

Same as @malkhawaja for me. Just pressing the button "Load BPFs" leads to the object reference error... I've tried with multiple orgs, always the same issue... :(

carfup commented 2 years ago

Thanks all for your feedbacks. May you try that version to solve the issue or get more details (if we are in that case please send me the details) Carfup.XTBPlugins.PCF2BPF.zip Waiting for your feedbacks. Clément

malkhawaja commented 2 years ago

@carfup how can we install this file?

carfup commented 2 years ago

From XrmTooloBox go to : Configuration > Settings >Tab named "Path" > Click on "Open Xrm Toolbox Storage folder" > in the folder open the Plugins one > copy the DLL and replace the existing one from my previous message.

nagyRS commented 2 years ago

Hi @carfup - a different error this time. Listing the steps I performed:

  1. downloaded zip file from above
  2. Extracted the zip
  3. Found the path of old dll
  4. replaced the old dll to the new one
  5. restarted machine and xrm toolbox
  6. opened xrm toolbox and connected to organisation
  7. open pcf2bpf tool

The error now pops up before opening the tool. Details attached.

UnhandledException.txt ErrorDetails.txt UnhandledException ErrorDetail

Thank you

carfup commented 2 years ago

@nagyRS My mistake here, a dll is missing when I build the project locally ... Can you please try to add this one temporary to the Plugins folder : Microsoft.ApplicationInsights.zip ? You may delete it once I figured out the issue here.

nagyRS commented 2 years ago

@carfup - this has worked. Thanks a lot ! 👍

carfup commented 2 years ago

@carfup - this has worked. Thanks a lot ! 👍

You mean it worked loading the plugin or it's fully fixed now ?

nagyRS commented 2 years ago

Both. I could load the plugin and I could change the control to a toggle

carfup commented 2 years ago

@malkhawaja @RA-Danny can you please try this too to confirm the fix ?

malkhawaja commented 2 years ago

Hi @carfup , I confirm that it is working perfectly now!

carfup commented 2 years ago

I'll publish the update by tomorrow then. Thanks for your feedbacks

carfup commented 2 years ago

The version is now published on the XrmToolBox library. Enjoy !