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

Role center in AX 2012 r3

$
0
0

Greetings,

After installing SP and EP.

From AX when I open the Role Center from System Administrator => User Profiles and then View Role Center. It give following error:

An unhandled error has occured. To vide details about this error, enable debugging in tehweb.config file or
view the windows event logs.

Event log as follows :

An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs.

Either the user, domain\axadmin, does not have access to the Dynamics AX initial database, or the database does not exist.

Microsoft SQL Server 2014 Analysis Services

at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.IExecuteProvider.ExecuteTabular(CommandBehavior behavior, ICommandContentProvider contentProvider, AdomdPropertyCollection commandProperties, IDataParameterCollection parameters)
at Microsoft.AnalysisServices.AdomdClient.AdomdCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.AnalysisServices.AdomdClient.AdomdCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AnalysisServerHelper.FillTable(DataTable table, IDbCommand cmd)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AnalysisServerHelper.ExecuteQuery(String mdxQuery, IEnumerable`1 userParameters)
at CustCashInflowvsCashOutflow.GetCompanyAccountingCurrency()
at CustCashInflowvsCashOutflow.SetDefaultReportParameterValues()
at CustCashInflowvsCashOutflow.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Error when adding a batch job

$
0
0

Hi all, I worked on a class that will send emails automatically depending on certain conditions. This class runs fine as a batch job on our development server, but, when I try to add it to production server, I get an error when I press save to add it as a new task on a new batch job.

The error says "SysQueryRun object not initialized". Normally I would try to debug the class, but the same class works fine on the Development server. I have no idea how to proceed. Does this mean that there is some deeper problem with the classes on the Production server?

Import Sales Orders through a CSV file

$
0
0

Hi All,

I am trying to import 1000+ sales orders into AX 2009, I have a job but I cannot import multiple line sales orders. I will admit that I am not the best programmer and this is a common task that many of us has preform. Would anyone have an X++ they can share as an example to do this?

I am using the axSalesTable and axSalesLine class to do this.

Cheers

TEST

Display Method

$
0
0

help It doesn't work to display.... using ax 2012

display String255 getaddressfrom()

{

DimensionAttribute _dimensionattribute;

DimensionAttributeValueSetItemView _dimensionview;

Kre_ms_Sitelist _kreMS;

select KREAddressFrom from this where this.DefaultDimension == _dimensionview.DimensionAttributeValueSet;

select _dimensionview where _dimensionview.DimensionAttribute == _dimensionattribute.RecId;

select _dimensionview where _dimensionview.DisplayValue == _kreMS.KRE_SiteIdiForte;

this.KREAddressFrom = _kreMS.KREAddress;

return this.KREAddressFrom;

}

It doesn't work to display.... using ax 2012

Report in Dynamics 365 for Operation

$
0
0

Dear All,

Can you please let me know is there any changes in Report in Dynamics 365 for Operation?
Means it's still in SSRS report?

Please give me more shed on this.

Thanks!

Arpan Sen

How to add user in VM for Dynamics 365 for Operation

$
0
0

Note : This is Virtual machine. I want to give 2 users to access VM for Dynamics 365 for Operation.

I am creating my O365 account. Then i ran "Admin user provisioning" and provide my O365 account. It's gave admin access in O365 account and able to login in to VM in Dynamics 365 for Operation successfully as mention below  :

Now i wants to add 2 users in Dynamics 365 for Opeartion.

My question is we need to create O365 account for those 2 users also?

Please let me know what i need to put in EMail = ?

Please give me more shed on this.

Thanks!

Arpan Sen

Auto Posting Ledger Journal Take a Long Time

$
0
0

Dear Experts,

I'm beginner develop dynamic ax, now creating auto post journal through X++ by using AxLedgerJournalTableClass and AxLedgerJournalTransClass

My data saved on my temporary table, then successfully create 1 journal with 1459 lines on 5 minute

Could I tune up my code to make it faster?

Here is Server Specification :

Processor     :  Intel i3 2.40Ghz

RAM             : 8 GB

And here is my code 

static void TestAutoPost(Args _args)
{
    AxLedgerJournalTable    journalTableClass;
    AxLedgerJournalTrans    journalTransClass;

    container ledgerDimension;
    container defaultDimension;

    VDI_LedgerJournal_Temp ledgerJournalTemp;
    LedgerJournalTable      ledgerJournalTable;
    LedgerJournalCheckPost  ledgerJournalCheckPost;
    int no = 1;

    DialogButton autopost;
    ;
    autopost = Box::yesNo("Do you want to auto post all journal?",DialogButton::Yes,"Auto Post Question");
    try{
        journalTableClass   = new AxLedgerJournalTable();

        select ledgerJournalTemp group by ledgerJournalTemp.JournalName,ledgerJournalTemp.Description;

        journalTableClass.parmJournalName(ledgerJournalTemp.JournalName);
        journalTableClass.parmName(ledgerJournalTemp.Description);
        journalTableClass.save();

        while
        select ledgerJournalTemp
        {
            journalTransClass   = new AxLedgerJournalTrans();

            journalTransClass.parmJournalNum(journalTableClass.ledgerJournalTable().JournalNum);
            journalTransClass.parmTxt(ledgerJournalTemp.LineDescription);
            journalTransClass.parmTransDate(ledgerJournalTemp.TransactionDate);
            journalTransClass.parmCurrencyCode(ledgerJournalTemp.CurrencyCode);
            journalTransClass.parmAmountCurDebit(ledgerJournalTemp.DebitAmount);
            journalTransClass.parmAmountCurCredit(ledgerJournalTemp.CreditAmount);
            defaultDimension = [1,"TransactionType",ledgerJournalTemp.LedgerDimension];
            journalTransClass.parmDefaultDimension(AxdDimensionUtil::getDimensionAttributeValueSetId(defaultDimension));
            journalTransClass.parmOffsetDefaultDimension(AxdDimensionUtil::getDimensionAttributeValueSetId(defaultDimension));
            journalTransClass.parmAccountType(LedgerJournalACType::Ledger);
            ledgerDimension = [ledgerJournalTemp.AccountNum+"-"+ledgerJournalTemp.LedgerDimension,ledgerJournalTemp.AccountNum,1,"TransactionType",ledgerJournalTemp.LedgerDimension];
            journalTransClass.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(ledgerDimension));
            journalTransClass.parmOffsetLedgerDimension(DimensionStorage::getDynamicAccount(ledgerJournalTemp.OffsetLedgerDimension, LedgerJournalACType::Bank) );
            journalTransClass.parmOffsetAccountType(LedgerJournalACType::Bank);
            journalTransClass.parmDocumentNum(ledgerJournalTemp.Document);
            journalTransClass.save();
            no++;
        }

        if(autopost == DialogButton::Yes){
            ledgerJournalCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(journalTableClass.ledgerJournalTable(),NoYes::Yes);
            ledgerJournalCheckPost.run();
        }
        info(strFmt("Journal has been saved with %1 lines",no));
    }
    catch(Exception::Error){
        error(strFmt("Error at line %1",no));
    }
}



Create batch job for workflow process

$
0
0

Hi all,

I want to create a batch job for workflow process.

Actual scenario: This is regarding purchase requisition.Requester will submit the PR workflow.After that approver required to change the PR means send Request change request to Requester.After receiving the request from approver, he didn't respond within 24 hours means send notification to requester.After 24 hours(i.e 48 hours form the Request change) also he didn't respond means 'Reject the PR' and send notification to both Requester and Approver.

Please guide me how to achieve this via batch job or any other way.

Thanks.

Deploying customization to Production Environment with ZERO downtime

$
0
0

We are an E-commerce company using Microsoft Dynamics AX 2012 R3 as our Back-End system. We also have a B2C website which users buy goods from. The thing is we have regular customizations in AX which they have to be deployed to production environment every two or three weeks. To accomplish this goal right now as stated in "Deploying customizations across Microsoft Dynamics environments" whitepaper, we have to restart the AOS instances and perform Full Database Synchronization which leads to a 40 minutes Downtime for us.

Questions:

  •  Is it possible to deploy XPO files to production environment for specific scenarios in which we have minor changes instead of deploying the Model Store if So what is its requirement and prerequisites?
  •  Is it possible to Synchronize only those Tables that has been changed or do I have to perform Full Database Synchronization every time after deploying Model Store?
  •  As we have two  AOS instances - one to handle our Website requests and the other for Company users - is that possible to Stop one of them only and deploy the customizations as it is not possible to stop the AOS in charge of handling Website requests every time

Thanks

Syncronization Error

$
0
0

Dear Team,

While creating PO getting SQL error so then we found SQL server has been hanged, restarted the services.

after that i tried sync the database from from-end that time i'm getting below error. Please suggest.


FormTreeItem object not initialized.
Stack trace
(S)\Classes\SysSqlAdminClass\handleSelectedItems - line 26
(C)\Forms\SysSqlAdmin\Methods\runThroughTablesAndIndexes - line 42
(C)\Forms\SysSqlAdmin\Designs\DesignList\buttonSynchronize\Methods\Clicked - line 6

Thanks 

Suresh

Sample Payment Connector and documentation.

$
0
0

I am developing a payment connector for AX 2012 - R3 which is a way to integrate third party payment gateways with R3. There is not sample code available with the retail sdk for payment connector. Microsoft ships the sample code with retail sdk of AX7 and detailed document is available as well but they don't with R3 and R2. The Dynamics community suggests that we should open the support ticket with Microsoft.

Please guide me on which support channel to open the ticket? Secondly It would be great help if someone had already requested and can share the sample code of payment connector. 

Error when Posting Invoice

$
0
0

I've been facing these error for 2 days when posting invoice :


*Account number for transaction type Vendor balance does not exist.

*Posting has been canceled.

I have checked vendor posting profile and everything seems fine. already set the summary account and settle account correctly.
Is there anything I sould do/check beside that? Thank you, really appreciate any help

How to configure WCF Service Timeout for Dynamic AX 2012

$
0
0

Hi there,

I have developed WCF services on Dynamic AX 2012 R3 to get data of Dynamic Ax database.

I call these services in C#.Net application.

The problem is that whenever i select to much data from Dynamic AX server, it got timeout error

 

System.ServiceModel.CommunicationException: The socket connection has been aborted. This can be caused by an error in processing the message, exceeding the receive timeout on the remote host, or the underlying network resource problem. Local socket timeout was '01: 09: 59.8281398'. ---> System.IO.IOException: The read operation failed. See internal exception. ---> System.ServiceModel.CommunicationException: The socket connection has been aborted. This can be caused by an error in processing the message, exceeding the receive timeout on the remote host, or the underlying network resource problem. Local socket timeout was '01: 09: 59.8281398'. ---> System.Net.Sockets.SocketException: The existing connection was forcibly disconnected to the remote host.

I set timeout configuration on client is '01:10:00'. The error comes after about 10 minutes running .NET app .

So, is it necessary to set timeout configuration on server. And we can i setting this value.

I am new to Dynamic AX, please help.

Thanks you all.

Not Responding Issue

$
0
0

Dear All,

For some users who frequenty use screens like "ALL Sale orsers" or " Purchase Orders" are experiencing No"Not Responding" State and complete software will be stopped working. 

Please see below screenshot.


How to create queries with multiple tables?

$
0
0

Good morning guys,

I want to create a query based on the following table: CustGroup, CustTable, CustLedger, MainAccount and Currency. But I do not know how to link relationship the tables together. The requirement is that I have to make a report to retrieve Cash and Cash Debt There's a company in any one month. If you can help me. Please do it because I needed. thank you so much. 

My English is very bad. So if you don't understand my question. Please tell me, I will explain to you. Help me

Offline Components - "You can't switch to offline mode. Either the offline components are not installed or the logon failed"

$
0
0

Hi all,

At the moment I am encountering a tedious issue when trying to switch the Retail Modern POS from online to offline. Although I have successfully created my offline database, I am encountering this issue when clicking on the "Disconnect" button - "You can't switch to offline mode. Either the offline components are not installed or the logon failed. Try to logon again or contact your system administrator.". I can assure you that the credentials of the offline database are correct.

Below please find the steps which I've did in order to troubleshoot the issue:

1. Switched on the "Microsoft Dynamics AX for Retail Modern POS offline sync service" from the services.msc

2. Changed the LogOn account to point to a domain account which its password doesn't expire and restarted the "Microsoft Dynamics AX for Retail Modern POS offline sync service" service. (i.e. ABC\kevin)

3. Opened the Retail Channel Configuration Utility and successfully created a new offline database.

3. Deleted the AppData configuration file of the Microsoft Dynamics Retail POS windows app package from the DOMStore (i.e. C:\Users\xxxx\AppData\Local\Packages\Microsoft.Dynamics.Retail.Pos_8wekyb3d8bbwe\AC\Microsoft\Internet Explorer\DOMStore)

 


4. Granted the necessary SQL user rights to the domain user (i.e. ABC\kevin) from the SQL Management Studio to the new created offline database (i.e. RetailOfflineDB).

5. However, when I've tried to configure the Retail Modern POS application to connect to the new created offline database by using the Retail Channel Configuration Utility, I've got the following error "An error occurred while modifying the Offline Sync Service. Please verify that your credentials are correct.". I can assure you that the credentials are correct, however I am still getting this second error.

Is there someone that can shed some light on this issue please?

For your information, the Retail Modern POS & all retail components including the Retail Database Utility/Retail Channel Configuration Utility have this version number is: 6.3.5000.231

Thanks for your cooperation,

Kind Regards,

Kevin

How to fetch user id who posted a purchase order

$
0
0

Hi all,

 I need to fetch the User id of the user who has posted a Purchase order and print it on the Product receipts form.

please give me any suggestions how to fetch it....

Opening Balance transfer in new R3

$
0
0

I want to trasnfer previous year closing balance of main accounts in R2 system to new R3 system opening balance.

I just want to clear while transfering it to R3 in setup should I create closing transactions during transfer i.e, do i need to marked that check box in setup ? It will make any sense in new R3 system.
Please advice me about that .

Thanks in Advance

Retail - Group by product with combined discount

$
0
0

Hi guys,

When i add twice the product to the transaction, if the product have a combined discount, appear two lines. i want only one line and modify the qty to 2. In DataBase appear two lines too, i need only 1 record.

The result should be

How can i change this?

Thanks.

Viewing all 46681 articles
Browse latest View live


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