123Aman / reportsync

Automatically exported from code.google.com/p/reportsync
0 stars 0 forks source link

DataSource not getting mapped while clicking on Set #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Tools->Map Data Sources
2.Select Destination datasources
3.Unhandled Exeption - Object reference not set to an instance of an object

What is the expected output? What do you see instead?
Hoping datasources getting map and sync few reports from 2007 to 2012 SSRS

What version of the product are you using? On what operating system?
Report Sync Version 1.0.0.4895

Please provide any additional information below.
This is the error description in detail:

System.NullReferenceException: Object reference not set to an instance of an 
object.
   at ReportSync.MapDatasources.btnSet_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original issue reported on code.google.com by jitp...@gmail.com on 16 Mar 2013 at 5:59

GoogleCodeExporter commented 8 years ago
Hi. Thanks for reporting. 
I do not have access to an instance of 2012, but it has worked well for me 
between 2005 and 2008 instances. 
Mapping data sources does work normally. 
Would it be possible for you to let me take a look using a tool like TeamViewer?

Original comment by nunespascal on 16 Mar 2013 at 4:35

GoogleCodeExporter commented 8 years ago
This seems to be an issue, when having more Sources than Destinations.
I have 5 DataSources on my source server and only 2 on my target server, which 
I have mapped.

I have fetched the sources and stepped through it, the problem is in the 
"MapDatasources.cs" file, line 49.
This works:

var destPath = dataSourcesGrid["Destination", i].Value == null ? "" : 
dataSourcesGrid["Destination", i].Value.ToString();

Cheers,
Phil

Original comment by dapa...@gmail.com on 2 Apr 2013 at 5:32

GoogleCodeExporter commented 8 years ago
Thanks for helping out. 

I will fix it and make a new release. 

I never considered the possibility of wanting to leave some datasources 
unattached.

Original comment by nunespascal on 2 Apr 2013 at 5:38

GoogleCodeExporter commented 8 years ago
Fixed and committed. 

Will be out in the next release. 

Original comment by nunespascal on 2 Apr 2013 at 5:47