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

QueryBuildDataSource not initialized/Invalid data container type

$
0
0

Dear community,

after synchronization of my AX 2009 with the TFS I get the following error:

The AX Debugger pops up with the message: "QueryBuildDataSource not initialized". After clicking OK and F5 the message is gone and the synchronization is run to the end without any errors.

Thats the snippet from the debugger where that funny stuff starts:

[c]    \Classes\QueryBuildDataSource\table                                                                      
[c]    \Classes\AfDataContainerDescriptor\createDataItemsFromAxdDataSource         38
[c]    \Classes\AfDataContainerDescriptor\constructFromMetadata                          121
[c]    \Classes\AfDataContainerDescriptors\createDataContainerDescriptor              72
[c]    \Classes\AfDataContainerDescriptors\getDataContainerDescriptor                    47
[c]    \Classes\AfDataContainer\new                                        23
[c]    \Classes\AfStronglyTypedDataContainer\new                   20
[c]    \Classes\VendVendTable_VendTable\new                             3

After I compile AND compile forward the class VendVendTable_VendTable I get the same behaviour with the pop up debugger. After I compile forward the class AfStronglyTypedDataContainer I get the error: "Invalid data container type".  I tried the following: update AIF services with the name vend*, compile forward the classes AfDataContainer*, restart AOS, delete .aoi file and restart AOS. 

All the classes I am dealing with are in SYS Layer.

What am I missing?


Feasibility of using COM library

$
0
0

Hi all,
I built a small payment connector which uses a COM library.  I send the requests to the COM library and the library handles the requests and returns the responses.
Can this model be used in Dynamics AX ? I just would like to pass the requests to the COM library and pass on the responses to Dynamics.
This is an example of the calls I currently make to the COM library:
RegisterDevice(DeviceAddress, StoreCode);
CreateTransaction(
        merchantDetails,
        amount,
        currency,
        transactionType,
        merchantReference,
        orderReference,
        shopperEmail,
        );

Is this possible in Dynamics AX ?
Thank you.

Errors with Chain of Command

$
0
0

Hi, everyone.

I would like to use a new feature: chain of commands.  I have used a trivial sample and get 2 errors after building classes or attempt to start using this class as in the image below.

Could you give me some advice? Thanks in advance.

How to set up Test Environment for AX?

$
0
0

 

I need to set up a test environment that replicates or closely mimics my  companies current AX setup, which I did not personally configure. Actually we are really running Axapta 3.0, but we need the test environment for us to safely attempt an upgrade on before upgrading the production system.

 Does anyone have experience with this or can at least point me to a good resource?

Thanks in advance!

-Michael

how to return 2nd last record from table with select statement

$
0
0

Dear All,

I have one requirement. I need to return 2nd last record from table with select statement.

For example : I having 10 records.

I need 8th record only.

Please give me more shed on this.

Thanks!

Arpan Sen

Encryption & digitally signing text files in D365FO hosted on cloud and sending via SFTP

$
0
0

Hello everyone,

We have a problem statement of sending encrypted files & digitally signed with pgp keys files to SFTP from Dynamics 365 for operations . We don't have any on premise server and entirely hosted on cloud . Now we are trying to encrypt files using PGP keys but not able to as that software or signing is hosted on Dev VM now but not be available during Production. 

Here is my analysis : 
1. Using GPA interface where in manually we need to select a file and use the option sign and encrypt. So this option will not work for us as all the files will be moved to SFTP automatically where no manual intervention applied.
2. Create a Bat file and use the command prompt manually to execute the Bat for the particular file. This option also can’t be achieved if we don’t have on premise server as we need to place this Bat file to execute it.

Can someone suggest how to proceed on encryption and signing the files with pgp keys for payload security .

Regards,

Smit Patel

AX in Terminal Server can't run??

$
0
0

AX in Windows Terminal Server can't run!!! how to fix it.

The Error message in the below is show:

Microsoft Dynamics AX Client Stopping work.

->Online check have solution and close program.

->Close program

-> Debug the program.

I try the below way but no work:

1. reboot, but no work.

2. Quick the domain name, then join the domain again, but still no work.

Have any one could help me.....

Fresh install of AX2012 VM, non-stop CPU usage > 85% (SQL Server = 50%)

$
0
0

I've just done a fresh install of the AX2012R3CU9 VM and am seeing extremely excessive non-stop CPU usage (85% to 99%), with Sql Server being almost constantly 50%.  This has been running for hours like this.

Are there any known issues that might cause this?

Is there a document that might describe some recommended approaches for debugging this issue?  Can I take some sort of an approach of shutting down AX components/services/jobs until I see the excessive CPU drop?

One somewhat relevant post I came across is this:

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

...where it says: "The AX database has an sp_axwho stored procedure which could reveal that who is executing that specific query.  If the SP is missing then you probably should have bigger concerns about your database integrity."

Well, that SP is missing from my [MicrosoftDynamicsAX] database, but it seems incredibly difficult to believe that the fresh out of the box VM (which seems to be mostly functional, I can navigate around screens and see data, etc without encountering any errors) is "broken".

I've been googling this all day and it is very disheartening, if anyone has any advice I would be very grateful.  And if this is a bit more complicated, if someone would be available for a remote screen share debugging session, at least to just take a quick look, I'd be MORE than happy to paypal payment for that, I absolutely must get this problem solved so I can move on with learning, and fast.


On-premises installation; customization

$
0
0

 Hi. I have 2 questions about Dynamics 365 for finance and operations. 

 Would you let me know about on-premise version of Dynamics365 for finance and operations? At this moment, I can only see VHD(Finance and Operations, EE July 2017 with Plat Update 9 ). I cannot see the on-premise version installation file from the customer service site. If my customer choose to use the on-premise version of Dynamics365 for finance and operations, can I get an installation file of Dynamics365 for finance and operations? Or should I utilize VHD file?

 On the other hands, can customers customize source code in dynamics365 for finance and operations on cloud environment? Sometimes, MS tech support team will try to apply hot fixes or new service for dynamics365 for finance and operations. At this time, customized source code can be one kinds of obstacle for upgrade.

BP Error: Fields with 'LedgerDimension' in name should have relationship to the 'LedgerDimensionBase' table

$
0
0

Hello all,

I had created a data entity in D365 FO and corresponding Staging table was also generated. But when I compiled it, it gave me a Best Practice error:-

C:\AOSService\PackagesLocalDirectory\...\SomeDemoStaging.xml(0,0): BPErrorDimensionNameDAVCRelation: BP Rule: [BPErrorDimensionNameDAVCRelation]:Path [dynamics://Table/SomeDemoStaging/TableFieldInt64/LedgerDimension]:
BPErrorDimensionNameDAVCRelation: Fields with 'LedgerDimension' in name should have relationship
to the 'LedgerDimensionBase' table.

I found out that I do have a Int64 field named 'LedgerDimension' whose EDT is 'DimensionDynamicAccount'.

Now how can I resolve this BP error?

I tried searching in the community and I found this thread with an opposite problem, but has no solution.

Please suggest.

Deploying a custom application package created from PU5 into a PU8 target machine fails

$
0
0

Hello all,

I am trying to deploy a custom deployment package (containing our customization) created from a PU5 build machine (using VSTS build definition) into a target machine of PU8. But every time it fails with the error message:-

Exception calling "CreateRuntimeProvider" with "1" argument(s): "Runtime metadata is invalid because the same metadata artifact has been defined in multiple assemblies. \nFirst 10 conflicting names: RetailAddressMap,RetailDimensionGroupTable,RetailDimensionGroupTransTranslation.

Isn't it possible to deploy custom application package from PU5 into a PU8 environment?

Please note:-

  • As the target machine (PU8) is not hosted in Azure, therefore I am using AXUpdateInstaller.exe tool to execute the runbook in order to deploy the package.
  • This application package from PU5 is found to get deployed successfully on a PU5 target environment. It fails only on PU8 environments. We haven't checked this on intermediate versions like PU6/PU7.

Do I need to deploy custom application packages created only from a PU8 machine into a PU8 target environment? Has Microsoft released any documentation on this?

Please help.

Need syntax for StartupElementAction startup command

$
0
0

I need to know the allowed syntax for the StartupElementAction startup command for DynamicsAx 2012.

It is possible to start an AX client using a URL like

Dynamics://0/?DrillDown_12345

Where 0 refers to the database and 12345 is the Alert Event ID in the EventInbox table.

But I want to open a specific form rather than rely on an existing event. There are other options besides DrillDown, like ViewAlertRule and AutoRun

Each one of those options seems to have its specific syntax which is checked by some unknown process BEFORE the AX client is started. For example, if I use letters in the EventId, then the AX client never starts.

What I need to know is what pattern is validated for the StartupElementAction option so that I can call a specific menu item. I was expecting something like

Dynamics://0/?StartupElementAction_MenuItem%5cDisplay%5cCustTableListPage

But that is invalid so the AX client never starts.

Has anyone ever used this functionality?

Launch AX 2012 client from CRM 2015

$
0
0

Hi Guys, 

I have received a weird request from a client. Client is using the AX 2012 and CRM 2015 (On prem) system integrated together with connector.  Now, since, the information is flowing in both system, they want to launch Purchase order screen directly from CRM to view the PO detail. 

I can understand, its little ambitious to cater, this kind of request, but just wondering, if anyone has done this kind of work, i.e Opening AX screen from another application. I reckon, workflow approval emails has links to launch the form directly and approve, if I am not wrong, but I am not sure how that's work.

Please share some light, if you have some clue.

thanks in advance.  

ROW_NUMBER() function for computed Columns in View

$
0
0

Hi, 

I was trying to use of ROW_NUMBER() functions by creating a view as showing below:

The view shows Row number as irregular . What it should have to ?

looking for your comments on this.

noFetch in select statement

$
0
0

Dear All,

I read blogs but not understand why and when to use noFetch with select statement .

Please give me an example.

Thanks!

Arpan 


Azure error while deploying Dynamics 365 Operations (AX) on LCS

$
0
0

Hello,
We are trying to deploy the partner trial version of D365 Operations using LCS and getting an error at the last step before deployment:
The configured Azure subscription AAD Tenant Domain for the Connector in invalid or non-existent. Please edit the Connector and provide the correct AAD Tenant Domain that the subscription is associated with.

We checked that we had three domains including the xxxxx.onmicrosoft.com domain. We have tried all three of them but all of them are not working.

Any input would be really great.

How to initialize parameters in sys operations?

$
0
0

Hi,

I want to initialize some default parameters in sys operation in run time before the UI interface is displayed to the user. Could someone please let me know where and how to pass the contract parameters to set the values?

Thanks!!

what is the best practice for pushing enormous data into external SQL database using x++ code

$
0
0

I have a temp table with 1000+ records and would like to insert into external SQL data base and I designed my logic as below.  I am looping the tables and creating insert and hitting SQL database 1000 times.

Please advise best practice?   

void pushDataToSql()

{

   LoginProperty                   lloginProperty;

   OdbcConnection                  lOdbcCon;

   Statement                       lstatement;

   SqlStatementExecutePermission   lSqlPermission;

   str                             lConStr = "";

   ;

   lConStr = this.getConnStr();

   if (!lConStr)

   {

       throw error("Database connection setup not found !!");

   }

   try

   {

       lloginProperty = new LoginProperty();

       lloginProperty.setOther(lConStr);

       lOdbcCon = new ODBCConnection(lloginProperty);

       if(lOdbcCon)

       {

           lOdbcCon.ttsbegin();

           while select gTOSqlImportTMPTable

           {

               lCtrlMgrSQLQry = '';

               lCtrlMgrSQLQry += "XXXXXX \n";                

               lSqlPermission = new SqlStatementExecutePermission(lCtrlMgrSQLQry);

               lSqlPermission.assert();

               lstatement = lOdbcCon.createStatement();

               lstatement.executeUpdate(lCtrlMgrSQLQry);

               CodeAccessPermission::revertAssert();

           }

           while select gBTOrderMasterTMPTable

           {

               lOrdMasterSQLQry = '';

               lOrdMasterSQLQry += "XXXXX \n";

               lSqlPermission = new SqlStatementExecutePermission(lOrdMasterSQLQry);

               lSqlPermission.assert();

               lstatement = lOdbcCon.createStatement();

               lstatement.executeUpdate(lOrdMasterSQLQry);

               CodeAccessPermission::revertAssert();

           }

           while select gBTOrderDetailsTMPTable

           {

               lOrdDetailsSQLQry = '';

               lOrdDetailsSQLQry += "XXXXXXXX \n";

               lSqlPermission = new SqlStatementExecutePermission(lOrdDetailsSQLQry);

               lSqlPermission.assert();

               lstatement = lOdbcCon.createStatement();

               lstatement.executeUpdate(lOrdDetailsSQLQry);

               CodeAccessPermission::revertAssert();

           }

           lOdbcCon.ttscommit();

           lstatement.close();

       }

   }

   catch

   {

       if (lSqlPermission)

           CodeAccessPermission::revertAssert();

       if (lstatement)

           lstatement.close();

       throw error("Failed to transfer data to SQL server !!");

   }

}

Deploying packages no code visible in Visual Studio

$
0
0

I have deployed one package through LCS as well but upon installation , when I build the system from VS in sandbox environment I am not able to see latest code bits. Any suggestion on that .

Development in Var layer

$
0
0

Dear All,

Can you please give me the exact reason why MS recommended to all development in Var layer only?

We can do Class changes in USR layer also and also saved.

What is the specific reason to develop in VAR layer only which is not possible in other layer.

Let me know the exact reason.

Thanks!

Arpan

Viewing all 17532 articles
Browse latest View live


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