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

RE: Validate product safety data sheet information in purchase order

$
0
0

I appreciate your time and effort trying to help me out.  I'm going to put a pin in this for now until our AX consultant is available to help us out.  I thought we could learn and do something on our own but we aren't getting anywhere.  


Applying extensions to SSRS report

$
0
0

Hi,

  I have a question in regards to a recent enhancement in 365 for CustAgingReport.  The requirement wanted to add an additional field(s) to the contract and I created a new class that extends the contract.  The controller class I wanted to do the same thing, though, found that within the CustAgingReportController there is a private method that updates the ReportStr.  The controller class cannot use the extends, with the embedded private method, which means I have to extend from the class SrsReportRunController.  Within the new controller class, changed the references to the Contract to point to the new extension, and while executing I found the new field(s) not being displayed.  Attempted to create an extension on the UIBUILDER and change my controller class to point to the new extension of the UIBuilder.  This time I created a class and added a postHandler for the build method for the new UIBuilder, so I can debug and monitor the processing contract.  The passed in contract was the standard contract, not the new one, which means the new field is not accessible.  So, assuming that pointing the extension to SysOperationContractProcessingAttribute is not being recognized.  And while I wanted to continue even further, realized that the DP class would have to be duplicated, since the contract call, would point back to the standard Contract.  At this point, I backed out of everything, and was informed the parameter was no longer required.  

  My solution was easier to manage at this point, use the new Controller class and add a PostHandler to the DP.ProcessReport method.  This allowed me to control and manage the data, before passing over to SSRS.  

  The question I have is how would you handle the additional parameter within the contract.  With going through the scenario that I described, it seems to be more efficient to create new classes to manage all 4 parts (Controller, Contract, UIBuilder and DP).  Looking for opinions or thoughts. 

Thanks

Bill

RE: Validate product safety data sheet information in purchase order

$
0
0

If it is any consolation I have set mine up simply with your settings (different data) and I get the expired message, the only difference in data is me not filling in the State/Province you have on that section, but doubt that is even called in the logic.

When the person sat in front of the system spots the probable obvious issue do post the solution here!

Validate product safety data sheet information in purchase order

$
0
0

In CU8 demo, we are trying to validate our product compliance setup.  On a purchase order we are adding an item number that was intentionally setup wrong to get the error - the product safety data sheet has been setup expired and also not active.  When we close the purchase order form, the error message is not popping up telling us the "PSDS is either not on file or has expired".  Does anybody have a solution to this scenario?

RE: using mobile bin/carts/trails in AX2012

$
0
0

Yes, you are right, I created 3 new locations (cart1, cart2, cart3) and I assigned them new location profile ID called "Carts". Then I created a location directive for "put into the cart" with query Location profile id = Carts and work template with these aditional steps (put into the cart and pick from the cart), but the problem is, that I want to give warehouse man choice, which cart he will use. So how to set it up that he can choose which cart he will use but only from that 3 carts? Now the system offers him one of the cart that he must use.

Thank you

RE: Read Projects in Dynamics AX from C#

$
0
0

If you are having trouble, try with simpler examples, or step away from using IIS and HTTP adapter if you do not have the technical knowledge to set it up properly. Without seeing what your environment set up is, it is very hard to troubleshoot the actual issue, especially if you are not even consuming it within the same network infrastructure.

Try to find some guides online for building, deploying and consuming custom AIF services online, there is plenty. I also have linked the relevant resources. This information should be enough to get you going.

RE: Read Projects in Dynamics AX from C#

$
0
0

what simple examples do you mean here? do you suggest me to test service in same network domain??

RE: AX7: DB Restores

$
0
0

Hello Ray,

Late reply but I had the same issue!

I checked the SIDs in the different userinfo tables and it seems the SID is not unique as per AX 2012 with on premise Active Directories but instead is keyed to your login URL or something like that.

What I suggest doing is BEFORE you overwrite your target database, keep a copy of the UserInfo table with your admin user details in.  Alternatively you could just rename the old AXDB to AXDB_Old or something so you have access to the userinfo table with correct records.

When you have restored your source database over the top you then need to update the SID in the userinfo table.

Assuming your user id is the admin:

Select SID from userinfo

WHERE ID = 'Admin'

Will give you the SID from the old database, then on new one:  (again assuming everything else is correct, like networkalias, networkdomain)

UPDATE USERINFO

SET SID = 'output from previous step'

where ID = 'Admin'

Hope that's of some use

Chris


DB Restores

$
0
0

Hello All,

In order to move entire data from environment to environment (environment refreshes), the go-to method in AX 2012 or earlier versions, was a DB Restore (and the necessary post-restore SQL changes). 

Our AX7 environments are hosted in Azure. I was successfully able to restore Database from one environment to another, both of type DEMO (LCS terminology) and May 2016 Update. After the post-restore steps (which are of course different here in AX 7, compared to AX 2012) the environments were working fine. 

But I recently attempted a DB restore from an AX7 environment (of type DEMO and May 2016 Update) to another (of type DEVTEST and August 2016 Update) and did the post-restore actions (like replacing the correct AOS name etc,). The AOS service starts successfully, but my login credentials are not being authorized to login.

The error is : "You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds."

I know that the credentials work for sure. it is with the same User Id that i created the environment through LCS and also, I use the same credentials to login to the source environment (form wherever I took the backup and restored onto this database). 

Not sure if the authentication is not working because of : 
1). DIfferent Versions of AX VM (MAY versus AUGUST), or,
2). DEMO versus DEVTEST, or, 
3). Azure CLassic Cores vs ARM cores: This is something that we do not have control while deploying the environments over LCS. From what I understand, in the recent weeks, any VMs deployed through LCS are being deployed on ARM cores vs Classic cores. 

If anyone know any better alternative to DB restores in AX 7, please let me know. I am aware of the Configuration & data manager (Preview) tool but it is unclear how to use it. 

Thanks,
Ray.

RE: AX EP Error "Data or calculated fields with type 'Record' are not supported."

$
0
0

Nothing recent... It's been here for quite a while. Is there not a way to know what form is the problematic one from the Event Viewer LOG?

AX EP Error "Data or calculated fields with type 'Record' are not supported."

$
0
0

Hi, I know there is a thread about this already, and it will probably solve this error. But how may I find the problematic table with the problematic display method?

this is the blog post I'm talking of:

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

I have the error log:

Exception occurred on the metadata service on client or server. See exception details below:
>Data or calculated fields with type 'Record' are not supported.

Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceException
   at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)
   at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceProxyFactory.<>c__DisplayClass15.<CreateTableMetadataProxy>b__11()
   at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceProxyFactory.GetMetadata[TMetadata](Func`1 metadataServiceInvoker, Func`1 nodeNotFoundErrorMessage)
   at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceProxyFactory.CreateTableMetadataProxy(Int32 tableId)
   at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataCache.<.cctor>b__3b(Int32 mainKey)
   at Microsoft.Dynamics.AX.Framework.Services.Metadata.MetadataAccessorBase`2.GetItem(TKey key)
   at Microsoft.Dynamics.AX.Framework.Services.Metadata.Caching.TripleKeyedItemCache`4.<>c__DisplayClassc.<GetItemInternal>b__b()
   at Microsoft.Dynamics.AX.Framework.Services.Metadata.Caching.CacheBase.CacheRead(ICacheReadArgs cacheReadArgs, Action tryReadAction, Action readThroughAction)
   at Microsoft.Dynamics.AX.Framework.Services.Metadata.Caching.TripleKeyedItemCache`4.GetItem(TMainKey key)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebParts.AxUnifiedWorkListWebPart.GetWorkItemDocumentWebLink(String docMenuItem, String docWebMenuItem, Int32 docTableId, Int64 docRecId)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebParts.AxUnifiedWorkListWebPart.recordCaptionItemTemplate_DataBinding(Object sender, EventArgs e)
   at System.Web.UI.Control.OnDataBinding(EventArgs e)
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBindChildren()
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxHierarchicalGridViewRow.DataBind()
   at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
   at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxHierarchicalGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformDataBinding(IEnumerable data)

Thanks in advance.

RE: Can't login to AX7 environment

$
0
0

Hi,

Why did you add your domain, was there an issue you were trying to correct?

You could fix this in the SQL tables in back end if you have access too, but not advised really, especially not Production.

userinfo  is the relevant table.

Chris

Can't login to AX7 environment

$
0
0

Hi all,

I have made some changes on AX7 environment by changing the domain in the user from https://sts.windows.net/ to https://sts.windows.net/MyDomain and now I can't login. Everytime I tried to login I would get an error saying "You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds." and it would log me out. Is there a way for me to go in so I can revert my change?

Thanks all!

RE: using mobile bin/carts/trails in AX2012

$
0
0

I guess using 'location' to determine/store Carts can be misleading.

Have you ever looked at the table/form WHSContainerTable?

You can probably use this table, where there is already a relation between shipmentId, ContainerId, and the lines hold the items..

RE: Consolidate invoice for shipment

$
0
0

Hi Crispin and thank you for your answer.

The problem is I have to do entire proces in x++.


RE: Consolidate invoice for shipment

$
0
0

It's not a problem at all!

All you have to do is loop over CustPackingSlipJour for a Customer, and a filter on Ship Date,

and call the code to post invoice for these orders.

RE: populate grid with datasource with a given parameter

$
0
0

If the datasource table of your form has a relation to the caller form, and you invoke this with a menuItem, AX takes care of this automatically.

Or if you are talking about filtering records based on a parameter, you can add/set ranges in the datasource executeQuery() method.

Is that enough information?

RE: How to pass parameters to an SSRS report created using Query as report type

$
0
0

Hi Vilmos,

thank you for replying.

I do not want to create a DP class and create a temptable. The query approach is straight forward and it only has two tables in them with no much complexity.

I do not want to insert the records in to a temptable from query loosing some time.

I agree with creating contract class, but I would want to somehow skip the contract class and DP class creations and utilize the from and to date (args) which comes from the form in the controller class.

Can this be done. Is this approach feasible?

Thanks,

Praveen.

How to pass parameters to an SSRS report created using Query as report type

$
0
0

Hi all,

I have created an AOT query with two tables in them, the outer table has Accounting date as range.

I have developed an SSRS report using this query. It runs well without issues.

I have to avoid the report UI dialog asking for date and pass it through the code.

I have from and to dates where the customer can choose them in a form. I have then captured them as args and trying to pass them to the controller class and apply them to the query and run the ssrs report without a UI dialog.

I'm  having trouble in applying the from and todate as a range to the query and run the report without UI dialog.

Any help is much appreciated. Please help.

Thanks,

Praveen.

RE: Using mobile bin/carts/trails

$
0
0

I don´t know AX so much, but I understand containers as boxes etc. for shipping, but I do put-away items and not shipping them.

But now it works quite good, thank you for your time and help.

Regards,

Tomas

Viewing all 175888 articles
Browse latest View live


Latest Images

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