For now I will describe a very rudimentary/old school way to analyse a report I had deployed to CRM Online throwing the following error
Not much to go on, you get a retry and a close, unfortunately no download log. Searching around CRM gave no hints as to what was causing this.
What was my particular issue?
Firstly, you might be wondering what was the exact problem I ran into on my report. It was an issue with images which we have attached to an entity. We use this to download and display images on the report. The SSRS report was set up to render a JPEG, but somebody uploaded a BMP file. This was oddly working fine from within Visual Studio, but in the Report Viewer it did not like it. I would have liked the image to not render instead of throwing an error like the above. But how did I discover the problem?Step 1 - It works on my machine!
I started with the old developer trick to see if it ran on my machine. Open up Visual Studio and run the report for the same report/record combination. You can do this by modifying the parameter called CRM_Filterednew_entity where obviously "new_entity" refers to the entity you run the report against. This parameter is simply some fetch xml that you can build using an advanced find to filter to the record in question.Once you have performed the above, does the report run? If not you should get an error a bit more substantial than what the Report View was displaying.
If the report does indeed run, check instead for warnings. These can often surface as a processing error in Report Viewer. Nuke all of your warnings where possible!
None of the above worked for me.
Step 2 - Trim the hedges
It's working within visual studio. So what can you do? Create a copy of the report and start trimming pieces off it to find the root cause. Start with more likely parts, for example:Remove a complex table. Deploy the report. Does it run?
Remove some complex expressions. Deploy the report. Does it run?
Remove sorts. Deploy the report. Does it run?
Remove show/hide expressions etc. Does it run?
Remove images. Does it run?
...
This is where I stopped as it highlighted my issue, but you see where I'm going with this. Keep stripping bits and pieces until you hit what's making the report fail. You can undertake this process of elimination in quite a binary fashion as well to speed up the process. For example, remove half of the report, does the error go away? Remove the other half, does the error go away? Drill into the half with the error and repeat the process.
ReplyDeleteHello All ▲▲▲ I am Dianna Kent and I live in Nevada, U.S .I am a full member of the Illuminati brotherhood, and am among the 1252 lodge. ▲▲▲ Iwas ordained by the Grand-master to go out to the world and bringmore members to the Illuminati, ▲ so I was requested to get 400Recruits for the brotherhood, I have 210 new recruits already. I amlooking for only 190 more to go,▲I am sure you want to be amongthe 190 people that will be earning $500,000 monthly and a brandnew car, ▲so add me up now so we can achieve this great chanceof being rich ▲. You get to live your dream life on earth filled with luxury. so i urge you not to miss thisGreat opportunity becoming what you long wished for life email: illuminatitemple6634@gmail.com or Whats-app +1(854) 220-5771 for guidance
Hello All ▲▲▲ I am Dianna Kent and I live in Nevada, U.S .I am a full member of the Illuminati brotherhood, and am among the 1252 lodge. ▲▲▲ Iwas ordained by the Grand-master to go out to the world and bringmore members to the Illuminati, ▲ so I was requested to get 400Recruits for the brotherhood, I have 210 new recruits already. I amlooking for only 190 more to go,▲I am sure you want to be amongthe 190 people that will be earning $500,000 monthly and a brandnew car, ▲so add me up now so we can achieve this great chanceof being rich ▲. You get to live your dream life on earth filled with luxury. so i urge you not to miss thisGreat opportunity becoming what you long wished for life email: illuminatitemple6634@gmail.com or Whats-app +1(854) 220-5771 for guidance
Hello All ▲▲▲ I am Dianna Kent and I live in Nevada, U.S .I am a full member of the Illuminati brotherhood, and am among the 1252 lodge. ▲▲▲ Iwas ordained by the Grand-master to go out to the world and bringmore members to the Illuminati, ▲ so I was requested to get 400Recruits for the brotherhood, I have 210 new recruits already. I amlooking for only 190 more to go,▲I am sure you want to be amongthe 190 people that will be earning $500,000 monthly and a brandnew car, ▲so add me up now so we can achieve this great chanceof being rich ▲. You get to live your dream life on earth filled with luxury. so i urge you not to miss thisGreat opportunity becoming what you long wished for life email: illuminatitemple6634@gmail.com or Whats-app +1(854) 220-5771 for guidance