Skip to main content

Event log error of soap web service in axapta to D365FO

 ComponentName CustomServices 

  exceptionMessage Microsoft.Dynamics.Framework.Services.Compiler.Soap.SoapServiceCompileException: Code compile failed. c:\Users\Admin58d4b701fe\AppData\Local\Temp\8af9311e31a44d709460cea11e26d22d\qadynl2j.0.cs(32,64) : error CS0101: The namespace 'Dynamics.AX.Application.Services.WLKSalesLineService' already contains a definition for 'WLKSalesLineService' at Microsoft.Dynamics.Framework.Services.Compiler.Soap.SoapServiceCompiler.CompileCode(SoapServiceCompileContext context) at Microsoft.Dynamics.Framework.Services.Compiler.Soap.SoapServiceCompiler.CompileService(String serviceGroupName, SoapServiceCompileContext context) at Microsoft.Dynamics.Framework.Services.Hosting.Soap.SoapXppServiceRoute.GetHostingInfo(String serviceGroupName) 

  infoMessage Exception while setting up the hosting info. 


Please comment your suggestion .


I'm getting this error in event log for one service:

error CS1503: Argument 1: cannot convert from 'Dynamics.AX.Application.WLKCustVendStatusContract' to 'Microsoft.Dynamics.Ax.Xpp.Set'



[

    SysEntryPointAttribute(true),

    AifCollectionTypeAttribute("_accountNum",Types::String),

    AifCollectionTypeAttribute("return",Types::Class, classStr(WLKCustVendStatusContract))

]

public WLKCustVendStatusContract VendorStatus(AccountNum     _accountNum)

{

    VendTable                   VendTable;

    WLKCustVendStatusContract   ret;

    VendTable = VendTable::find(_accountNum);


    if(VendTable)

    {

        ret = new WLKCustVendStatusContract();

        ret.parmCreditLimit(0);

        ret.parmCustVendorBlocked(VendTable.Blocked);

    }

    else

    {

        ret = null;

    }


    return ret;

}


if i add this method in service then getting error

Popular posts from this blog

How to set up parent project in project accounting in ax 2012

create simple project and then go to the project hierarchy fast tab and there you must define sub-project ID format "-#" and then your sub-project will be enabled. For resource assigning in Project first you need to configure the HR module, in that you need to maintain the calendar for those employees and then you need to define the cost of that particular employee (for expense) and for Revenue you need to define the sales price of that particular employee. In the project accounting module you need to mention the calendar in scheduling fast tab and then you need to define WBS, in WBS activity you can be able to assign resources.

ERD Account Payable and Account Receivable in ax 2012