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

AX 2012 R3 client crashes

$
0
0

Dear All,

in my organization some users are facing some strange issue that max client not opens or getting closed immediately after the ax window appears in the screen. It was working perfectly with them before. Please advise

Tried reinstalling the client in windows 10 machines and still the same .


Unchecked Post Physical inventory

$
0
0

Dear Experts,

In our company in dynamics ax in inventory module on item model group option(POST PHYSICAL INVENTORY) is unchecked, what will be the affect on our system and what does that mean of unchecked this option in above image.

Thanks and Regards,

Shabir Ahmad

Accessing to the download folder failed Could not find a part of the path 'C:\CDX\DOWNLOAD\.

$
0
0

Hi Community,

We are getting an error "Accessing to the download folder failed, Could not find a part of the path" in event viewer on CDX server.

Strange is we have configured working folder with network path and download session also working fine but in CDX event viewer shows above mentioned error.

We want to know from where the download folder path is being referenced and get red rid of this error from event viewer.

Regards,

Vinod Bhandari

Changing POS connection to use Local user account from Domain user account

$
0
0

Hi All,

Our retail stores are configured to use Domain user account with site to site VPN from Head office to store.

We have configured store server and POS machine to use local user account but unable to open the POS, Please find error details from the event viewer as below.

 Event Viewer Error Details:

LSRetailPosis.POS.Program: System.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=41; handshake=82; [Login] initialization=0; authentication=3; [Post-Login] complete=14765; ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at LSRetailPosis.Settings.Database.CheckDatabaseExistence()
at LSRetailPosis.Settings.Database.CheckDatabaseSettings()
at LSRetailPosis.Settings.ApplicationSettings.InitializeSettings(String[] args)
at LSRetailPosis.POS.Program.InitializeAndLoadPOS(String[] args, Boolean owned, SplashScreenForm splashScreenForm)
at LSRetailPosis.POS.Program.Main(String[] args)
ClientConnectionId:40fd31c6-308e-45cf-b8c4-3615cd65ea21
Error Number:-2,State:0,Class:11.

LSRetailPosis.POS.Program: System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out.

 

Regards,

Vinod Bhandari

Textchange() method on string control and execute query method on Form Datasource

$
0
0

Good Morning,

As i am trying to create custom filter for vendor group form on

First created one group and created one string control.

1.For that string control i am trying to search for TextChange event.to call ExecuteQuery() method 

What event should i copy ?

2.I want to call Form --> Datasource -- > ExecuteQuery() method  in OnEnter Event handler method.

There is no executeQuery() method present for Vendgroup  Form --> VendGroup DS

Here is my question.

1.Should i copy OnEnter Event handler and in that should i call  OnQueryExecuting() form DS - Event Handler

and write logic in that OnQueryExecuting() method  .

Please show some light on this.

Regards.

Have a great day.

Connection is busy with results for another command

$
0
0

Hello , 

when i use pure sql statement in  RDP class i found this error 

Cannot create a record in Temp Table 

Connection is busy with results for another command

and if use regular select Statement  it's run and i can get data

this problem is caused by stored procedure

My Code

connection = new Connection();
statement = connection.createStatement();
currentDataArea = curext();


query=@"exec sp";


new SqlStatementExecutePermission(query).assert();
R =statement.executeQuery(query);

CodeAccessPermission::revertAssert();


while ( R.next() )
{

temptable.clear()

....

...

temptable.insert()

 }

when i debug this code the  error is shown at temptable.insert()

any help

How to remove default user while opening AX 2012 R3 application

$
0
0

Hi All,

Whenever we are opening AX application it is opening with only one user, even we have tried with "Run as different user" able to connect but while checking "curUserId()" it is appearing only one user, we have tried clearing all cache and reset the usage data as well, this is in the new created environment, model store and DB imported from Production, 

How we check where the user has got setup while opening AX. 

Kindly advise us.

Regards,

Akbar

Auto-Generate Delivery Note Report

$
0
0

Hi Expert,

My client require auto-generation of Delivery Notes report by the system once shipments arrive and ready for delivery and payment terms met.

How to setup this.

Please help me.


InterCompany Sale & Purchase Process

$
0
0

Hi,

i want to use intercompany sale and purchase functionality, please guide me with complete process

Regard,

Imran Nisar

Ax Functional 

visual studio integration with AX issue

$
0
0

Dear 

I am integrating with AxdEntity_LedgerJournalTrans using C# to push GL entries into AX.

All is working fine, however the currency code is always showing as the Base currency in AX even though it has different value in C#

Dim Trans As New AxdEntity_LedgerJournalTrans()

            With Trans

                .Company = CompanyID

                .TransDate = DocDate

                .TransDateSpecified = True

                .CurrencyCode = CurrencyID

              …

mark all transactions in vendor payment settlement

$
0
0

Hi,

How to mark all the open transaction lines in a single go on vendor settle open transactions.Please suggest.

thanks

Pallavi

Formatting CSV Headers through X++

$
0
0

I created a program wherein I can export CSV file. It works fine.

But do you guys know how I would be able to include headers in bold style in the CSV file? I know that it can be done in Excel through styles and fonts but I am wondering if this can be done in CSV file too? If you have any ideas, please share them with me. Thank you!

Sales Quotation Line Cost Price not getting Copied to Sales Order Line Cost price for an Item...

$
0
0

Hi,

I am facing problem when created quotation for an item the cost price had been assigned but when convert sales quotation to Sales Order the Cost Price is not getting copied, it remain 0.

Kindly help.

Thanks

Syed Muzzammil

Sales Tax Payment

$
0
0

Hi. Our consultant helped us setup VAT in our system (AX 2009) and we have been following the same for last 2 quarters 2018. 

We have some gaps in our understanding about the VAT setup which I want to ask and clear, since we are not entirely clear with the consultant's explanation. 

We use a combination of SalesTaxGroup and ItemSalesTaxGroup for the VAT setup in AX 2009. 

There are 3 ledger accounts Input VAT, Output VAT and Settlement, and 1 vendor account for the Sales Tax Authority. 

As default, VAT for domestic purchases go into Input VAT account, VAT for Sales goes into Output VAT account. 

In case of foreign purchases, we post the VAT manually as a journal entry between SalesTaxAuthority and Input VAT Account. This is because, in foreign purchases, the VAT might be different due to charges and applicable VAT at the port. So we post 0% VAT when making the Purchase Invoices for foreign purchases and we do manual journal entry between SalesTaxAuthority & Input VAT Account. 

This is the setup we are following. 

When making a settlement using the "SalesTaxPayment" form by selecting the 'Update' option, we are noticing the following: 

1) Input VAT account becomes Zero

2) SalesTaxAuthority is updated with SalesTaxPayment amount after (Output-Input). 

3) Settlement Ledger Account is empty. 

My questions are, 

1) Are we following the correct setup? 

2) Why are we using a vendor account for SalesTaxAuthority? How does the settlement usually work, what happens when we do the settlement? What are the accounts affected?  

3) With our current setup, SalesTaxAuthority is having only the transactions that we posted manually (for foreign purchases) and no domestic purchases etc. Is this correct?  If we are using a vendor account to determine how much we need to pay to the authority, shouldn't it have all the purchases?

4) Is it required that at the end of every quarter (our returns are filed every 3 months), the SalesTaxAuthority and InputVAT should be both Zero? 

5) After we make physical payment (money transfer) to the Tax Authority, how do we update this payment in the system? Do we post a journal entry between SalesTaxAuthority and bank? My confusion here is, after settlement (Using SalesTaxPayment form), the system automatically updates the SalesTaxAuthority with the payment amount as 'SalesTaxPayment'. In that case, how do we post the payment made from bank?

I know you all might be pressed for time, but please help me understand this with replies as detail as you can give. I will be eternally grateful for your support.  Please let me know if you need any further information. Thanks in Advance! 

Missing Component for Production Order

$
0
0

Dear All,

is there any report with list of raw material that not in the stock/ will be arrived delay that needed by some BOM/production orders.

my user need to generate this production order report status missing component based on range date.

Please advice.


How to close a pdf file by code

$
0
0

Hi All,

I am generating a pdf after running a report and saving it into a shared drive then mailing it the customers. All m doing this via code.

currently, m facing an issue, i.e., I am not able to delete the file once it's generated as getting an error "It's used by another process or User".  Please suggest how this can be resolved.

Please find code as below:

To Save as PDF:

public static void saveReport()
{
    Args args = new Args();
    PrintJobSettings pjs = new PrintJobSettings();
    SysReportRun reportRun;
    filename mFile;
    QuotationId qId;
    Voucher  custAcc;

    //str path ="\\"+"\\pmfcgrb24\\TempQuotePDF";
    str path = "\\"+"\\pmfcgrb24\\temppricelistPDF";
    test_PrintDataCustPrcList testPr;
    tmp_InventTableModule tmpModule;
    testFinalReport testFinRep;
    #define.error("Error While Insert records in a table required to print Customer Price List")
    ;

    //testPr = test_PrintDataCustPrcList::findByName(curUserID());
    winAPI::createDirectory(path);

    //if (testPr)
    //{
        ttsbegin;
        delete_from testPr
            where testPr.CurUserId == curUserId();
        ttscommit;
    //}

    while select testPr
    where testPr.CurUserId == XUserInfo::find(false, curUserId()).name// && testPr.CheckCust == NoYes::Yes
    {
        if (testPr)
        {
            //mFile =path+"\\"+strfmt("%1 %2",testPr.tmpCustAccount,systemDateget())+".pdf";
            //mFile =path+"\\"+strfmt("%1",testPr.tmpCustName)+".pdf";
            mFile = path+"\\"+testPr.tmpCustName+".pdf";
            new InteropPermission(InteropKind::ClrInterop);
            new FileIOPermission(mFile,'rw').assert();
            pjs.fileName(mFile);
            pjs.setTarget(PrintMedium::File);
            pjs.format(PrintFormat::PDF);
            pjs.preferredFileFormat(PrintFormat::PDF);
            args.name(reportstr("pmf_CustPrcListNewDesgn"));

            try
            {
                ttsbegin;
                testFinRep.tmpCustName=testPr.tmpCustName;
                testFinRep.tmpCustAccount=testPr.tmpCustAccount;
                testFinRep.ItemId=testPr.ItemId;
                testFinRep.tmpItemName=testPr.tmpItemName;
                testFinRep.tmpItemGroupId=testPr.tmpItemGroupId;
                testFinRep.tmpExtItem=testPr.tmpExtItem;
                testFinRep.FilterDates=testPr.FilterDates;
                testFinRep.tmpNewPriceDate=testPr.tmpNewPriceDate;
                //testFinRep.CurUserId = XUserInfo::find(false, curUserId()).name;
                testFinRep.CurUserId = testPR.CurUserId;
                testFinRep.STDMinLineCharge = testPr.STDMinLineCharge;
                testFinRep.tmpMinLotCharge = testPr.tmpMinLotCharge;
                testFinRep.Division = testPr.Division;
                testFinRep.Price = testPr.Price;
                testFinRep.PriceUnit = testPr.PriceUnit;
                testFinRep.tmpPrice = testPr.tmpPrice;
                testFinRep.PriceDate = testPr.PriceDate;
                testFinRep.viewPrice = testPr.viewPrice;
                testFinRep.viewNewPrice = testPr.viewNewPrice;
                testFinRep.priceIncreaseDate = testPr.priceIncreaseDate;
                testFinRep.doNotPrintNewPrice = testPr.doNotPrintNewPrice;
                testFinRep.insert();
            ttscommit;
            }
            catch
            {
                throw error(#error);
            }
         }
     }
            args.record(testFinRep);
            reportRun = classFactory.reportRunClass(args);
            reportRun.printJobSettings(pjs.packPrintJobSettings());
            reportRun.report().interactive(false);
            reportRun.init();
            reportRun.run();
            new FileIOPermission(mFile,'rw').notifyAll();
}


To Email the PDF:

public static void emailReport()
{
    ClrObject                               clrObj;
    SMTPMail.Mail                           mail;
     System.Exception                       clrEx;
     str                                    sText;
     str                                    sDate;
    test_PrintDataCustPrcList               testMail;
    ContactPerson                           conTactPers;
    System.Net.Mail.MailMessage             mailMessage;
    PrintJobSettings                        printset;
    System.Net.Mail.Attachment              attachment;
    System.Net.Mail.AttachmentCollection    attachementCollection;
    System.Net.Mail.SmtpClient              smtpClient;
    System.Net.Mail.MailAddress             mailAddressFrom;
    System.Net.Mail.MailAddress             mailAddressTo;
    str                                     strBody;
    str                                     strSMTPServer;
    str                                     strFileName;
    str                                     fromAddr,toAddr;
    //str                                     path ="\\"+"\\pmfcgrb24\\TempQuotePDF";
    str path = "\\"+"\\pmfcgrb24\\temppricelistPDF";
    FileIOPermission                        perm;
    COM                                     c;
    ReportRun                               r;
    Args _ag= new Args("pmf_CustPrcListNewDesgn");
    SysEmailParameters parameters = SysEmailParameters::find(false);
    // To Email
    InteropPermission permission = new InteropPermission(InteropKind::ClrInterop);

    SysMailer   mailer;
    ;

    permission.assert();
    permission.demand();

    clrObj = new SMTPMail.Mail();
    mail = clrObj;

    while select testMail
    where testMail.CurUserId == XUserInfo::find(false, curUserId()).name //&& testMail.CheckCust == NoYes::Yes
    {
        if (testMail)
        {
            select firstonly conTactPers
                where conTactPers.CustAccount == testMAil.tmpCustAccount;
            try
            {
                // preparing parameters
                if (parameters)
                {
                    mail.set_server(parameters.SMTPRelayServerName);
                    mail.set_port(parameters.SMTPPortNumber);
                    /*mail.set_user("sa-grb13");
                    mail.set_pass("S3viceMet1mbeRs");*/
                    mail.set_user(parameters.SMTPUserName);
                    mail.set_pass(SysEmailParameters::password());
                    if(parameters.NTLM == 1)
                    mail.set_NTLM(true);
                }
                mail.set_subject(strfmt("%1 - Price List - %2",testMAil.tmpCustName,testMail.tmpNewPriceDate));
                mail.set_body("Pioneer Metal Finishing - Customer Price List Attached.");
                //mail.set_sentFrom(fromAddr);
                //if (contactPers.Email)
                //{
                    mail.set_sentFrom("NoReply@pioneermetal.com");
                    mail.set_sendToString(conTactPers.Email);
                    //strFileName = path+"\\"+strfmt("%1 %2",testMail.tmpCustName,systemDateget())+".pdf";
                    //strFileName = path+"\\"+strfmt("%1",testMail.tmpCustName)+".pdf";
                    strFileName = path+"\\"+conTactPers.Name+".pdf";
                    mail.set_attachmentString(strFileName);
                    mail.set_extension('.pdf');
                    mail.run();
                //}
            }
            catch (Exception::CLRError)
            {
                clrEx = CLRInterop::getLastException();
                while ( clrEx )
                {
                    sText = clrEx.get_Message();
                    error( sText );
                    clrEx = clrEx.get_InnerException();
                }
            }
       }
    }
    permission.notifyAll();
     CodeAccessPermission::revertAssert();
}


Please give me any suggestion, 

Regards,

Nishu

AX 2012 R3, update to CU 13

$
0
0

I have currently AX 2012 R3 setup in our environment and looking forward to patch it to CU 13, I have certainly 2 -3 questions regarding the same :)

1. Is it advisable to upgrade the AX 2012 R3 to CU 13 ?

2. How much efforts does it require to update.

3. How much time it takes to generally update.

4. Any use case if there

Best Regards,

Allow edit specific field

$
0
0

Hi Guys,

Just want to know how to allow one field to edit via role or x++ code.

I have a Form1 with 3 datasource on it. Those datasource is set AllowEdit property as "No".

Now, I want to create new role allowing specific user to edit 1 field only per datasource.

I tried to create Privilege containing:

Entry points AccessLevel = Read

Permissions > Tables > Fields > Coupon = EffectiveAccess = Update

Forms > MyForm > MyFieldForm > EffectiveAccess = Update && DefaultAccess = Update

Unfortunately, its not working. 

I need help guys, thank you in advance.

Best Regards,

r0bert

Migrate 365 application to AX 2012

$
0
0

Hello, please any one guide the quickest way to transfer my dynamics 365 application to dynamics ax 2012. 

                           Thanks

Weighted Average Cost in AX 12

$
0
0

Hi Guys,

I am trying to create a report were I need to add the last two weighted average cost of an item to be able the user to compare them with the current active cost of that item. what is the best practice to retrieve last weighted average cost in a report where the parameter is just Item number. 

Thanks in advance. 

Viewing all 73760 articles
Browse latest View live


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