E9 DataSet type exists in two different libraries

Well you can use it if you are uusing var... give it a shot I've gotten arround that same exact error with var before.. in E10


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Dec 16, 2015 at 5:11 PM, jimt@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Thanks Jose. </p><div><br></div><div>I have a suspicion that I am SOL like you say... the dataset needs to be used for further BO calls after it is pulled in. </div><p></p>

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


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


I'm trying to get the PackOutDataSet in my code from CustShip BO in order to work with some kit parts.  When I try to pull in the dataset, i get the following error:

Code:

string warning = "";

Epicor.Mfg.BO.CustShip cust = new Epicor.Mfg.BO.CustShip((oTrans.Session as Epicor.Mfg.Core.Session).ConnectionPool);

Epicor.Mfg.BO.PackOutDataSet pods = cust.POGetNew(orderNum,packNum, out warning);



Error: CS0433 

The type 'Epicor.Mfg.BO.PackOutDataSet' exists in both Epicor.Mfg.IF.ICustShip.dll' and Epicor.Mfg.IF.IPackOutSearch.dll'


How do I direct it to the CustShip type and not the PackOutSearch?  The reference assemblies for CustShip are in the customization, nothing referenced with PackOutSearch. The error code is leading me to set a reference alias, but will not recognize the alias definition. Any input would be great.  


Thanks.


Jim

You can't... however try and see if you can use var instead of the type that may let you get away with it for a sec. To set a ref alias you need visual studio.... you are either SOL or the using var might help you

var pods = cust.POGetNew(orderNum,packNum, out warning);





Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Dec 16, 2015 at 4:33 PM, jimt@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span>I&#39;m trying to get the PackOutDataSet in my code from CustShip BO in order to work with some kit parts.  When I try to pull in the dataset, i get the following error:</span></p><p></p><blockquote style="padding:0px;"><p><span style="font-weight:bold;">Code:</span></p><p>string warning = &quot;&quot;;</p><p>Epicor.Mfg.BO.CustShip cust = new Epicor.Mfg.BO.CustShip((oTrans.Session as Epicor.Mfg.Core.Session).ConnectionPool);</p><p>Epicor.Mfg.BO.PackOutDataSet pods = cust.POGetNew(orderNum,packNum, out warning);</p><p><span><br></span></p><p><br></p><p><span style="font-weight:bold;">Error: </span>CS0433 </p><p>The type &#39;Epicor.Mfg.BO.PackOutDataSet&#39; exists in both Epicor.Mfg.IF.ICustShip.dll&#39; and Epicor.Mfg.IF.IPackOutSearch.dll&#39;</p></blockquote><p><span></span></p><p><span></span></p><div><br></div><p><span>How do I direct it to the CustShip type and not the PackOutSearch?  The reference assemblies for CustShip are in the customization, nothing referenced with PackOutSearch. The error code is leading me to set a <a rel="nofollow" target="_blank" href="https://msdn.microsoft.com/en-us/library/yabyz3h4.aspx">reference </a>alias, but will not recognize the alias definition. Any input would be great.  </span></p><p><span><br></span></p><p><span>Thanks.</span></p><p><span><br></span></p><p><span>Jim</span></p><p></p>

<p></p></div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>

Thanks Jose. 

I have a suspicion that I am SOL like you say... the dataset needs to be used for further BO calls after it is pulled in.