Skip to main content

Posts

Authentication Error on consuming web service reference in MSD axapta

If you are getting Authentication Error on consuming web service reference in axapta like this "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate'. The remote server returned an error: (401) Unauthorized” Then you need to check application configuration file in service reference folder from application folder. You need to check <behaviors /> tag you can replace with following code. <behavior name="allowDelegation"> <clientCredentials> <windows allowedImpersonationLevel="Delegation" /> </clientCredentials> </behavior> Then you need to check security tag. Previous code <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Def

Error while consuming web service Reference in MSD axapta

If you have added service reference in axapta and getting following error while call any method by using service reference object. Description: Type 'System.ServiceModel.Channels.ReceivedFault' in assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable. This type of error problem could occurred  if your connection is being time out just you need to set limit of time out in service configuration I hope your error get resolved.

Error while posting the Prepayment for a Purchase order in MSD Axapta

If you are getting an error while posting the Prepayment for a Purchase order- "Account number does not exist for type Prepayment". Solution: You need to check  set up for 1) Posting profile of 'Advance' and attached it in the Parameter of AP. 2) Attached the prepayment account in Item posting but  if you still  getting that error then go to step 3. 3.If its mapped in Item Posting only for GROUP then you need changed it to ALL .

code to Get current system time in MSD axapta

To Get current system time in axapta by code you can use following method. TimeInMS CurrentTime; str timeinstr; CurrentTime =timeNow(); //If you want to convert time in string format then you can use time2str method. timeinstr =time2str(CurrentTime ,0,0); //Syntax of time2str method is time2Str( int _time, int _separator, int _timeFormat)

Get Primary key field name of table in MSD axapta by code

To Get Primary key field name of table in axapta by code you can try following code. First you need to declare variable for dictTable . DictTable _dictTable; DictField _dictField; ; _dictTable = new SysDictTable(tableNum(SalesTable)); // Then you need to call primary key field by passing table id like here we have pass salestable and dicttable.id() method will get id of salestable. _dictField = new SysDictField(dictTable.id(), dictTable.primaryKeyField()); info(dictField.name());

Miscellaneous charges calculation by code in MSD axapta

To calculate Miscellaneous charges calculation by code in axapta you can get code hint by below method AmountCur LineMiscValue; MarkupTrans markupTrans; MarkupTable markTable; while select markupTrans where markupTrans.TransTableId ==CustInvoiceTrans.TableId && markupTrans.TransRecId == CustInvoiceTrans.RecId join markTable where markTable.MarkupCode == markupTrans.MarkupCode && markTable.ModuleType == ModuleInventCustVend::Cust { LineMiscValue = totalLineValue + MarkUp::calcTrans(markupTrans,CustInvoiceTrans.Qty, CustInvoiceTrans.LineAmout); } return LineMiscValue