Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

Legacy ID

$
0
0

Dear All,

What is the legacy id ? and why we are using legacy id in table property. What is the use of Legacy Id?

Could you please more shed on this.

Thanks!

-Arpan Sen


How to add sorting in Dialog form for VendTable?

$
0
0

Hi,

I'm working on SSRS report. I have to add sorting for the vendtable.accountnumber. I should do in both the ways ascending and descending. Can anyone please help me to add sorting in the Dialog form. Because it is not working for me. Please help with some screenshot.

Insert a single record

$
0
0

Hi

I have following SQL to insert a single record in CaseDetailBase Table.

ttsBegin;
            select forUpdate caseDetailBase;
                caseDetailBase.ProdId           = prodTable.ProdId;
                caseDetailBase.ProjIdRef        = prodTable.ProjId;
                caseDetailBase.Description      = 'GIS';
                caseDetailBase.Status       = prodTable.ProdStatus;
                caseDetailBase.insert();
            ttsCommit;


I get thi serror when I run it:

Cannot create a record in CaseDetailBase. Description: GIS already exists. 

How to add display method in query range?

$
0
0

There is a column(TestQty) in a listpage . Value of that column is populated from by a display method. It is not from a table field.
I want to add range on a query which will filter data based on that column's value 

Like I want to fetch those values for which TestQty>0
How can I achieve that?

Display method on a view

$
0
0

hello everyone,

how to use display method in a view to show some field?

thanks in advance

Client running slowly

$
0
0

Hi,

AX Client takes a long time during launch. No matter where I ran it (AOS machine or terminal server). After the launch the client works fine.

Regards,

Jaret.

Code to find worker for current system user

$
0
0

Hi All,

How can i get system service account details with X++ in ax2012 r3.

Can anybody guide me.

Regards,

Srinivas

How to use inbuilt function "round()' in query range thorugh x++

$
0
0

Want to filter record in table after applying 'round()' to certain field value...

How to use in query range x++.


Exception in batch

Financial Statement (Traditional) error

$
0
0

Dear All,

My Income statement was working perfect till that I modify and add one more account in it after that it start giving me the following error.

Request for the permission of type 'ExecutePermission' failed.

(S)\Classes\ExecutePermission\demand
(S)\Classes\XppCompiler\new
(S)\Classes\LedgerTransStatementEngine\calculateRowsCalcListColumn - line 84
(S)\Classes\LedgerTransStatementEngine\calculateRowsCalcList - line 45
(S)\Classes\LedgerBalanceSheetDimPrint\statementEngineCalculate - line 10
(S)\Classes\LedgerBalanceSheetDimPrint\run - line 232
(S)\Classes\LedgerBalanceSheetDimPrint\main - line 13
(S)\Classes\xMenuFunction\runServer

XppCompiler object not initialized.

Stack trace

(S)\Classes\LedgerTransStatementEngine\calculateRowsCalcListColumn - line 85
(S)\Classes\LedgerTransStatementEngine\calculateRowsCalcList - line 45
(S)\Classes\LedgerBalanceSheetDimPrint\statementEngineCalculate - line 10
(S)\Classes\LedgerBalanceSheetDimPrint\run - line 232
(S)\Classes\LedgerBalanceSheetDimPrint\main - line 13
(S)\Classes\xMenuFunction\runServer

Address configuration: display long name

$
0
0

When setting up "address format, I can include the Country/Region as part of the address.

Selecting the "expand" check box, causes the country name as defined in the "Short Name" field to be printed/displayed on the address.

Un-selecting the "expand" check box causes the country code to be printed/displayed on the address.

Is there a way to trigger using the "Long name" (as opposed to the "Short Name") to be printed?

DIXF Print management: Custom entity DMFPrintMgmtDocInstance

$
0
0

Hello,

I'm trying to create a new DIXF entity to import customers and Vendors print management settings (AX Table name: PrintMgmtDocInstance)

I'm using DIXF feature :Create a custom entity for import/export

An error is raised and the entity creation is stopped: Subnode already exists.

Please Help.

AX7 database synchronization failure

$
0
0

This  is done on AX7 RTW customization.

 

I created one custom table P97GradeMasterTable in Visual studio application Explorer in USR layer and my created model.

 

However, when I try to do the following:

1. Click “Dynamics AX” menu item in Visual Studio, then “Synchronize database…”

2. Click “Synchronize” button on the “Dynamics AX Full database synchronization” dialog

 

I got the following error”

Cannot open database “AXDBRain” requested by the login, The login failed…

 

 

The AOS database is AXDB. But here it complains AXDBRain.

 

Is this a bug since I know in CTP 8, the database is AXDBRain.

Custom services: Failed to logon to Microsoft Dynamics AX at server side

$
0
0

Hi,

As I suggested to create a different thread so I am explaining again my problem,

 want to connect two instance of AX , say AX 1 or AX 2 both is in same domain but on different ports ,

On first, tried with BC connector approach passing port and AOS name as string but stuck with InvalidLogonInSingleSessionException, for details

https://community.dynamics.com/ax/f/33/t/184369

Now In second approach I tried with web services , I created a web services to retrieve data from a instance ..say AX2 I want to pass data to instance AX 1

In Ax 1 I had created a C# class to consume a web services (done add reference , add in aot , deploy at server/client bin)..  all work fine If I call it at client side ....

I want to make it run in batch in AX 1 for that it should run at server side .

Now Here is my main issue ....

I have created a class run on server , in class I have created a static method

when I called "validateConection" method on button click on a form to check the connection,its work fine if method modifier is client static as its run on client , but it gives error when change modifier to server

error message >>

"

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

Server stack trace:
   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 CompareServer.IntServRef.DCTool.pullData(DCToolPullDataRequest request)
   at CompareServer.IntServRef.DCToolClient.CompareServer.IntServRef.DCTool.pullData(DCToolPullDataRequest request)
   at CompareServer.IntServRef.DCToolClient.pullData(CallContext CallContext, Parameter _setDataRecords, String _company)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeCore.InvokeClrInstanceMethod(ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)

"

error message ends<<

code >>>>

 public server static boolean validateConection(URL _endPoint,CompanyId _company)

    System.Type         type;
    System.Exception    ex;
    CompareServer.IntServRef.DCToolClient    service;
    System.ServiceModel.Description.ServiceEndpoint endPoint;
    CompareServer.IntServRef.Parameter[]  response;
    CompareServer.IntServRef.Parameter    axParm = new CompareServer.IntServRef.Parameter();
    CompareServer.IntServRef.CallContext     callText = new CompareServe.IntServRef.CallContext();
    boolean             ret;
    int                 len;
    #define.ServicesDll('CompareServe.IntServRef.DCToolClient')
    ;
    try
    {
        new InteropPermission(InteropKind::ClrInterop).assert();
        type       = CLRInterop::getType(#ServicesDll);
       
        service    = AifUtil::createServiceClient(type);
        endPoint   = service.get_Endpoint();

        endPoint.set_Address(new System.ServiceModel.EndpointAddress(_endPoint));
        axParm.set_parmTableId(57);// custgroup
        callText.set_Company(_company);

        response = service.pullData(callText,axParm,_company);
        len      = response.get_Length();
        if(len > 0)
        {
            ret = true;
        }
        CodeAccessPermission::revertAssert();
    }
    catch(Exception::CLRError)
    {
        ex = CLRInterop::getLastException();
        info(CLRInterop::getAnyTypeForObject(ex.ToString()));
    }
    catch
    {
        error("Error");
    }
}

what code change I need to do... any suggestion....

What technique's can I apply to make a Display Method selectable in the grid?

$
0
0

Often users are referencing display methods and the need to have them filterable in the grid. In most cases an advance filter can work around this. I have one case where this doesn't work at all.

In the form WHSReleaseToWarehouse there is a field named displayQtyLeftToReleaseDelta which is a display method.

It relies on the datasource WHSInventTransSumDimSO which is a view named WHSInventTransSumDim

The view WHSInventTransSumDim is based on InventTrans table.

The method displayQtyLeftToReleaseDelta returns the quantity from a static method named WHSTmpReleaseToWarehouse::calcQtyLeftToReleaseDelta

The WHSTmpReleaseToWarehouse temp table is always empty when I open it in the table browser. This is where it seems AX populates it in memory only.

So that is a very basic break down of the display method without drilling any further to what is going on beyond calcQtyLeftToReleaseDelta.

I know a new data source will need to be added to the WHSReleaseToWarehouse form but the way I've been going about it is producing incorrect quantity values.

What is the best way to take the data returned from that display method to be filterable in the grid?

Any feedback is appreciated.


Kernel and Application build numbers Prior to AX R2

$
0
0

Hi, I need to do an AX installation where the Kernel build is 6.0.1108.6482 Ax2012 CU7

and the Appication version is 6.0.1108.670 Ax2012 CU3

My question is how will I get AX installed with the correct buillds as this is a rebuild of an older environment

Would I slipstream the CU7 Kernel Update when installing AX and its components

and when restoring the older environments database the Application version would already be CU3?

How to restore the backup in AX or SQL from the previous backup?

$
0
0

Can someone please share the steps or a really good documents on how we can restore the previous backup into Dynamics AX 2012 R3 or from SQL database?

Error when creating product variant, Function EcoResProductNumberBuilderVarinat.validateForNumber has been incorrectly called

$
0
0

Hi,

I'm facing the below error when create a product variant in AX 2012 R3 

Funcation EcoResProductNumberBuilderVarinat.validateForNumber has been incorrectly called

SSRS report changes not showing

$
0
0

I had make some changes in the report grouping but its not reflected, so I check the XML file to see if anything wrong, I noticed that grouping section still had the old data which is not used anymore. Even if I tried to replace the XML file in the folder, but after deploy, it still fallback to the old version.

Any idea why ?

Which method I can use instead of ClearAllField in AX 2012 R2?

$
0
0

I tried to copy a class into Ax 2012 R2 and Ax 2009 from Ax2012 R3.

but the error occured at Ax2012 r2 and Ax 2009 with query.ClearAllField();

so I should change it on ax 2012 and ax2009.

how can I resolve this problem? 

Viewing all 17532 articles
Browse latest View live


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