Hi guys,
My project have error below:
bc30561: ‘action’ is ambiguous, imported from the namespaces or types ‘system, microsoft.office.interop.outlook’
Please help me fix it?
Thank you all.
Hi guys,
My project have error below:
bc30561: ‘action’ is ambiguous, imported from the namespaces or types ‘system, microsoft.office.interop.outlook’
Please help me fix it?
Thank you all.
Hi,
It seems same as the following. For now, can you save it then restart Studio?
Regards,
Hi,
I don’t understand how to fix the error like the article. Do you share me detail?
Many thanks
Hi,
According to the above topic, it repairs by changing version. And the latest Studio has automatic recovery feature.
So for now can you try to save all the xaml files then reopen Studio, and upgrade or downgrade M365 package and/or Mail package to some version.
Regards,
Hi,
I works have your solution, but can’t fix it. Are you differrent solution?
Hey,
I resolved it in mine specifying the entire namespace before the method, wherever i use it.
Example: Microsoft.Office.Interop.Outlook.MethodName
Try n see if that works
HI @NewBiew @elasri.omayma1 ,
Can you share your project? It’s no problem dummy project if we can reproduce this issue.
Regards,
It means there are two imported namespaces that have an .Action method. So it doesn’t know which one you want to use. For example, say we have two namespaces with .Action:
system.SomePackage.SomeClass.Action
system.AnotherPackage.SomeClass.Action
It doesn’t know whether to use system.SomePackage or system.AnotherPackage to execute SomeClass.Action
So you need to specify the entire namespace. In this case it’s telling you the two .Actions are…
System.Action
Microsoft.Office.Interop.Outlook.Action
So you need to type the entire namespace not just Action
Hi,
“I resolved it in mine specifying the entire namespace before the method”
Could you share detail it?
Hi, could you share example for it?
With image below, What do I need to do to declare a variable “Dtb_LogHistory”?
Hi,
My project:
Main.xaml (124.3 KB)
HI,
If possible, can you share your project including project.json etc. as zip file because single xaml file doesn’t have version information for activities package?
Regards,
Hi,
zip my project:
Main.zip (15.8 KB)
Hi
I re-create new project which has same dependencies for activities package, then port it from your original project. Can you check if this works in your environment?
Sample20230615-3.zip (12.0 KB)
Regards,
Hi, It works. Many thank for your support.
can you tell me where the error is coming from?
HI,
Thank you for checking.
Further investigation, it seems to be caused by the following element : <x:String>Microsoft.Office.Interop.Outlook</x:String>
For now, can you try to remove the above element your original Main.xaml using text editor, then check if it works?
(please back up the Main.xaml before do it)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.