E10 Duplicate Dataset Issue

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.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, Feb 23, 2016 at 1:15 PM, Jose Gomez <jose@...> wrote:



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, Feb 23, 2016 at 1:05 PM, don.n.doan@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<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, &quot;&quot;, &quot;&quot;, 0, &quot;&quot;);</div><div><span style="white-space:pre-wrap;">	</span> Â  Â  Â  Â <span style="white-space:pre-wrap;">		</span>cs.SelectedSerialNumbers.AddSelectedSerialNumbersRow(session.CompanyID, txtSNLOT.Text, false, &quot;&quot;, false, &quot;&quot;, &quot;&quot;, &quot;&quot;, txtPartNum.Text, &quot;&quot;, txtSNLOT.Text, Guid.NewGuid(),</div><div><span style="white-space:pre-wrap;">	</span> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  null, false, false, &quot;&quot;, txtSNLOT.Text, 0, &quot;&quot;, false, &quot;&quot;, &quot;&quot;, false, &quot;&quot;, &quot;&quot;,Guid.NewGuid(), &quot;A&quot;);</div><div><br></div><p></p>

</div><span>
 


<div style="color:#fff;min-height:0;"></div>



Hi Guys,
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'Â


​Any ideas would be greatly appreciated​


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?
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.

Jim Kinneman
Encompass Solutions, Inc  
Yeah app recycling is one, and I don't particularly want to have to go back and re-compile my DLL's every time they upgrade.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Fri, Aug 21, 2015 at 10:56 AM, jckinneman@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Don&#39;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&#39;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>

Hi Jose,
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.

Regards,
Arul

Sent from my iPhone

On 22 Aug 2015, at 12:42 am, Jose Gomez jose@... [vantage] <vantage@yahoogroups.com> wrote:

 

<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&#39;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 &quot;External&quot; 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 &#39;Erp.Tablesets.SelectSerialNumbersParamsTableset&#39; exists in both &#39;c:&#92;inetpub&#92;wwwroot&#92;AF&#92;Server&#92;Assemblies&#92;Erp.Contracts.BO.InventoryQtyAdj.dll&#39; and &#39;c:&#92;inetpub&#92;wwwroot&#92;Af&#92;Server&#92;Assemblies&#92;Erp.Contracts.BO.SalesOrder.dll&#39;&nbsp;</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>&nbsp;<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>&nbsp;</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>&nbsp;<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>&nbsp;<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>&nbsp;<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>&nbsp;</span></div><div><span lang="LA" style="color:black;"><br><font face="Verdana, sans-serif" style="font-weight:bold;" size="1"><i>Quis custodiet

ipsos custodes?

</div>
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


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Fri, Aug 21, 2015 at 6:19 PM, Arul Shankar sanuarul@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<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&#39;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] &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; 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&#39;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 &quot;External&quot; 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 &#39;Erp.Tablesets.SelectSerialNumbersParamsTableset&#39; exists in both &#39;c:&#92;inetpub&#92;wwwroot&#92;AF&#92;Server&#92;Assemblies&#92;Erp.Contracts.BO.InventoryQtyAdj.dll&#39; and &#39;c:&#92;inetpub&#92;wwwroot&#92;Af&#92;Server&#92;Assemblies&#92;Erp.Contracts.BO.SalesOrder.dll&#39; </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

ipsos custodes?

</div>

</div>
 


<div style="color:#fff;min-height:0;"></div>

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'

I do have visual studio.

You may be able to get around some of this by using var instead of typed data set. What line in your code is giving you issues?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, Feb 23, 2016 at 1:01 PM, don.n.doan@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>I know this is an older post but I&#39;m running into the same issue with adding a serial number to a shipment.  I&#39;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 &#39;Erp.BO.SelectSerialNumbersParamsDataSet&#39; exists in both &#39;c:&#92;Epicor&#92;ERP10.0Client&#92;Client&#92;Erp.Contracts.BO.CustShip.dll&#39; and &#39;c:&#92;Epicor&#92;ERP10.0Client&#92;Client&#92;Erp.Contracts.BO.SalesOrder.dll&#39;</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>

                 Erp.BO.SelectSerialNumbersParamsDataSet dsSelectSerialNum = new Erp.BO.SelectSerialNumbersParamsDataSet();

DataSet dsSelectSerialNum = new DataSet();

ssn.GetSerialNumFormat(dsSelectSerialNum, txtPartNum.Text, "", "", 0, "");
        cs.SelectedSerialNumbers.AddSelectedSerialNumbersRow(session.CompanyID, txtSNLOT.Text, false, "", false, "", "", "", txtPartNum.Text, "", txtSNLOT.Text, Guid.NewGuid(),
                      null, false, false, "", txtSNLOT.Text, 0, "", false, "", "", false, "", "",Guid.NewGuid(), "A");




Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, Feb 23, 2016 at 1:05 PM, don.n.doan@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<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, &quot;&quot;, &quot;&quot;, 0, &quot;&quot;);</div><div><span style="white-space:pre-wrap;">	</span> Â  Â  Â  Â <span style="white-space:pre-wrap;">		</span>cs.SelectedSerialNumbers.AddSelectedSerialNumbersRow(session.CompanyID, txtSNLOT.Text, false, &quot;&quot;, false, &quot;&quot;, &quot;&quot;, &quot;&quot;, txtPartNum.Text, &quot;&quot;, txtSNLOT.Text, Guid.NewGuid(),</div><div><span style="white-space:pre-wrap;">	</span> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  null, false, false, &quot;&quot;, txtSNLOT.Text, 0, &quot;&quot;, false, &quot;&quot;, &quot;&quot;, false, &quot;&quot;, &quot;&quot;,Guid.NewGuid(), &quot;A&quot;);</div><div><br></div><p></p>

</div><span class="ygrps-yiv-1238120587">
 


<div style="color:#fff;min-height:0;"></div>