Quantcast
Viewing all 73760 articles
Browse latest View live

Customer Aging report SQL error after CU7 update to AX2012 R2

After I applied a CU7 update to our AX2012 R2 installation, One of the users reported this error to me.

Cannot edit a record in Customer or vendor account number (CustVendTransAging).

The SQL database has issued an error.

SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]String or binary data would be truncated.

SQL statement: UPDATE T1 SET NAME=T3.NAME,RECVERSION=? FROM tempdb."DBO".t12143_065EB03A5044473883A01845DF64A84A T1 CROSS JOIN CUSTTABLE T2 CROSS JOIN DIRPARTYTABLE T3 WHERE (T1.PARTITION=?) AND (((T2.PARTITION=?) AND (T2.DATAAREAID=?)) AND (T1.ACCOUNTNUM=T2.ACCOUNTNUM)) AND ((T3.PARTITION=?) AND (T2.PARTY=T3.RECID))

 

It turns out that the Name field on the table CustVentTransAging has an extended data type of Name which is 60 characters  however it was being assigned a value from DirPartTable.Name which has an extended Data Type fo DirPartyName which is 100 characters. 

 

So I changed the extended data type on CustVentTransAging  from Name to DirPartyName and the RESOLVED the issue.

 

If you do not like that solution, you can go to \Classes\CustVendAgingCalculation and inspect the method insertCustVendData maybe you can re write the update code there to meet your needs.

Thanks,

Keep sharing the knowledge.

-Albert.


autorun.hta is not a valid win32 application

I can log in to AX 3.0 but after a few seconds it crashes

One of my companies child companies was on Axapta 3.0 SP4 KR1 about 5 years ago and has since changed ERP's and is now on NAV. The server that use to have Axapta is on the way out and right now it's only on for this company to log into Axapta when a customer needs sales history more than 5 years old, so it's not used very often. We would like to get Axapta off this server and on to another server so we can get rid of the old server that is on it's way out.

I tracked down a disc with Axapta 3.0 SP4 and installed everything on to the new server. Created a back up of the sql database and restored it to the new server. i was getting some errors at first about kernels not matching (31/30) and i figured out that i need to install kernel rollup 1 but can't find it so i changed the SYSTABVERSION to 30 in the database to bypass this just to see if i could log in. Once I did that i could get the log in screen to pop up and i'm able to use my credentials to log just like the old system. Then the menu pops up for our default company but i can't click on anything and then i get a not responding/check online for solutions box and it crashes.

We have a RDS setup with the Axapta client installed (3.0 SP4 KR1) so i changed the SYSTABVERSION back to 31 and tried logging in from there after creating a new config to point at the new server and i get the same thing. I noticed that in the lower right corner of the Axapta window it shows PC icon and a database icon and a green arrow constantly going back and forth between the 2 which i assume means it's trying to talk to the database but it's not happening? When i change the config back to the original config pointing to the old server the pc/greenarrow/database thing happens for a second and then it's done.

i figured that i should put on a trace to see what it's trying to do and from what i can tell it's constantly trying to run some stored procedures over and over. i did the trace on the working version and it only does this once.

I have zero knowledge on installing Axapta as it was installed before i worked here and at the time they hired a consultanting firm that we no longer use to install it. If you need more information i will try my best to retrieve it for you. 

Thanks for any help.

Need help adding custom field to All Purchase Requisitions grid

Hi everybody,

I'm a newbie to DAX 2012

I`m  trying to add a column with the person who has the requisiton at a given time, for example, 

if a purchase requisition has a review, draft, canceled or approved status, I wan to show in a new column on the same grid the name of the person (worker) that has in that moment the Purchase Requisition. Please take a look at attached image 1.

Image may be NSFW.
Clik here to view.

Now, you can view the name of the person 2 ways:

1.- Please check attached Image2, here on the same screen as the grid, to the right side, if I select Purchase Requisition 000881 on the grid, the Review Process Details section shows the name of the person that currently has the PR.

Image may be NSFW.
Clik here to view.

2.- While Purchase Requisition 000881 still selected, the second way is to click the button above the grid Actions-> View History, then I'm taken to the following screen, at the bottom in the (Tracking Details tab) tabs section to the right after selecting the appropiate tree ítems, I get a box with the name of the person that currently has the PR and a due date, again this is the name I ant to display on the grid. Please check  attached Image3.

Image may be NSFW.
Clik here to view.

Hope I was able to explain what I want to achive, please your urgent  help is greately appreciated.

Best Regards

Verci

Subcategories in Project R3 dont appear when booking expenses although subcat is set up

When setting up a category and a subcategory in Projectcategory, i cannot make these subs available in expensejournals. Only the categories can be chosen.

Sales Unit Price in AX2012 R3 Projects

Hi

I have setup a new project with a number of new categories.  I have associated a cost and sales price with these.  When I created my WBS and added my tasks which have a category associated with them - only the cost unit price is pulling through.  Can anyone tell me if the Sales Unit Price should default through?

 

Cheers

Why cant a terminated contractor cost be adjusted in the project adjustment?

I have a project that span 3 months but several contractors that are assigned to the project have left and they did not clocked the transactions correctly. Tried to carry out the adjustment to their expense transaction but receive an error log ' Employee not active. Update cancelled due to the error'. Why does it read the employment status?

call a class on command button OK and Cancel

Hi ,

How to know that what method or class is getting called when a Command Button's Command is set to OK or Cancel or Edit?

I am clueless what is happening on clicking of such command button. please help. Thanks.


Dynamics AX Reports - Function - Amount in words

In the SSRS reports, is there any function that transforms amounts into words - The Amount in Words

Send text to printer

I'm trying to print a label on our Zebra printer with ZPL (Zebra Print Language). The printer has been added as a generic text printer and I'm trying to use a StreamWriter object to send the text to the printer. But I get an error "could not create CLRObject". Code looks like this:


StreamWriter sw;

;

perm.assert();
sw = new System.IO.StreamWriter(@"\\server\printer");
sw.WriteLine('Test');
sw.Flush();
sw.Close();
sw.Dispose();
CodeAccessPermission::revertAssert();

I also tried to write the text to a file and the move it to the print which worked.

StreamWriter sw;
FileName fileName = "file.txt";

;

perm.assert();
sw = new System.IO.StreamWriter(fileName);
sw.WriteLine('Test');
sw.Flush();
sw.Close();
sw.Dispose();

WinApi::move(fileName, @"\\server\printer");
CodeAccessPermission::revertAssert();

Any ideas?

AOT query to combine lines

Hi all,

How do I make a query I created in AOT to combine lines with same values(but not all) and also to add up values on other fields. For example, I'd like to "Group By" the field "Name" while also, I need to "SUM (Quantity)" the Qty field. 

Security Roles in AX 2012 - Disable buttons on form using security roles

Hi,

I am working on security roles.I need to disable some buttons in a form.I have a form A .In that form I have a menuitem button which opens form B.But the system  uses some code in clicked method of menu item in form A's design to open form B.I need to disable the buttons in form B using security roles.How can I acheive this.Is there any way to do it using Security keys  in AX. Any one who know about this plz help me.

Thanks In Advance

Warehouse management of Ax 2012, Error of during making outbound transportation Planning

Hi All Gems,

Have a Nice Day! In warehouse management of  Microsoft Dynamics AX 2012 R3. When i created wave Id and got infolog. Message was

Shipment USMF-000027 was not fully allocated

Shipment USMF-00027 has been removed from wave USMF-000000023

No work was created for wave USMF-000023.

Please experts of AX 2012 R3.please suggest me which step i have missed and what will be good step for resolve this mention Issue..:(

Image may be NSFW.
Clik here to view.

Problem with Dynamics AX 2012 R3 on Lifecycle Services Cloud Hosted Environments

Hi All,

I am trying to deploy a Dynamics AX 2012 R3 environment in Lifecycle Services but I has not been possible, because when I try to download the certificate for Azure the following error is shown:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Please let me know the solution, because I need to deploy this environment.

Thank you very much.

Best Regards,

BLANCA

Transaction reorganizing in AX 2009

In the process of trying to modify the payment schedule on a vendor invoice in AX 2009, I've noticed the Transaction Reorganizing button found by going to Vendors > Functions > Open Transaction Editing is inactive for Purchase Order invoices but active for invoices entered through the Invoice Journal.  Is this just how the standard functionality works or do we have an issue that is preventing Transaction Reorganizing on transactions generated through the Purchase Order invoicing process?  Any insight is appreciated!


Any experience with using publishing Dynamics AX Rich Client as a RemoteApp on Remote Desktop Svcs?

Hello,

Wondering if anyone has experience with publishing Dynamics AX client as a RemoteApp on through Remote Desktop Services rather than having a full remote desktop.

I would like to be able to run AX on the user's desktop rather than having to go to a separate remote desktop session to access it, because there are applications and files on the user's local network.  But I know that Remote Desktop is required in most cases over a WAN.

I see that you can publish an individual application as a RemoteApp and wondered if this would be workable for running the AX client as this would enable it to be run as a window on the client's local desktop which seems it would be a better overall user experience. 

Thanks in advance for any feedback.

Apply product template from code in Ax2012

Hi,

I'm implementing a product management in Ax2012 through AIF services. I'm able to create and release products successfully. However, I also need to be able to apply a product template to a released product from the code. I have implemented the template related logic in the server side using x++. The logic is based on the below examples I found ( http://krishhdax.blogspot.fi/2012/06/ax2012-apply-template-for-product-using.html and https://community.dynamics.com/ax/f/33/p/43584/79151.aspx ). In the first example the template is applied to an InventTable using EcoResProductTemplateApplyManagerUtils. However the problem I'm facing right now is that if I try to create an instance of the manager by calling theEcoResProductTemplateApplyManagerUtils::newDefault() the call fails and I get an error: "Exception of type 'Microsoft.Dynamics.Ax.Xpp.InvalidRemoteCallException' was thrown.". The creation fails even if it's the only line of code I try to execute. Is this some known issue and is there a way to get around this somehow, or is there some other - perhaps completely different - way of applying a template to a released product?

Below is the code I have so far:

public void ApplyTemplate( System.String _productnumber, System.String _templatename )
{
  InventTable         inventTable;
  container           recordTmpValues;
  EcoResProductTemplateApplyManagerUtils utils;

  inventTable = InventTable::Find( _productnumber );
  recordTmpValues = this.getTemplateData( _templatename );
  utils = EcoResProductTemplateApplyManagerUtils::newDefault(); // --> this call fails!                    
  utils.applyTemplate( recordTmpValues, inventTable.ItemId );
}


// private method for retrieving the template data container
private container getTemplateData(System.String _templatename)
{
    SysRecordTemplateTable  templateTable;
    SysRecordTmpTemplate  tmp;
    SysRecordTemplateData tmpdata;
    container  dataContainer,RecordTmplateData;
    int i;
    boolean DefaultRecord;
            
    templateTable = SysRecordTemplateTable::find( 175 ); // pass invent table id
    dataContainer = templateTable.Data;
    
    for(i=2; i<conlen(dataContainer); i++) // 1st element of template data is version, so start from 2
    {
       [tmp.Description, DefaultRecord, tmp.Data, tmp.Details] = conpeek(dataContainer, i);

       if(tmp.Description == _templatename )
       {
         tmp.OrgDescription=tmp.Description;
         tmp.insert();
         RecordTmplateData=tmp.data;
       }
    }

    return RecordTmplateData;
}


Any help is appreciated, thanks a lot!


Kind regards,

Kaj Gustafsson

Error while printing Sales Invoice

Hi

I am getting following error while printing Sales Invoice in AX 2012 R3:

The query could not be processed. The field(s) SalesInvoiceHeaderFooterTmp.1.CompanyBranch_TH do not exist in the report provider table SalesInvoiceHeaderFooterTmp.Image may be NSFW.
Clik here to view.

Issue with the AX user when renaming the user in the AD profile

Hi.

It appears that I am not the first one to experience issues with AX users linked to AD profiles.

My problem is with a user which had his name and email address changed in AD.

When the name was changed, AD changed the user Log On which now no longer matches the AX alias.

I guess that the auth. to AX works based on the user's SID (which remained unchanged) as the user is still able to log in to AX.

My problem is that the AX account is behaving strangely. We recently made some changes to a security role which apply as expected to all users except for the one that had the name changed.

I tried to delete the user in AX, re-import his account and potentially modify his user ID in AX (for backwards audit consistency).

Unfortunately, I get stuck here.

AX returns the following errors:

1. when trying to delete the user

Stack trace: The company  does not exist.

Stack trace

(S)\Data Dictionary\Tables\SysUserInfo\Methods\Delete - line 21

2. When trying to update the user (i.e. disable the account)

The Active Directory user or group does not exist. Contact your network administrator.

3. When trying to update the user's options (i.e. modify the email settings)

Error in getting SID (although querying the DB shows that the SID in the AX user profile = SID in AD)

 

This is getting really frustrating. I have other users that will potentially experience the same issues when their names will change (i.e. someone getting married).

I thought of updating the user's alias directly on the DB and try to repeat the steps for deleting the user - however I'm not comfortable in experimenting such changes.

Does anyone have any suggestions on how to fix this?

 

 

Error while Clicking Ok button in Ep

Hi 

I am getting the following error while clicking Ok button on a page :

 

Dynamics Object Adapter Call failed.

 

RegisterRequiresControlState can only be called before and during PreRender.

 

System.Web

 

   at System.Web.UI.Page.RegisterRequiresControlState(Control control)

   at System.Web.UI.Control.AddedControl(Control control, Int32 index)

   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.AddedControl(Control control, Int32 index)

   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.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)

   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()

   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformSelect()

   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()

   at System.Web.UI.WebControls.GridView.OnDataSourceViewChanged(Object sender, EventArgs e)

   at System.Web.UI.DataSourceView.OnDataSourceViewChanged(EventArgs e)

   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxDataSourceView.OnDataSourceViewChanged(EventArgs e)

   at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxDataSourceView.DataSetView_ListChanged(Object sender, ListChangedEventArgs e)

   at System.ComponentModel.ListChangedEventHandler.Invoke(Object sender, ListChangedEventArgs e)

   at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.OnListChanged(ListChangedEventArgs e)

   at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.ExecuteHandler(ClrBridgeImpl* , ObjectWrapper* pObjectWrapperHandler, ObjectWrapper* pObjectWrapperSender, ObjectWrapper* pObjectWrapperEventArgs)

   at interpret.{ctor}(interpret* )

   at AxEventDelegate.kcInvoke(AxEventDelegate* , interpret* ip)

   at cqlClass.callEx(cqlClass* , Char* , interpret* )

   at AxCore.AxRuntime.Call(AxRuntime* , IAxObject* axObject, String methodName, Type returnType, Object& result, Object[] paramList)

   at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)

   at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)

Viewing all 73760 articles
Browse latest View live


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