MscrmTools/MsCrmTools.Translator

System.NullReferenceException

Closed this issue · 26 comments

I was using this tool and it started give me this error
MicrosoftTeams-image (14)

I did all the steps as the days before.
It returns the same error to all my colleagues.

Hi @SamueleNobile
Can you confirm there is no extra lines in your file? to be sure, you can save the visualization sheet to csv and check last lines

Can you also precise the version of the tool?

Hi @MscrmTools
the version is 1.2022.2.18

I just checked and I confirm that there are not any extra line.

@SamueleNobile Can you send me the sheet for charts? I do not reproduce on my side

Hi @MscrmTools , thanks for your help.
Unfortunately I cannot send you the sheets.
I assure you that I tried with different files including less or more things but it never worked for this particular connection.

The error you sent a screenshot of is for charts. Can you look for something different in this sheet?

Good morning @MscrmTools,
we changed few data in order to send the file to you.
Could you provide me a email to send the file to?

Thanks in advance

Can you send it to tanguy92[@]gmail_dot_com (remove brackets and replace dot by .

@SamueleNobile ok I got your file but did not reproduced either the error message you sent first.
Can you send me the latest error screenshot that you have?

stact commented

Hi @MscrmTools got same issue on Charts. How to check on a previous version? I can't rollback the update ^^

Hi @stact, any chance I can get your file?
If you want to revert to a previous version, you can download and extract a specific nuget package version and replace the file in your Plugins folder

stact commented

Hi @MscrmTools thank you for the trick!
Working with this previous version.
I sent you the file for investigation.

@stact, Thank you for the file.
I was able to parse it and import without any issue (except the fact that some charts does not exist on my target env)
I really don't know what is the problem here...
I know the answer is "no" but would it be possible to get an access to the environment to try importing the file to the faulty env ?

stact commented

Hi @MscrmTools yes sure, but we are not on online platform, let me send you a meeting for screen share ;)

@stact if you are not online, then no interest. I would have liked to connect directly to debug code in real time

So what is your version of CRM?

stact commented

Here the version @MscrmTools
Microsoft Dynamics 365
Version 2104 (9.1.9.8) (DB 9.1.9.8) on-premises

Ok, so I don't have the exact same version (Version 2104 (9.1.1.162) (base de données 9.1.1.162) local) but on my VM OnPremise Dynamics 365, I do not get this error...

stact commented

Could you share with us the procedure to debug the tool please?

Download source code and open it with visual studio
Restore Nuget packages (right click on solution)
Configure the project for debug : https://www.xrmtoolbox.com/documentation/for-developers/debug/
Run the project
Connect to your organisation
Import your file
Visual studio should stop where the null reference occurs
Send me a screenshot of visual studio where the problem occurs

Hi,
I have same issue when importing charts with English and Danish translations.
I believe I have most up-to-date versions with:

  • XrmToolBox version is 1.2022.5.56.
  • Easy Translator version is 1.2022.2.18.
  • My environment is type Developer with database version 9.2.22063.00186.

I should fairly easy get it up and running in a Trial environment where you can get access to if needed. However, I will be offline and on holiday for the next weeks, so it should probably be after that. I do have a Trial that expires in 14 days, so that would probably not be relevant to use. Please give a shout if you want me to give access to this.

@arlassen if you can reproduce on this trial env, then I'm interesting to get access info to this trial + your translation file. I can have a quick check today

@MscrmTools great!, I have just emailed you the info.

@arlassen Thank you for these information!

I found out that everything works fine when debugging but I can reproduce when using Easy Translator in XrmToolBox directly (not in Visual Studio). I will try to understand what is happening

Ok, Found it! Will be fixed soon

Good news, now it also works for me. Thanks for solving this :-)