You are SOL on that example, if you had a function that returned that DataSet then you could say
var myds = myFunction.GetDatASet(); and it wouldn't complain, but since you are directly invoking the dataset you are screwed. External DLL is really your only choice I believe.
<div>
<p></p><div>Â Â Â Â Â Â Â Â Â <span style="white-space:pre-wrap;"> </span>Erp.BO.SelectSerialNumbersParamsDataSet dsSelectSerialNum = new Erp.BO.SelectSerialNumbersParamsDataSet();</div><div><br></div><div><span style="white-space:pre-wrap;"> </span>DataSet dsSelectSerialNum = new DataSet();</div><div><br></div><div><span style="white-space:pre-wrap;"> </span>ssn.GetSerialNumFormat(dsSelectSerialNum, txtPartNum.Text, "", "", 0, "");</div><div><span style="white-space:pre-wrap;"> </span> Â Â Â Â <span style="white-space:pre-wrap;"> </span>cs.SelectedSerialNumbers.AddSelectedSerialNumbersRow(session.CompanyID, txtSNLOT.Text, false, "", false, "", "", "", txtPartNum.Text, "", txtSNLOT.Text, Guid.NewGuid(),</div><div><span style="white-space:pre-wrap;"> </span> Â Â Â Â Â Â Â Â Â Â Â null, false, false, "", txtSNLOT.Text, 0, "", false, "", "", false, "", "",Guid.NewGuid(), "A");</div><div><br></div><p></p>
</div><span>
<div style="color:#fff;min-height:0;"></div>
In a BPM if you have a Business Object that uses the SerialNumberSelected Data set. Any time you add more than one reference that contains that DataSet you get compiler error. Stating that the dataset is defined in more than one assembly.
This can be solved in visual studio by using Global Reference Aliases... but that isn't available within BPM.
Does anyone have a way to get this to work? I am trying to avoid having to push stuff out to an "External" DLL.
For example in SalesOrderEntry.Update BPM I am trying to invoke a the ServiceRenderer for InventoryQrtAdj
Get this error The type 'Erp.Tablesets.SelectSerialNumbersParamsTableset' exists in both 'c:\inetpub\wwwroot\AF\Server\Assemblies\Erp.Contracts.BO.InventoryQtyAdj.dll' and 'c:\inetpub\wwwroot\Af\Server\Assemblies\Erp.Contracts.BO.SalesOrder.dll'Â
Don't have an answer for the internal need to alias but curious why resistance to external DLL?
I am finding myself much more productive using external BPMs DLLs. I can do all my work in Visual Studio with all its benefits. Working in the internal designer you have to save it before you get any meaningful syntax checking and you have issues like you are experiencing where you have most of .net at your fingertips but not quite all of it.
I especially like that a single DLL can be used by BPMs associated with different methods by using different entry points. I currently have UD108 and UD109 both calling the same DLL with different entry points but once inside they share a lot of the same routines.
Minor annoyance is the need to recycle the application pool after each release of the DLL. It doesn't kick users out like the message says, just slows them down a little.
<div>
<p>Don't have an answer for the internal need to alias but curious why resistance to external DLL?  </p><div><br></div><div>I am finding myself much more productive using external BPMs DLLs. I can do all my work in Visual Studio with all its benefits. Working in the internal designer you have to save it before you get any meaningful syntax checking and you have issues like you are experiencing where you have most of .net at your fingertips but not quite all of it.</div><div><br></div><div>I especially like that a single DLL can be used by BPMs associated with different methods by using different entry points. I currently have UD108 and UD109 both calling the same DLL with different entry points but once inside they share a lot of the same routines.</div><div><br></div><div>Minor annoyance is the need to recycle the application pool after each release of the DLL. It doesn't kick users out like the message says, just slows them down a little.<br><div><br></div><div>Jim Kinneman</div><div>Encompass Solutions, Inc  </div></div><p></p>
</div>
<div style="color:#fff;min-height:0;"></div>
I have raised this issue with Tony Wilby during the Insights as i had similar issue with few other business objects where LegalNumber table is used. This is the limitation and will be addressed later. This issue exists in 10.1 new Business Object BPM option as well.
If possible try with DataDirective BPM as that's the work around i have used.
<div id="ygrps-yiv-275208826ygrp-text">
<p></p><div dir="ltr"><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Hi Guys,</div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">In a BPM if you have a Business Object that uses the SerialNumberSelected Data set. Any time you add more than one reference that contains that DataSet you get compiler error. Stating that the dataset is defined in more than one assembly.</div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">This can be solved in visual studio by using Global Reference Aliases... but that isn't available within BPM.</div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Does anyone have a way to get this to work? I am trying to avoid having to push stuff out to an "External" DLL.</div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">For example in SalesOrderEntry.Update BPM I am trying to invoke a the ServiceRenderer for InventoryQrtAdj</div><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-275208826gmail_default"><font face="verdana, sans-serif">Get this error</font><br><font face="verdana, sans-serif">The type 'Erp.Tablesets.SelectSerialNumbersParamsTableset' exists in both 'c:\inetpub\wwwroot\AF\Server\Assemblies\Erp.Contracts.BO.InventoryQtyAdj.dll' and 'c:\inetpub\wwwroot\Af\Server\Assemblies\Erp.Contracts.BO.SalesOrder.dll' </font><br></div><div><div class="ygrps-yiv-275208826gmail_signature"><div dir="ltr"><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><br><font color="#333333"><div class="ygrps-yiv-275208826gmail_default" style="font-family:verdana, sans-serif;font-size:small;">​Any ideas would be greatly appreciated<b>​</b></div><br></font></font></div><div><font face="verdana, sans-serif"><font color="#333333"><b><br></b></font></font></div><div><font face="verdana, sans-serif"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br><br></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice">904.469.1524</span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br><a rel="nofollow" target="_blank" href="http://www.josecgomez.com"><font color="#FF6600">http://www.josecgomez.com</font></a><br><a rel="nofollow" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1473006873&sig=lyk2gvsaLWutHH5cUkeVKw--~C"></a> <a rel="nofollow" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1473006873&sig=1S61O5xfDTcoSJXCKBqyJA--~C"></a> </font><a rel="nofollow" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1473006873&sig=iIq_A22EGPn5OdHl4vL75Q--~C"></a> <a rel="nofollow" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1473006873&sig=Az43PZy34PDgIPjYiNXkfg--~C"></a> <a rel="nofollow" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1473006873&sig=df5X6UA8.nwl_u0fDICreg--~C"></a> <span style="font-family:verdana, sans-serif;"><a rel="nofollow" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1473006873&sig=4R0TcPcJdhUfOXggykJC6w--~C"></a> </span></div><div><span lang="LA" style="color:black;"><br><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet
Thanks Arul I got around it by putting the function I needed outside in an External Dll but that's a bummer. I fiddled with reflection too but ti took too long to get it working. I've been told its fixed in 10.2... so you know circa 2020 we'll see it :-D
<div>
<p></p><div>Hi Jose,</div><div>I have raised this issue with Tony Wilby during the Insights as i had similar issue with few other business objects where LegalNumber table is used. This is the limitation and will be addressed later. This issue exists in 10.1 new Business Object BPM option as well.</div><div><br></div><div>If possible try with DataDirective BPM as that's the work around i have used.</div><div><br></div><div>Regards,</div><div>Arul<br><br>Sent from my iPhone</div><div><div class="ygrps-yiv-1990254398h5"><div><br>On 22 Aug 2015, at 12:42 am, Jose Gomez <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a> [vantage] <<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
Â
<div>
<p></p><div dir="ltr"><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Hi Guys,</div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">In a BPM if you have a Business Object that uses the SerialNumberSelected Data set. Any time you add more than one reference that contains that DataSet you get compiler error. Stating that the dataset is defined in more than one assembly.</div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">This can be solved in visual studio by using Global Reference Aliases... but that isn't available within BPM.</div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">Does anyone have a way to get this to work? I am trying to avoid having to push stuff out to an "External" DLL.</div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">For example in SalesOrderEntry.Update BPM I am trying to invoke a the ServiceRenderer for InventoryQrtAdj</div><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;"><br></div><div class="ygrps-yiv-1990254398gmail_default"><font face="verdana, sans-serif">Get this error</font><br><font face="verdana, sans-serif">The type 'Erp.Tablesets.SelectSerialNumbersParamsTableset' exists in both 'c:\inetpub\wwwroot\AF\Server\Assemblies\Erp.Contracts.BO.InventoryQtyAdj.dll' and 'c:\inetpub\wwwroot\Af\Server\Assemblies\Erp.Contracts.BO.SalesOrder.dll' </font><br></div><div><div><div dir="ltr"><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><br><font color="#333333"><div class="ygrps-yiv-1990254398gmail_default" style="font-family:verdana, sans-serif;font-size:small;">​Any ideas would be greatly appreciated<b>​</b></div><br></font></font></div><div><font face="verdana, sans-serif"><font color="#333333"><b><br></b></font></font></div><div><font face="verdana, sans-serif"><font color="#333333"><b>Jose C Gomez</b></font></font></div><div><font color="#666666" face="verdana, sans-serif" size="1"><b>Software Engineer<br><br></b></font></div><div><font face="verdana, sans-serif"><font><font color="#666666"><b><br></b></font><font color="#FF6600" size="1">T: </font></font><font size="1"><span title="Call with Google Voice"><span title="Call with Google Voice"><a rel="nofollow">904.469.1524</a></span></span> mobile</font></font></div><div><font size="1" face="verdana, sans-serif"><font color="#FF6600">E:</font> <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a></font><font size="1" face="verdana, sans-serif"><br><a rel="nofollow" target="_blank" href="http://www.josecgomez.com"><font color="#FF6600">http://www.josecgomez.com</font></a><br><a rel="nofollow" target="_blank" href="http://www.linkedin.com/in/josecgomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Flinkedin.png&t=1473006873&sig=lyk2gvsaLWutHH5cUkeVKw--~C"></a> <a rel="nofollow" target="_blank" href="http://www.facebook.com/josegomez" style="font-size:small;"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ffacebook.png&t=1473006873&sig=1S61O5xfDTcoSJXCKBqyJA--~C"></a> </font><a rel="nofollow" target="_blank" href="http://www.google.com/profiles/jose.gomez"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fgoogle.png&t=1473006873&sig=iIq_A22EGPn5OdHl4vL75Q--~C"></a> <a rel="nofollow" target="_blank" href="http://www.twitter.com/joc85"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Ftwitter.png&t=1473006873&sig=Az43PZy34PDgIPjYiNXkfg--~C"></a> <a rel="nofollow" target="_blank" href="http://www.josecgomez.com/professional-resume/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Fwp.png&t=1473006873&sig=df5X6UA8.nwl_u0fDICreg--~C"></a> <span style="font-family:verdana, sans-serif;"><a rel="nofollow" target="_blank" href="http://www.josecgomez.com/feed/"><img src="https://ec.yimg.com/ec?url=http%3A%2F%2Fwww.josecgomez.com%2Fimages%2Frss.png&t=1473006873&sig=4R0TcPcJdhUfOXggykJC6w--~C"></a> </span></div><div><span lang="LA" style="color:black;"><br><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet
I know this is an older post but I'm running into the same issue with adding a serial number to a shipment. I've never created a DLL.. How difficult is this to make and reference in a form customization?
Error: CS0433 - line 521 (1647) - The type 'Erp.BO.SelectSerialNumbersParamsDataSet' exists in both 'c:\Epicor\ERP10.0Client\Client\Erp.Contracts.BO.CustShip.dll' and 'c:\Epicor\ERP10.0Client\Client\Erp.Contracts.BO.SalesOrder.dll'
<div>
<p>I know this is an older post but I'm running into the same issue with adding a serial number to a shipment. I've never created a DLL.. How difficult is this to make and reference in a form customization?</p><div><br></div><div><div><span style="word-spacing:normal;"> Error: CS0433 - line 521 (1647) - The type 'Erp.BO.SelectSerialNumbersParamsDataSet' exists in both 'c:\Epicor\ERP10.0Client\Client\Erp.Contracts.BO.CustShip.dll' and 'c:\Epicor\ERP10.0Client\Client\Erp.Contracts.BO.SalesOrder.dll'</span><br></div><div><div><br></div><div>I do have visual studio.</div></div><div><br></div></div><p></p>
</div>
<div style="color:#fff;min-height:0;"></div>
<div>
<p></p><div>Â Â Â Â Â Â Â Â Â <span style="white-space:pre-wrap;"> </span>Erp.BO.SelectSerialNumbersParamsDataSet dsSelectSerialNum = new Erp.BO.SelectSerialNumbersParamsDataSet();</div><div><br></div><div><span style="white-space:pre-wrap;"> </span>DataSet dsSelectSerialNum = new DataSet();</div><div><br></div><div><span style="white-space:pre-wrap;"> </span>ssn.GetSerialNumFormat(dsSelectSerialNum, txtPartNum.Text, "", "", 0, "");</div><div><span style="white-space:pre-wrap;"> </span> Â Â Â Â <span style="white-space:pre-wrap;"> </span>cs.SelectedSerialNumbers.AddSelectedSerialNumbersRow(session.CompanyID, txtSNLOT.Text, false, "", false, "", "", "", txtPartNum.Text, "", txtSNLOT.Text, Guid.NewGuid(),</div><div><span style="white-space:pre-wrap;"> </span> Â Â Â Â Â Â Â Â Â Â Â null, false, false, "", txtSNLOT.Text, 0, "", false, "", "", false, "", "",Guid.NewGuid(), "A");</div><div><br></div><p></p>
</div><span class="ygrps-yiv-1238120587">
<div style="color:#fff;min-height:0;"></div>