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

Access Ax 2012 data from within WPF

$
0
0

Hi,

I am fairly new to Ax 2012 and WPF so it may be simpler than I expect, but:

I am struggling to get data from Ax 2012 to present those in my custom WPF user control.

Mainly I want to use .NET DataGrid control to perform some more advanced presentation of data than the standard Ax control is capable of.

I was hoping to be able to run a query (using Query proxy) to the Ax and then somehow assign the results to DataTable which I could bind to DataContext property of the control.

I came up with this sample code in C# but I cannot seem to be able to cast Common object to CustTable

               Query query = new Query();
                QueryBuildDataSource qbds;
                QueryBuildRange qbr;
                qbds = query.addDataSource(Global.tableName2Id("CustTable"));

                qbr = qbds.addRange(Global.mo_fieldID("CustTable", "AccountNum")); // <- my custom method - wrapper around fieldnum(...)
                qbr.value = txt_CustAcc.Text;

                QueryRun queryRun = new QueryRun(query as object);
                while (queryRun.next())
                {
                    Common ct = queryRun.get(Global.tableName2Id("CustTable")); // this works perfectly fine
                    CustTable custTable = (CustTable)ct; // this throws an excpetion

......

 

Moreover with this technique I proobably will not be able to use DataTable to attach it to the grid as a datasource

 

Can someone advise how to access data from WPF in the best manner?

I wanted to use proxies - I am aware that in R2 it is possible to use Linq - will get my hands on it as soon as I download VPC image, but I was hoping to be able to use whatever I have already in place.

 

Thanks,

M

 

 


Approve button in workflow action menu for Retail Catalog Approval Workflow

$
0
0

Hello,

How do I approve the Retail Online Catalog. It's status is Submitted for approval. Is there any job that needs to be executed to approve the workflow. I don't see the approve button on the workflow action menu either.

Appreciate your help.

Thanks

Pankaj

Task dependency

$
0
0

Hi

I have been trying to get some batch tasks to run where one of the tasks is designed to start only when the other tasks have finished.

Using the new Business operation framework, with AddRunTimeTask and AddDependency but I dont seem to be able to get the final task to wait for the other tasks to finish.

Has any one got any advice on how to do this with the new business operation framework?

Thanks

Ian

 

 

 

TaxListReport incorrect

$
0
0

Hi,

I found many errors in this standard report about taxes by account. Does anyone know if there is any updated version of this report?

The errors are:

-Not applying Sum function in one group field on the report Design.

-Shows transactions with 0 amount value.

-Main query incorrect, the join with the table TaxReportPeriod is incorrect because it makes appear taxes from other taxCode different than the one I filtered by.

-DP, method insertTaxListTmp, the field "taxListTmp.TaxAmount" is filled incorrectly with 0 value most of the times.

 

If anybody found some of these errors or anybody knows about a new version of this report, please let me know.

Thanks a lot,

Marc

I have the error "AX Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

$
0
0

Hi.

We have a web service developed in Visual Basic .Net, 2008.

The service is installed in IIS7 (Win 2008). The website is configured to use the business connector in the app pool. Ax 2009 has the  business connector proxy user configured in the system accounts.

The web service invoke a static function of AX. The function has a parameter of type string. This string is in XML format . When the string is short works fine, but when the string is long (more than 50 characters) fails and the result is the following:

AX Attempted to read or write protected memory. This is often an indication that other memory is corrupt

In Event viewer we have two events:

EventID 110

Source: Dynamics .NET Business Connector 5.0

Attempt to clear pointerMap when it still contains objects

And

EventID 110

Source: Dynamics .NET Business Connector 5.0

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at BCLogon(LOGON_INFO* , SesPblk_t** , Char** )

at Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO* pBCProxyAccountInfo, String company, String

If the function is executed in AX with the same information the result is OK.

What could it be?

Thank you.

Inventory Value Model

$
0
0

What the steps i have to take to change the inventory value model from average to fifo, from fixed cost price to average.

Data Migration Framework - Product Entity - Multiple companies shared products

$
0
0

Hi,

I am importing Products/Items in to 2 companies use the Product Entity.

1) Import 2 x Product Master items using a simple file with the following fields:

EcoResProductTranslation_LanguageId
ItemId
DisplayProductNumber
NameAlias
SearchName
EcoResProductTranslation_Name
ProductSubType
ProductType
EcoResProductDimensionGroup_Name
VariantConfigurationTechnology

2) These 2 items show up as Product Masters (with No Storage Dimension) one of which is 'CHLO.SFT.3STR.C&S'

3) Import Product entity file containing 83 released products including an instance of 'CHLO.SFT.3STR.C&S'. (Result 82 created, 1 updated)

These 83 items appear in both Products and Relased Products. The updated record seems to refer to the fact that the Product Master is updated to show the Storage Dimension (SWL) of the 'CHLO.SFT.3STR.C&S'.

4) Now I switch to Company 2 and import a different Product entity file which also contains 'CHLO.SFT.3STR.C&S'. This import (to staging (26) and then to target (25))  is succesfull for 25 items (which appears as released products) however the row based on the Product Master Item fails with the message:

 

Results. Record ('CHLO.SFT.3STR.C&S') -. Cannot create a record in Products - storage dimension groups (EcoResStorageDimensionGroupProduct). Product: CHLO.SFT.3STR.C&S, SW. The record already exists. Data written to target ('25' records created, '0' records updated)

 

Note that the Storage dimension group in steps 1 to 3 above was SWL and in step 4 SW.

(Note that I have been repeatedly importing and then deleting Products Masters, Products and released Products so there could be some garbage causing this error.)

 Any suggestions?

 Thanks

Data Migration Framework Beta 3

$
0
0

 

Hi,

 

we are using Beta 1 of the DMF and want to upgrade (which we need to pay for).

We would not want to upgrade to Beta 2 if Beta 3 was due to be released 1 week later!

 

Does anybody know when DMF Beta 3 (or RC1) might be released?

Thanks


HTTP 404 error on EP Site

$
0
0

Hi,

I have successfully installed EP on sharepoint, find attached confirmation screen. When i try to access dynamics site it gives me http 404 error, details is below:
This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.

kindly advice what is issue and how to fix it.

thx

Different Amount in GL When Export to Excel

$
0
0

Hello everyone, I'm newbie in AX. So I need help from you all. My problem is, when I want to export Account transaction into excel, the amount in excel is different. Please help me..! :(

Account Transaction ( Form ) :

Account Transaction ( Excel ) :

 

Is it possible to access an Ax service directly from Silverlight?

$
0
0

I am very inexperienced with Ax so please excuse me asking what may be a question with a very straightforward answer. 

I created a simple Ax service from the client tool, deployed it to the Ax server and can access it successfully from a Windows Forms application.

However, I would like to access this service from Silverlight, but this seems to be more difficult! In order to make some progress I created an intermediate SOAP service which fields the requests/responses from/to Silverlight and passes them backwards and forwards to the AX Service! This works, but surely there must be an easier way?!

It seems that in my .Net 4 SOAP service VS2010 accesses a DotNetConfig35.xsd file which contains all the possible service-model bindings including netTcp, which is what the Ax service uses.

In my Silverlight project however, it seems to use a file called silverlightConfig2.xsd, which only contains basicHTTP and custom bindings, so as soon as I try to instantiate the Ax service client, it raises an exception related to a missing end-point.

I have read many posts elsewhere which contain the words "wcf", "silverlight" and "netTcp", but none of them have helped me! Is there maybe a way to utilise the "custom" binding protocol, or am I really fighting a losing battle here?

Any help gratefully received.

Ade

Why ERP doing the port scan on User's machine

$
0
0

There is an intermittent connection problem that Axapta cannot be accessed by End Users for one hour weekly once on random basis...

I earlier thought that some  symantec antivirus problem which blocks the port from end users from  accessing.But  after analyzing.

query was raised that

"Why ERP doing the port scan on User's machine ?".

I am not sure why ERP has to do a port scan as random check..

Is it TCP IP port check for non port availability or loss of connecetion Is it a routine check?

Note:

During the same time I am able to access the axapta parallely from A domain....

End users are in B domain but few users still able to access..

What is one and two Master Plan Strategy ?

$
0
0

Hi,

Can anyone explain with the business scenario or with relevant example, what is the significance of

using one plan and two plan master planning strategy ?

I went through standard training document but does not explain in detail.

Thank you in advanced.

how do i set financial dimensions by default

$
0
0

Dear All,

Greetings,

how do i set financial dimensions by default, when i enter payment journal. financial dimension should set some value by default.

Thank you

Zeeshan Shaikh

How check quantitiy items in warehouse and in sales order?

$
0
0

Hey, guys.

I need check quantity in every line items sales order with quantity in warehouse. Сan anyone havean example ofhow thiscan be done.I can not understandwhatthe table is storeditems in warehouse?


Thanks for advance


How can we use Excel to import new journal lines into AX 2012? LedgerServices

$
0
0

Does anyone know the process to import a new ledger line into a new or existing Ledger Header using excel (without Atlas)?

I can list ledger transaction and even create a journal header using the LedgerServices service in the Excel Add-in.  I understand the service does not support the update method so existing records cannot be changed. 

I am trying to create a new journal header and new lines.  We are even willing to first create the header if needed directly from the AX Client if needed.

Is there anyway to create a new journal line from Excel?

Thank you for any reply.. been working on this for a long time and just cannot get it to work.

Dynamics AX 2012 R2 Installation failed

$
0
0

 I tried to install Dynamics AX 2012 R2 on a stand-alone configuration.  All pre-req were met.  However, after about 20 minutes the installation failed with following error.   I can't find anything in the event log other than this statement:

Installation of component "Trace Parser" failed. Review the log file "C:\Program Files\Microsoft Dynamics AX\60\Setup Logs\2013-02-17 22-09-27\DynamicsSetupLog.txt" for details.

Here is the relevant part in the DynamicsSetupLog.txt file.

 

2013-02-17 22:24:31Z Registering tracing manifest file "C:\Program Files\Microsoft Dynamics AX\60\Server\Common\TraceProviderCrimson.man".
2013-02-17 22:24:31Z WEvtUtil.exe install-manifest "C:\Users\TUser2\AppData\Local\Temp\tmp40EA.tmp"
2013-02-17 22:24:35Z  **** Warning: Publisher {8e410b1f-eb34-4417-be16-478a22c98916} is installed on
2013-02-17 22:24:35Z  the system. Only new values would be added. If you want to update previous
2013-02-17 22:24:35Z  settings, uninstall the manifest first.
2013-02-17 22:24:35Z  
2013-02-17 22:24:35Z  
2013-02-17 22:24:35Z Tracing manifest file has been registered successfully.
2013-02-17 22:24:35Z Component installation task completed successfully.
2013-02-17 22:24:35Z Waiting for the Application Object Server to start ...
2013-02-17 22:34:35Z ******************************************************************************************************

2013-02-17 22:34:35Z Component installation task stopped due to an error.

2013-02-17 22:34:35Z ******************************************************************************************************
2013-02-17 22:34:35Z ******************************************************************************************************

2013-02-17 22:34:35Z An error occurred changing the status of the service 'AOS60$01' to 'Running'. See the event log for more details.

2013-02-17 22:34:35Z ******************************************************************************************************
2013-02-17 22:34:36Z ******************************************************************************************************

2013-02-17 22:34:36Z Microsoft.Dynamics.Setup.AxSetupException: An error occurred changing the status of the service 'AOS60$01' to 'Running'. See the event log for more details.
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Components.Aos.StartStopService(Boolean start, Boolean setErrorOnException, Boolean waitForFinish)
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Support.SetupQueue.WaitForAOSIfNecessary(IEnumerable`1 componentsToCheck)
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Support.SetupQueue.HelpServerInstaller.AosStatusHealthy()
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Support.SetupQueue.HelpServerInstaller.HelpServerMsiInstall()
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Support.SetupQueue.HelpServerInstaller.PerformWork()
2013-02-17 22:34:36Z    at Microsoft.Dynamics.Setup.Support.SetupQueue.InstallationClass.DoWork(Object sender, DoWorkEventArgs e)
2013-02-17 22:34:36Z    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

2013-02-17 22:34:36Z ******************************************************************************************************
2013-02-17 22:34:40Z S260FinishedInfo

Please let me know what is wrong. 

Thanks.

 

Error in GENERATE INCREMENTAL CIL after install DMF Beta 2 on AX 2012 R2

$
0
0

Hi All,

got these errors

after following all the steps below (Thanks Dario) but i still get the following errors :

Finished pass 1 at 28/01/2013 14:37:28

Error when loading the method. Type: DMFPurchTableEntityClass, Method: construct

Error when loading the method. Type: DMFSalesLineEntityClass, Method: construct

Error when loading the method. Type: DMFSalesTableEntityClass, Method: construct

Error when loading the method. Type: DMFStagingWriter, Method: helperCompositeEntity

Error when loading the method. Type: DMFUnitOfMeasureEntityClass, Method: construct

Error when loading the method. Type: DMFVendInvoiceInfoLineEntityClass, Method: construct

Error when loading the method. Type: DMFVendInvoiceInfoTableEntityClass, Method: construct

Error when loading the method. Type: DMFVendorAddressEntityClass, Method: construct

Error when loading the method. Type: DMFVendorEntityClass, Method: construct

Error when loading the method. Type: DMFWizardParameters, Method: parmDMFAutoGenerateData

Error when loading the method. Type: DMFXmlGeneration, Method: geneateMapping

Error when loading the method. Type: DMFXMLWizard, Method: checkFieldValueFixed

The CIL generator found errors and could not save the new assembly.

"To solve the problem with compiling of AOT (and CIL), I've commented out the body of the method DMFSalesTableEntityClass.GenerateCreditCard and have added the line

warning('Credit card management temporary disabled');

 You may also have a look at

\Queries\DMFContactPersonPostalAddress\Data Sources\DirPartyLocation(DirPartyLocation)

\Queries\DMFCustomerPostalAddress\Data Sources\DirPartyLocation(DirPartyLocation)

\Queries\DMFEmployeePostalAddress\Data Sources\DirPartyLocation(DirPartyLocation)

\Queries\DMFEmployeePostalAddressEntity\Data Sources\DirPartyLocation(DirPartyLocation)

\Queries\DMFVendorPostalAddress\Data Sources\DirPartyLocation(DirPartyLocation)

in which you have to remove fields ValidFrom and ValidTo, since they have been removed (obsoletized) from table DirPartyLocation.

I hope there's no other changes to do but I'll know for sure where complete compiling of AOT is finished

hope this help!

Ciao

Dario"

 

did anybody succeed getting the DMF to work on AX 2012 R2?

thanks,

Gill

Cancelling Remaining Quantity on a Sales Order

$
0
0

Hi!

I am trying to cancel Remaining Quantity of a Line Item in a Sales Order using Update Line-->Update-->Deliver Remainder. I am expected to see the Line Item status changed to Cancel, however there is no change to the Line Item status.

Can anyone advise me any setup is needed in order to use this feature?

Is this a known issue and is there any hotfix,?

Advance thanks for your help.

Regards,

PVN

Expense Management WP7 App for AX2012 - Setup

$
0
0

I'm trying to figure out how to setup the Enterprise Portal - Employee Services so that I can use the fancy Dynamics AX app for Windows Phone for Employee Expense Management. 

The phone app has a settings page to enter your settings with the following fields:

  • Username (e.g. domain\username)
  • Password
  • Default Currency
  • Service Connection Name
  • Authentication server URL

The first 3 are pretty obvious, but what am I supposed to be entering for the Service Connection name and Authentication server URL?  And where do I open up EP to allow phone uploads, or is that already there by default (if so, where)? 

I've been looking for information online about how to use this phone app with AX 2012 but I can't find a good 'how-to' anywhere... so any resources would be helpful too. 

YouTube video of what I'm talking about -> http://youtu.be/eE8fOt1V1Jw

Viewing all 73760 articles
Browse latest View live


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