I am using a Reusable component library that I developed and I am getting this error:
Error ERROR Validation Error error BC30560: Error in project-level import ‘SSV_STATUS_REPORTING.ProcessBatch’ at ‘SSV_STATUS_REPORTING.ProcessBatch’ : ‘ProcessBatch’ is ambiguous in the namespace ‘SSV_STATUS_REPORTING’. Main.xaml
The name of the library I developed is SSV.STATUS.REPORTING and under that I have a folder called ProcessBatch. The library is tested and is running fine. When I include it in my bot, I am getting this error.
It means there is more than one namespace that contains a method called ProcessBatch, so you have to specify the entire namespace in your expression. For example…
Directory.GetFiles can cause this exception so you have to use the full expression System.IO.Directory.GetFiles so it knows exactly which one you mean.
I have it only once. Moreover, I only use Manage packages to add a package, right? Don’t we all?
This is from the imports panel and this is the first thing I checked too.
BTW, this is the library I had mentioned before in another question, which I was able to resolve by downgrading the DataService package to 21.10.1 version and then all those issues went away.
If you just put Copy(myVar) into one of your expressions it doesn’t know which of those you mean. That’s what makes it ambiguous. You have to use the entire expression so either Test.TextValues.Copy(myVar) or Anotherobject.Someproperty.Copy(myVar) so you’re specifying which to use.
You are right that I have a conflict in the custom activity code. The entity names as well as 2 folders in the project have identical names. That may have caused the ambiguity from outside the RUC code. (Not within the RUC code). Once I renamed the folder names slightly, the error is gone.