Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 73760 articles
Browse latest View live

Creating a new Party record (for the purpose of creating a new Prospect) via X++

$
0
0

I'm trying to toy around with importing data via csv with X++ and creating brand new prospects.  So I'm trying to figure out the different problems first.  

The first thing I'm trying to do is create a DirParty entry with the org name, address, and contact info.  So right now I just have code trying to create this entry so I can get a partyId to then insert when I go to put a new entry into the smmBusRelTable.  I am getting this error message though saying Field 'Name' is required and I am not seeing these entries in the global address book or in the tables themselves.  I get this error 2x.

 smmBusRelTable prospect;
    DirParty dirParty;
    DirPartyPostalAddressView dirPartyPostalAddressView;
    DirPartyContactInfoView dirPartyContactInfoView;
    
    ttsBegin;
    prospect.initValue();
    
    dirParty = dirParty::constructFromCommon(prospect);
    dirParty.parmName("Test");
    dirParty.parmNameAlias("Test");
    info(dirParty.parmName());
    dirPartyPostalAddressView.LocationName = "Test";
    dirPartyPostalAddressView.Address = "Test Address";
    dirPartyPostalAddressView.County = "Test";
    dirPartyPostalAddressView.State = "IL";
    dirPartyPostalAddressView.ZipCode = "60115";
    dirPartyPostalAddressView.CountryRegionId = "US";
    

    
    dirparty.createOrUpdatePostalAddress(dirPartyPostalAddressView);
    
    
    dirPartyContactInfoView.LocationName = "Phone";
    dirPartyContactInfoView.Type = LogisticsElectronicAddressMethodType::Phone;
    dirPartyContactInfoView.Locator = "2222222222";
    
    dirParty.createOrUpdateContactInfo(dirPartyContactInfoView);
    info(strFmt("%1",dirParty.parmPartyNumber()));
    ttsCommit;



Purpose of AXCustTable class and others

$
0
0

Hi,

Can someone please tell me what is the purpose of classes starts with AX*** like AXCustTable in AX 2012. Where these classes are used and in what circumstances we are required to modifiy these class. Please example will be really helpful.

axbuild command to compile only classes in ax 2012

$
0
0

Hi,

I am looking for a command only to compile classes in AOT using parallel build axbuild.exe command. I see this command has xppcompileall switch but did not find how to use it only for sub set of obejcts like Classes.

want to change the Price of Item...

$
0
0

hi all.

i want to change the price of an Item in ax2012. kindly let me know how can i do it??

regrads,

Hassan

Automatic fill Journal batch number in SSRS Report

$
0
0

I have a made a Query Type SSRS Report of a customized Journal Voucher.

I have no problem with the output and i already deployed it in AX.

But when I run the Report, I have to fill-up the Parameter (Journal batch number),

I would like to ask if there is a way to automatically fill-up the Journal batch number, upon clicking a General Journal Record. (because the sample Journal Voucher in AX is working that way).

Please help me, Thanks.

How to process 'Credit only' option during vendor return?

$
0
0

We have a disposition code 'Credit only' while processing the customer return.

This is to cover the business case, when we do not want customer to send us the goods back but will credit their account. 

Question is how to handle same scenario while dealing with vendor return where we are the customer?

So we do not want to send the goods to vendor but vendor will get our account credited back.

Is it through payment journal or?

How to scrap the product - using inventory journal manually or there is a out of box option available which scraps the product while invoice updating the purchase order? 

Any idea?

Regards

-Rahul

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'. ---> System.Net.WebException

$
0
0

Dear Experts,

I am trying to integrate between AX and dotnet. I have created AX web service(inbound process) through AIF and hosted it in IIS. I got a wsdl url which is working fine in both( One in which AX is running and other machine where .Net project is running) systems . In .Net, I have created an Empty web application with web service and added service reference with the "wsdl"Link which was generated from AX. In .Net when I am accessing their service method and passing the parameter value , it is throwing Below Error:

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'

It would be great if i get guideline to solve the client authentication problem asap.

AX2012 R2 Dateformat, DD-MMM-YYYY in French

$
0
0

Hi

we use as dateformate DD-MMM-YYYY. When the dynamcis user is set to EN-US it look good for June / July

12-Jun-2015, 12-Jul-2015

When setting the date format to FR-FR ..

i get 12-Jui-2015, 12-Jui-2015  ( as June = Juin , July = Juillet) .. so the 3 letters "Jui" make from a first 3 letters  standpoint sense ..  but not for the user to read.  MS Windows seems to avoid this problem, when setting to MMM in French you get the full month name ...

Any ideas about that 

Pirmin


How to unlink two grids

$
0
0

Hi everyone, 

I am having an issue at the moment. I have designed a simple form with two grids populated by two separate datasources, the first one based on VendTrans table and the second one based on VendInvoicePurchLink table.

I have coded a button two retrieve the purchase order(s) based on an invoice number. So far everything works just fine. The problem is that when I filter the records in the first grid (VendTrans table), the records in the second grid (VendInvoicePurchLink) also get filtered, and not in a good way. I haven't specified any dynalinks for these datasources and I don't understand why this is happening. I have tried to override the following methods : enter(), inputSearch() and filter() but without success. Any clues on how I could make these two grids independent, that is, if I filter the results in the first grid, the second grid isn't filtered automatically ? 

Best regards, 

Get check value from a FormGroupControl

$
0
0

Hi,

I don't know how to get the value of a group with has the frameOptionButton() method set to check.

How I can know if the value of the group is checked or not check?

Thanks in advance.

Temporary table as form data source

$
0
0

I have a form which should display data in the grid based on certain parameters. The grid has a temporary table as its data source.

Please see the image below:


Now, I have used the linkPhysicalTableInstance( tempTable::populateTable(parm1, parm2)) on the clicked event of OK button. The records are getting inserted into the temporary table but are not getting displayed on the form.

Any idea about this?

AIF Inbound XML cause Error: The value cannot be null: Parameter Name: document

$
0
0

Hello together,

I want implement an AIF Inbound service for exchange data. For that I have created a table and query. With the wizard I have created the nessary private Project. Furthermore I have Setup the Inbound port and the Service object.

For testing I have created a sample XML which you can find below. If I try to Import this XML I receive the error message "The value cannot be null: Parameter Name: document".

Have someone an idea why this error occur?

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="schemas.microsoft.com/.../Message">
 <Header>
  <Action>schemas.microsoft.com/.../create&lt;/Action>
 </Header>
 <Body>
  <MessageParts xmlns="schemas.microsoft.com/.../Message">
   <AxdObiZEKOM_DEB_HIST xmlns="schemas.microsoft.com/.../ObiZEKOM_DEB_HIST">
    <AxdEntity_ObiZECOM_DEB_HIST_1 class="entity" action="create">
     <DATEI>/PDIS/OBI/TNP/6069/100152-RSSBELEGDATEN-20130326-1431.xml</DATEI>
     <DATID>127</DATID>
     <ERDAT>26.03.2013</ERDAT>
     <LFDID>11</LFDID>
     <MAHNS>0</MAHNS>
     <MANDANTID>100152</MANDANTID>
     <MANDT>242</MANDT>
     <MSERDAT>27.03.2013</MSERDAT>
     <MSERZET>110017</MSERZET>
     <TNP_BETRAG>134,89</TNP_BETRAG>
     <TNP_JE_NO>10012356</TNP_JE_NO>
     <TNP_JEDAT>26.03.2013</TNP_JEDAT>
     <TNP_JETYP>10</TNP_JETYP>
     <TNP_KUNNR>1000200456</TNP_KUNNR>
     <VBELN_VA>2000596685</VBELN_VA>
     <WAERS>EUR</WAERS>
    </AxdEntity_ObiZECOM_DEB_HIST_1>
   </AxdObiZEKOM_DEB_HIST>
  </MessageParts>
 </Body>
</Envelope>

Problem with project invoice

$
0
0

Hi.

When trying to post a project invoice proposal I recieve this. (I have upgraded from AX 2012 R2 RTM to AX 2012 R3 CU9)

Posting
Project contract ID: 39395188
Cannot edit a record in Hours (ProjEmplTransSale).
The operation cannot be completed, since the record was not selected for update. Remember TTSBEGIN/TTSCOMMIT as well as the FORUPDATE clause.
(S)\Classes\xRecord\update
(S)\Data Dictionary\Tables\ProjEmplTransSale\Methods\update - line 21
(S)\Classes\ProjPostEmplProposalSale\projTransUpdate - line 36
(S)\Classes\ProjPost\postTrans - line 56
(S)\Classes\ProjInvoiceJournalPost\createProjInvoiceEmpl - line 112
(S)\Classes\ProjInvoiceJournalPost\endLines - line 12
(S)\Classes\FormletterJournalPost\post - line 209
(S)\Classes\FormletterJournalPost\run - line 11
(S)\Classes\FormletterService\postJournal - line 42
(S)\Classes\FormletterService\run - line 80
(S)\Classes\ProjFormLetter\run - line 17
(S)\Classes\ProjFormLetter_Invoice\run - line 7
(S)\Classes\ProjFormLetter\mainOnServer - line 55
(C)\Classes\ProjFormLetter\main - line 37
(C)\Classes\FormFunctionButtonControl\Clicked

About to update a record in table 'ProjEmplTransSale' which was not selected for update (RecId is 5637167831). [W-0108]

AX2012r3 CU9 Application Version ( 6.3.2000.323) Difference from Kernel Version (6.3.2000.326)

$
0
0

I'm having issue after updating Existing AX2012r3 Cu8 to Cu9 ,because Application Version ( 6.3.2000.323) Differ from Kernal Version  (6.3.2000.326).
As per the below technet blog , it can be avoid using split stream when installing .
http://blogs.technet.com/b/dynamicsaxse/archive/2015/06/10/announcing-cumulative-update-9-for-microsoft-dynamics-ax-2012-r3.aspx

But my concern is what is the solution for the upgraded system already ?. 

any one found solution for above issue ?,

Thanks ,
Amith Prasanna

Disable the table field mandatory info log

$
0
0

Hi,

I created one custom table. In that I have 5 fields(field 1*(Mandatory), field 2, field 3, field 4*(Mandatory), field 5).

i wrote some code for auto updating the fields, if I enter the field 1 it automatically fills the field 3(depend upon my requirement). Here comes my question.

In a form level if I create the new record and filled the field 1 so automatically field 3 fills in, once that is finished the info log throws me a warning "The FIELD 4 must be filled in". I have to remove that. That warning should come once I close the form or save the form, if I didn't fill the field 4. It should not come once I fill the field 1. 

Please help me to achieve this


Misc. charges

$
0
0

Good afternoon,

I'm currently tasked with looking into the misc. charges. This is currently being used by our sales department for things like the transport costs. Our purchase department however has never used this.

Now I've set up a line in the "misc. charges code" form and set both debit and credit types to a ledger account and filled in an account number. However when I choose to use this on an order (either header or lines) and set the category to "percent" and set the misc. charges value to 8 (as I need it to be 8 percent) it does not have any effect on the price.

Am I missing a step here or perhaps doing something wrong?

At what point will AX actually book the costs in the ledger? Will it instantly book these ledgers or will the order need to be fully invoiced first?

I also haven't found anything about setting the standard value at 8%. Is there a way of doing this?

Thanks in advance!

"Error in deserializing body of reply message for operation 'read'"

$
0
0

Hi,

When I'm trying to sync Customer from AX to CRM the Dynamics Connector throws this exception.

[Retry] has encountered an error. Processing will be aborted. Error text: Error in deserializing body of reply message for operation 'read'.

--- Exception Dump --- Caught Exception: [System.ServiceModel.CommunicationException] Error in deserializing body of reply message for operation 'read'. Stack trace:

Server stack trace: at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters) at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at SalesOrderService.read(SalesOrderServiceReadRequest request) at SalesOrderServiceClient.read(CallContext CallContext, EntityKey[] EntityKeyList) at Microsoft.Dynamics.Integration.Adapters.AX2012.DynamicServiceObjectProviderBase.ReadContainerByKey(Object key) at Microsoft.Dynamics.Integration.Adapters.AX2012.DynamicServiceObjectProviderBase.ReadObject(Object key) at Microsoft.Dynamics.Integration.Service.Tasks.RecordWork.ProcessRead(Object recordKey, DbMap map, String loggingSourceName, Boolean& isFiltered) at Microsoft.Dynamics.Integration.Service.Tasks.RecordWork.DoRecordWork(DbMap map, Object key, OperationType operationType, DateTime startTime, String loggingSourceName)

Inner Exception: [System.InvalidOperationException] There is an error in the XML document. Stack trace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.ServiceModel.Dispatcher.XmlSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, Object[] parameters, Boolean isRequest)

Inner Exception: [System.InvalidOperationException] Instance validation error: 'NationalAgreement' is not a valid value for AxdExtType_TradeLineDlvTypeId. Stack trace: at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read151_AxdExtType_TradeLineDlvTypeId(String s) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read152_Item(Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read210_AxdEntity_SalesLine(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read227_AxdEntity_SalesTable(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read228_AxdSalesOrder(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSalesOrderService.Read256_SalesOrderServiceReadResponse() at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer18.Deserialize(XmlSerializationReader reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

How to modify the settings of the “Export” button on the EP web page

$
0
0

Hi!

I’ve got an assignment to modify the SSRS report in AX 2009. The scenario is the following:

  1. On EP the user click “Create the report”;

  2. Than he inputs some parameters and the report is renders on EP.

  3. Then the user has two options: print and save the report.

  4. If the user chose - save the report (let’s say – in PDF), the report will be saved (into dedicated place) but the report will be split on three pages, let’s say – four columns on the first page, other four columns on the second page and last two columns on the third page. At the same time, if I want to print report (see #3) and I adjust the printer settings as I need – it will be printed on one page (as I expected)

  5. Additional information: if to run the report from AOS or from VS – it will be saved as I expected – on the one page.

    So, I think the problem – is how to modify the settings of the “Export” button on the EP web page.

    Can you please suggest the appropriate answer – is my assumption correct? And how to do this?

Thank you

Oleksandr

Ax SSRS Barcode 128 - Carriage Return

$
0
0

Hi, need some help. I need to make a line of barcode to scan for 4 lines. Tried to include embedded carriage return into a 128 barcode, tried using ~013, num2str(13) but its not working.

Barcode font in Ax SSRS Im using BC 128 HD, the barcode was encoded by Ax method by method like this one

static BarCodeString encodeBC128(str returnText)
{
    Barcode barcode;
    ;

    barcode = Barcode::construct(BarcodeType::Code128);
    barcode.string(true, returnText);
    barcode.encode();

    return barcode.barcodeStr();
}



Re-open or re-activate a cancelled PO

$
0
0

We had a user cancel a PO by mistake. Is there a way to re-open or re-activate that PO?

Viewing all 73760 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>