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

Display Account Name in the CustLedgerTrans.Report

$
0
0

Dear Sir 

I  Would Like to add Account Name to the CustLedgerTrans.Report

 that is present in AX 2012 in the model   Accounts receivable 

underReports  - > Transactions  à Customer à History By Transactions

I have add  AccountName to the table CustLedgerTransTmp I Move AccountName from Extended Data Type to the CustLedgerTransTmp

I have added new relation to table CustLedgerTransTmp

Called MainAccount(user)

 CustLedgerTransTmp.MainAccountId == MainAccount.MainAccountId

And I have Modify those lines to  CustLedgerTransDP  Classes

In the Method ClassDeclaration I have added those lines

 

 [

    SRSReportQueryAttribute(queryStr(CustLedgerTrans)),

    SRSReportParameterAttribute(classStr(CustLedgerTransContract))

]

publicclass CustLedgerTransDP extends SRSReportDataProviderBase

{

 

  CustLedgerTransTmp                  custLedgerTransTmp;

 

    /* Add by Jamil */

 

    MainAccount                         mainaccount;

    DimensionAttributeValueCombination  _dimensionAttributeValueCombination;

    /* End */

    boolean                             totals;

    boolean                             showOnlyMainAccount;

    BillingClassification               billingClassification;

 

}

 

And in the Method insertCustLedgerTransTmp  I have added those lines

 

privatevoid insertCustLedgerTransTmp(CustName _custName,

                                        CustTrans _custTrans,

                                        LedgerPostingType _postingType,

                                        boolean _isCredit,

                                        AmountCur _transactionCurrencyAmount,

                                        AmountMst _accountingCurrencyAmount,

                                        MainAccountNum _mainAccountId,

                                        DimensionDisplayValue _fullyQualifiedAccount,

                                        TraceNum _traceNum)

{

 

    custLedgerTransTmp.clear();

 

    // Added  by Jamil

 

    select * FROM mainaccount

    WHERE mainaccount.MainAccountId == _dimensionAttributeValueCombination.DisplayValue;

    info('Name',mainaccount.Name);

    pause ;

    custLedgerTransTmp.AccountName = mainaccount.Name  ;

 

    /* End of modification */

 

After I have added the  field  custLedgerTransTmp.AccountName to the report CustLedgerTrans.Report it display blank not data have been display

Waiting for your valuable replay 

Best Regards

Jamil 


RE: invoice error-Cannot create a record in Ledger journal table (LedgerJournalTable). Name: ARPAY, ARPAY. The record already exists.

$
0
0

Hi to All,

Actually now i am facing same issue while posting Vendor Payment Journal.

As what you people replied for that i checkout in Status list of Journal Batch Number Sequence but 

nothing will be there in that form, it means its showing empty.

I check and Un check Continues button for both i am getting same error.

Please help me out 

 

I Checked in History its showing like

Status List from Number Sequence:

invoice error-Cannot create a record in Ledger journal table (LedgerJournalTable). Name: ARPAY, ARPAY. The record already exists.

$
0
0

hello I am trying to invoice return orders-but getting this error:Cannot create a record in Ledger journal table (LedgerJournalTable). Name: ARPAY, ARPAY.
The record already exists.

can someone help?

RE: Import Fixed Asset default dimensions

$
0
0

Hi Sangram,

i cannot see this option to make it verified.

i need your help for a job to add depreciation book for 10 000 assets already imported into system.

plz note that those assets have a value model but customer need to add a depreciation book for reporting purpose.

Regards

Import Fixed Asset default dimensions

$
0
0

Hello,

how can we import Fixed Assets default dimensions through Data Import Export Framework?

RE: Wrong dimension in WHSInventReserve causes error Insufficient on-hand

Wrong dimension in WHSInventReserve causes error Insufficient on-hand

$
0
0

Hi,

We can't pick some items wich have physical on-hand. The error is:

Qty1 cannot be picked because only Qty2 is/are available from the inventory.

My customer has two WHS-enabled warehouses, 60+ warehouses for retail stores (negative inventory is allowed only for them) and another 5 regular warehouses (not WHS-enabled, not-negative on-hand allowed).

The error appears only in the last 5 warehouses.

We dowloaded fix KB3064487 to be able to use function Consistency check for WHS-enabled items.

When starting this function, the system corrects errors for the item we tried to pick. Message is:

"For stock dimension  DimXXX field AvailOrdered in table WHSInventReserve should have value 0.00 but had value -194.00" (usually the last qty in the message is negative)

We noticed that after consistency check (correction) one entry for the item is deleted with the qty mentioned in the message.  InventDimID for this entry is for strange dimention combination acording to the Reservation hierarchy.

All items use only one Reservation hierarchy with dimension in the following order: Site, Warehouse, Inventory status, Location, License plate, GTD number (RU (Russia) functionality is active).

Deleted WHSInventreserve entry is for InventDimID whith Level=6 and is for Site + GTD numer (all other dimensions are emty). Is it actually wrong Dim acording to the Reservation hierarchy? Any suggestion which process my creates entry for this InventDimID in WHS InventReserve?

Since my customer goes life 3 months ago we face this problem 3 times. Not sure if there is connection to the inventory closing - we run it every month.

RE: Integrate Salesforce with D365 for Operations

$
0
0

"To integrate" can mean almost anything; you'll have to understand the actual requirements before you can choose a technical solution.

One possible approach is using Logic Apps, which have connectors for both AX 7 and SalesForce.


RE: Is it possible to run the c# code from the project without adding the dll to D365 project?

$
0
0

I was talking about the code you showed us. I thought you give us an example that represents your problem.

Nevertheless you can keep your C# code if needed, it doesn't seem to be a problem. But you can greatly simplify your dependency graph (and avoid problems in build) if you don't refer to X++ code from your C# code). If you have to, please make sure that you're not rebuilding the code used by your C# code. This might be the root cause.

If you do have a circular dependency that you can't rid off, well, then you're stack with your problem. The best solution would be better design.

Is it possible to run the c# code from the project without adding the dll to D365 project?

$
0
0

I am working on the D365FO app and develop business logic in c# and call this business logic from DataEntity. The problem I am having is once you add a new function to c# library project and generate dll I need to stop the IIS and re-reference the dll in D365 project and start the IIS back. Sometimes new function is not recognized with D365 and try to many different things(restart visual studio, rebooting) in order for D365 project to recognize the new function added to the assembly project. It would be nice if I can run the c# library project so I can test all new functions then when all the functions are working fine I want to reference to the D365 project. Is it easy way to run this c# libary project by itself without adding the reference to D365 project?

Add Lines at Counting Lines Journal - Item XXX is locked for updates in warehouse WH1 because it is being counted.

$
0
0

Dear All,

I had generate counting journal by warehouse and location,

for example item A, 

when I generate counting journal by whse ONE and Location LOC, item A was listed.

turn out the quantity located at Whse TWO and location STOCK.

user tried to add new line for item A at counting journal whse TWO and location STOCK.

but later, infolog show message 'Item A is locked for updates in warehouse WH1 because it is being counted.'

 

is there any setting to enable item A to able be created as new lines  at whse TWO and location stock ?

thank you

RE: CLRObject static method invocation error in TaxEngineServiceProxy

$
0
0

Which version of AX is it about? How did you install the GST functionality? Is Microsoft.Dynamics365.Tax.Core.TaxEngineService library available in your system? Is there any inner exception? Have you tried Assembly Binding Log Viewer?

CLRObject static method invocation error in TaxEngineServiceProxy

$
0
0

I am facing the same issue. In our case this is happening at the time GST tax calculation from the method Class\TaxEngineServiceProxy\deserializeTaxDocument and while executing the CLRInterop::staticInvoke() method from the below piece of code.

public ITaxDocument deserializeTaxDocument(str _taxDocumentJson)

{

   ITaxDocument        ret;

   InteropPermission   permission = new InteropPermission(InteropKind::ClrInterop);

   permission.assert();

   ret = new TaxDocumentProxy(/*Microsoft.Dynamics365.Tax.Core.TaxEngineService::deserializeTaxDocument(_taxDocumentJson)*/

       // BP Deviation Documented

       CLRInterop::staticInvoke(

           #ClassTaxEngineService,

           #MethodTaxEngineService_deserializeTaxDocument,

           _taxDocumentJson));

   CodeAccessPermission::revertAssert();

   return ret;

}

Also AOS restart is resolving the issue temporarily. But it is impacting all the users who is working on any form that involves tax calculation logic when it starts occuring.

Any help here is much appreciated.

D365 - Invalid OAuth token was presented

$
0
0

Under System administration->setup->System parameters-> Help we are getting error "Invalid OAuth token was presented":

Where an how can we setup the token for task guide?

RE: Get list of record which are updated. c# code AIF


Get list of record which are updated. c# code AIF

$
0
0

Hello ,

I am using AIF service with c# code.

I want to get list of record which are updated. Is there any filter CriteriaElement who gives only updated record of particular table. I don't wont to use modified date & time. 

Currently I am using following code for insert purpose Ax-third party systems.

 criteriaElements = new CriteriaElement[2];
            criteriaElements[0] = new CriteriaElement();
            criteriaElements[0].DataSourceName = "CustTable";
            criteriaElements[0].FieldName = "AccountNum";
            criteriaElements[0].Operator = Operator.Range;
            criteriaElements[0].Value1 = "C-00005000";
            criteriaElements[0].Value2 = "C-00006000";

            criteriaElements[1] = new CriteriaElement();
            criteriaElements[1].DataSourceName = "CustTable";
            criteriaElements[1].FieldName = "ForecastDMPInclude";//this field needs to change - Ax developer will provide
            criteriaElements[1].Operator = Operator.Equal;
            criteriaElements[1].Value1 = AxdExtType_ForecastDMPInclude.No.ToString();
            //criteriaElements[1].Value2 = "C-00003370";
            queryCriteria = new QueryCriteria();
            queryCriteria.CriteriaElement = criteriaElements;
            #endregion

            axdCustomer = _Client.find(_callContext, queryCriteria);//get customer list

Now I want update this created record so only need updated record using single key field from ax table.

Please do needful.

Thanks,

keyur shah.


           

RE: Customisation to hide all menu items under every Setup menu for certain roles

$
0
0

easiest option is to go with AX Security. As simple as that.

RE: Unable to shipped "Transfer Order" in MS Dynamics AX 2012 R3

$
0
0

Hi Mahmoud,

Thanks a lot.. 

Actually, we tried to shipped an item to other farm or location. But the problem is we can't proceed with the transfer transaction because it

stops and did not proceed. I have attached a screenshot for your reference. 

Regards,

Renato Mejilla

RE: Unable to shipped "Transfer Order" in MS Dynamics AX 2012 R3

$
0
0

Hi Ankit,

Thanks, please check below the details that i send to Mr. Mahmoud. I send the screenshot so that you can check it.

And the user is assigned as a worker and user at the same time.

Does the worker assignment matters?

Regards,

Renato Mejilla

Unable to shipped "Transfer Order" in MS Dynamics AX 2012 R3

$
0
0

Hi,

I am having a problem determining what is causing the other users cannot shipped or used Transfer Order module?

Only 2 users can process "Transfer Order" and the others cannot. What is causing this to happen? I already checked their access permission and group, it is the same only with those 2 users who can use Transfer Order. Why the others can't? Is the problem related to process flow? How to allow a user to be able to used the Transfer Order module?

Thanks,

Renato Mejilla

Viewing all 175888 articles
Browse latest View live


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