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

Batch Cannot be Shipped as Batch Disposition Code Setting is Blocked for Shipping

$
0
0

Dear Experts,

I use Microsoft Dynamic AX 2012  

I can't generate packing slip and show this error message

When I check to Batch Disposition Master there is Block shipping unchecked

I don't know what's going on with this Sales Order

Please give me some advice

Thank in advance

Regards,

Bintang


Where condition is not working in select statement - AX 2012

$
0
0

Hi All,

We are trying to get the email address from LogisticsElectronicAddress table, below is the statement we have written:

Select * from LogisticsElectronicAddress  - It is getting the first record as per standards, but if we add the "Where" Clause in the statement the records is not fetching and the buffer is empty even there is a record in the table.

select * from logisticsElectronicAddress where logisticsElectronicAddress.PrivateForParty = ****** - result is empty here , even there is a record in the table.

We have written this in one of the class to get the email address of the worker. We have tried with connecting DirPerson,DirPartyTable and HcmWorker table.

Please advise me how can we resolve this issue.

Regards,

Akbar

Cannot create a record in Relation between purchase lines and request for quotation lines (PurchOrderRFQLineReference). Relation between purchase lines and request for quotation lines: gsmp GSMP-******. The record already exists

$
0
0

Error:

Cannot create a record in Relation between purchase lines and request for quotation lines (PurchOrderRFQLineReference). Relation between purchase lines and request for quotation lines: gsmp GSMP-******.
The record already exists

Error shows while creating Purchase order from Release approved PR. please help

Thanks,

Change Tax invoice number

$
0
0

Hi All,

Greetings

I am new to Ax 2012 and need your help on the following

I need to change the invoice number for *****1from “9819”  to “8919”?   (change 98 to 89)

Just need to change  the field as it was by mistake inputted  as 98 instead of 89.(go to Vendor-select vendor-tax invoice journal-Tax invoice field)

The customer wants to change on the path mentioned above and also on the goods received note form.

I want to know  if i change which all places will be impacted.  i.e any other functionality will be impacted if I make changes from backend.

Also is there any functionality in AX 2012 which i can use to see what all gets impacted because of a change

Regards

N

AX 2009 & sharepoint 2010

$
0
0

hi

i have an ax 2009 install and i need toupgrade enterprise portal to sharepoint 2010

after doing some reading up, i believe i need KB 2278963 which will patch the install files , so that the install detects that sharepoint2010 is installed on the server.

the problem is i cant find this KB anywhere.

any ideas how i can get hold of this old KB?

i dont have access to partner source at the moment (although i probably can do with some effort). but if someone has access and can search there to confirm if it exists that would be appreciated.

thanks

Notification on Passport Expiry Date

$
0
0

Dear Gents;

I have one requirement like if employee Passport is expiring within 30 days , system should display a notification to HR Manager

about Passport expiry date.. 

I am new and no idea how to display notifications, Your help is required

Problem with form autorun on thin client - Axapta 3.0

$
0
0

Hi.

I've created new toolbar(as a form) and I want it to autorun after logging to axapta. 
I've modified startupPost method in info class:

/*
No SYS code must exist in this method
*/
void startupPost()
{

;
new MenuFunction(menuitemDisplayStr(ToolBarMenuItem), MenuItemType::Display).run();
}

And it works... but only for me. For another system user it works only when they use fat client (2tier) but not on thin client(3tier).

Any ideas what should I do?

Trial balance transactions missing after Upgrade to AX2012 R3 CU13

$
0
0

We upgraded a customer erectly to latest Cumulative Update CU13. We have witnessed an issue which results in showing no posted transactions for Trial Balance List Page.

The same issue was happening when CU9 was released. Here is the Link for the details

I wonder why this fix/KB did not came as we installed CU13. If it’s a cumulative update, it should have all previous fixes with it

I have raised the case with Microsoft, but putting here meanwhile, if anyone has went through this, may want to share their experience.  


how to reference the same field in a self join from a AOT query in a data provider

$
0
0

Hello,

Quick question:

How do I reference a field in a self join? I have a AOT query which I am building a data provider for. 

The query is as follows:

Now I have a self join on Ecorescategory to get the category and parent category which is in the field 'Name'.

My DP uses RecordInsertList however in the query run I do not know how to reference it and the name I have given it in the query does not work for the table.

        ItemVariantView  ItemVariantView = _queryRun.get(tableNum(ItemVariantView));
        ProductPricingReportTempTable.ItemId = ItemVariantView.ItemId;
        ProductPricingReportTempTable.VariantId = ItemVariantView.VariantId;

        PriceDiscTable  priceDiscTable = _queryRun.get(tableNum(PriceDiscTable));
        ProductPricingReportTempTable.AccountRelation  = priceDiscTable.AccountRelation;
        ProductPricingReportTempTable.Amount = priceDiscTable.Amount;
        ProductPricingReportTempTable.Currency = priceDiscTable.Currency;
        ProductPricingReportTempTable.FromDate = priceDiscTable.FromDate;
        ProductPricingReportTempTable.ReasonCode = priceDiscTable.ReasonCode;
        ProductPricingReportTempTable.ToDate = priceDiscTable.ToDate;


        EcoResCategory ecoResCategory = _queryRun.get(tableNum(EcoResCategory));
        ProductPricingReportTempTable.Category = ecoResCategory.Name;

Hope that makes sense?

Expense Companion desktop App - Fin Dimensions

$
0
0

Hello All

I am using AX2012 R3.

Expense module is setup and is working well in in the EP.

I configured the desktop App using Azure AAD and not ADFS.

I am facing two issues on the app.

1) I am not able to see or change the financial dimensions fields on the desktop app. Does the app show the financial dimensions?

2) When I submit the expense to the workflow I get a vague "record not found" error.

Has anyone come across these issues?

Thanks!

Abby

Default financial dimension

$
0
0

Hi, 

I received today a simple (??) question if it is possible to setup default financial dimension per vendor. I am reffering to ledger offset account. No mather which account  you choose (when you post the invoice on this particular account) the same financial dimension value will pop up. I don't mean either FD that can be setup on vendor master data level.

Thank you in advance

Br

Kacper

Executing Code from C# Class Library in X++ Job Appears to do nothing

$
0
0

I have created a C# class library that uses document services for SalesSalesOrderService to create a sales order (just the header) and then a separate class method that updates a salesorder by adding a sales line to an existing sales order.  The class library is added to the AOT in AX, it deploys fine, the intellisense in AX works fine, etc.  I get no errors.  

The problem, however, is that nothing happens when I execute the code in my test job and the debugging doesn't make it to the infolog statement. I also tried debugging with VS by attaching to the AX process but it never goes into VS.  I am perplexed as this seems to be pretty simple.  If you need more information just let me know.  Thanks in advance for any help.

Below is the code from the class library and the job code that I am executing.  I am using .NET framework 4.5.1 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ALTAIFIntegration.DEVERP7SalesOrders;

namespace ALTAIFIntegration
{
    public class Deverp7SalesOrders
    {
        public string createSOHeader(string company, string custAccount, string invAccount, string delName, string poFormNum, 
                                          string city, string county, string state, string street, string zip, string countryRegionId)
        {
            var salesTableAddressRec = new AxdEntity_TableDlvAddr()
            {
                City = city,
                County = county,
                State = state,
                Street = street,
                ZipCode = zip,
                CountryRegionId = countryRegionId
            };

            var salesTable = new  AxdEntity_SalesTable()
            {
                CustAccount = custAccount,
                InvoiceAccount = invAccount,
                DeliveryName = delName,
                PurchOrderFormNum = poFormNum,
                ReceiptDateRequested = DateTime.Now.Date,
                SalesType = AxdEnum_SalesType.Sales,
                TableDlvAddr = new AxdEntity_TableDlvAddr[] { salesTableAddressRec }
            };

           AxdSalesOrder newSalesOrder = new AxdSalesOrder()
            {
                SalesTable = new AxdEntity_SalesTable[] { salesTable }
            };

            var callContext = new CallContext { Company = company };
            var client = new SalesOrderServiceClient();

            try
            {
                client.create(callContext, newSalesOrder);
                client.Close();
                return "Created";
            }
            catch
            {
                client.Abort();
                return "Failed";
                throw;
            }
        }

        private static EntityKey[] EntityKeyForSalesId(string salesId)
        {
            KeyField field = new KeyField()
            {
                Field = "SalesId",
                Value = salesId
            };

            EntityKey key = new EntityKey()
            {
                KeyData = new[] { field }
            };

            return new[] { key };
        }
 
        public string addSOLine(string soId, string soItemId, decimal qty, string invColorId)
        {
            using (SalesOrderServiceClient client = new SalesOrderServiceClient())
            {
                EntityKey[] entityKeyList = EntityKeyForSalesId(soId);

                // Retrieve the order to modify
                var order = client.read(new CallContext(), entityKeyList);

                var inventDim = new AxdEntity_InventDim()
                {
                    InventColorId = invColorId
                };

                var salesLineAddressRec = new AxdEntity_TableDlvAddr()
                {
                    City = order.SalesTable[0].TableDlvAddr[0].City,
                    County = order.SalesTable[0].TableDlvAddr[0].County,
                    State = order.SalesTable[0].TableDlvAddr[0].State,
                    Street = order.SalesTable[0].TableDlvAddr[0].Street,
                    ZipCode = order.SalesTable[0].TableDlvAddr[0].ZipCode,
                    CountryRegionId = order.SalesTable[0].TableDlvAddr[0].CountryRegionId
                };

                var salesLine = new AxdEntity_SalesLine()
                {
                    ItemId = soItemId,
                    QtyOrdered = qty,
                    action = AxdEnum_AxdEntityAction.create,
                    actionSpecified = true,
                    InventDim = new AxdEntity_InventDim[] { inventDim }
                };

                var salesTable = new AxdEntity_SalesTable()
                {
                    _DocumentHash = order.SalesTable[0]._DocumentHash,
                    PurchOrderFormNum = order.SalesTable[0].PurchOrderFormNum,
                    ReceiptDateRequested = order.SalesTable[0].ReceiptDateRequested,
                    action = AxdEnum_AxdEntityAction.update,
                    actionSpecified = true,
                    SalesLine = new[] { salesLine }
                };

                AxdSalesOrder newOrder = new AxdSalesOrder()
                {
                    SalesTable = new[] { salesTable }
                };

                try 
	            {	        
		            // Update the order
                    client.update(new CallContext(), entityKeyList, newOrder);
                    return "Updated";
	            }
	            catch (Exception)
	            {
                    return "Failed";
		            throw;
	            }

            }
        }
    }
}

When adding ProjInvoiceTable to a query, queryRun.get() no longer works for child data sources

$
0
0

I have created both AOT and X++ queries.  

Here is my x++ query

Query                   query;
QueryBuildDataSource    projFundingLimitQBDS, projFundingSourceQBDS, projInvoiceTableQBDS;
query = new Query();

projFundingLimitQBDS    = query.addDataSource(tableNum(ProjFundingLimit));

projFundingSourceQBDS   = projFundingLimitQBDS.addDataSource(tableNum(ProjFundingSource));
projFundingSourceQBDS.relations(true);
projFundingSourceQBDS.joinMode(JoinMode::OuterJoin);

projInvoiceTableQBDS    = projFundingSourceQBDS.addDataSource(tableNum(ProjInvoiceTable));
projInvoiceTableQBDS.relations(true);
projInvoiceTableQBDS.joinMode(JoinMode::OuterJoin);
    

Here is my queryRun:

while (queryRun.next())
{
    projFundingLimit    = queryRun.get(tableNum(ProjFundingLimit));
    projFundingSource   = queryRun.get(tableNum(ProjFundingSource));
    projInvoiceTable    = queryRun.get(tableNum(ProjInvoiceTalbe));
}

The odd thing is that the queryRun.get() works on the 'Parent' data source, ProjFundingLimit, but not on the other two.  This happens both in x++ queries and AOT queries.

Does changing a method header keyword from Server to Client require a CIL?

$
0
0

Hi all,

Just an AX 2012 curiosity:

If you change a Class or View method with following header

private static server str MyMethod()

to

private static client str MyMethod()

Obviously, by doing this, you aim to always run it on the client tier, but would that require a cil to take effect? 

According to my current understanding, if you do not do a full or incremental CIL, but just a compile. Both client and aos will 'think' that they are responsible for running this method. Because the AOS still has the CILL code that it is run on Server. So it is based on whomever the calling code was running which will decide where it is ran.

So

if the calling class was runOn=Server => cilled code will say that the method is Server and the method is executed on Server

If ...  runOn=Client => ... executed on Client.

Curious to hear what you think and if I can get a deeper understanding. 

Thanks!

Gabriel

Production Order - Finished Goods showing negative value for Good Quantity

$
0
0

For our production we have a requirement to go back into a production order several times and update the Good Quantity.

We have noticed that if we over produce the amount originally stated on the production order that the next time we go into report as finished the Good Quantity has gone to negative.  Is this expected behaviour?

Thanks


Tax tables release

$
0
0

When will the new tax tables be released by Microsoft? ax 2012 

Invoice Approval journal, Find Vouchers missing records

$
0
0

Good day all,

In ref to:-

Purchase ledger/Journals/Invoices/Invoice approval journal/Lines/Find Vouchers

...the user is presented with a list of records from the LedgerJournalTrans table, filtered in some way to only show certain records. 

My question is can someone please inform me of the exact criteria AX is using to decide which records to show and which ones not to show please as we have one record that should be there but is not and I cannot work out why?

We are running CU8 with some hot fixes from later releases and as far as I can tell had no development done in this area.

Previously we had issue around this area when journal batches were run and the user had a system crash which left these records in "limbo" as they did not have the correct Journal batch number, but as far as I can tell this is not one of them as it has the correct number, GJBN00007.

Everything else looks the same when comparing to a record that is displayed in comparison to this record that will not display.

Is there any date criteria on these as the only thing different on this record is it dates back to 2018.

Any help will be greatly appreciated.

Regards Cliff

Accounting Source Explorer Error

$
0
0

By Clicking Accounting Source Explorer in General Ledger Module an Infolog appears:

Would there be someone to help me out, thanks in Advance

DimensionDynamicAccount

$
0
0

Hi experts!

I have a field of type DimensionDynamicAccount in AX 2012. It consists of MainAccount, BusinessUnit, Site, CostCentre and Reporting.

When the record is created, I want "Site" to be set to a specific string that I have.

Is it possible to set the "Site" part and not set anything else in the field during insert? If not, can I set the "Site" part when the user enters the field (starting in MainAccount)?

Columns Not Shown in Excel Add in

$
0
0

Dear All,

i am facing a problem on Excel add in where when i choose any table i get the Below SCreen SHot and i cant read the Header in the excel sheet 

any advise?

Best

HAYAN

Viewing all 73760 articles
Browse latest View live


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